{% extends "base.html" %} {% block title %}Actions — JH Photomaton{% endblock %} {% block nav_links %} Dashboard Galerie Actions Impression Réglages Événements Déconnexion {% endblock %} {% block content %}

Gestion des actions & mapping bouton

Mapping bouton → actions photobooth-app

Associe chaque nombre de clics à une action dans photobooth-app. L'index correspond à la position dans la liste des actions (0 = première action).

{% for n in range(1, 5) %} {% set mapping = button_mapping.get(n) or button_mapping.get(n|string) or {} %} {% endfor %}
Clics Label affiché Index action (photobooth) Action correspondante
{% if n == 1 %}1 clic{% else %}{{ n }} clics{% endif %} {% set idx = mapping.get('photobooth_index', 0) %} {% if pb_actions and idx < pb_actions|length %} {{ pb_actions[idx].name }} {% else %}—{% endif %}
Actions image photobooth-app ({{ pb_actions|length }} au total)
{% for action in pb_actions %}
Action {{ loop.index0 }} {{ action.name }}
⏱ {{ action.jobcontrol.get('countdown_capture', '?') }}s {% if action.processing.get('img_frame_file') %} 🖼 {{ action.processing.img_frame_file.split('/')[-1] }} {% endif %} {% if action.processing.get('remove_background') %} Remove BG {% endif %} {% if action.processing.get('img_background_file') %} 🌄 {{ action.processing.img_background_file.split('/')[-1] }} {% endif %}
{% else %}
⚙️
Aucune action configurée dans photobooth-app
{% endfor %}
{% endblock %} {% block scripts %} {% endblock %}