Onglet admin Galerie Live (booth) + config booth sur la borne

- Onglet Galerie Live dans admin : activer, URL, API key, event ID
- Affichage du code invites + bouton regenerer
- QR code + code sur ecran d'accueil (si active)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-07 17:52:10 +02:00
parent f0584e8fdf
commit 99d2dc8f56
2 changed files with 79 additions and 0 deletions

View File

@@ -150,6 +150,7 @@
<button class="onglet" data-onglet="evenement">Evenement</button>
<button class="onglet" data-onglet="fonctionnalites">Fonctions</button>
<button class="onglet" data-onglet="email-admin">Email</button>
<button class="onglet" data-onglet="booth-admin">Galerie Live</button>
<button class="onglet" data-onglet="galerie-admin">Galerie</button>
<button class="onglet" data-onglet="systeme">Systeme</button>
</div>
@@ -359,6 +360,26 @@
<button class="btn-action" onclick="sauvegarderEmail()">Sauvegarder</button>
</div>
<!-- Panneau Galerie Live (Booth) -->
<div class="admin-panneau" id="panneau-booth-admin">
<h3>Galerie Live</h3>
<p class="aide">Les photos sont envoyees en temps reel sur un site web. Les invites scannent le QR code sur l'ecran d'accueil.</p>
<div class="champ">
<label class="toggle-label">
<span>Activer la galerie live</span>
<label class="toggle"><input type="checkbox" id="admin-booth-actif" onchange="sauvegarderBooth()"><span class="toggle-slider"></span></label>
</label>
</div>
<div class="champ"><label>URL du serveur</label><input type="text" id="admin-booth-url" placeholder="https://booth.copydev.fr" value="https://booth.copydev.fr"></div>
<div class="champ"><label>Cle API</label><input type="text" id="admin-booth-apikey" placeholder="booth-photobooth-2026" value="booth-photobooth-2026"></div>
<div class="champ"><label>ID evenement</label><input type="text" id="admin-booth-eventid" placeholder="default" value="default"></div>
<div id="booth-status" class="champ">
<label>Code invites : <span id="admin-booth-password" style="font-size:1.5rem;font-weight:bold;letter-spacing:4px">--</span></label>
</div>
<button class="btn-action" onclick="sauvegarderBooth()">Sauvegarder</button>
<button class="btn-secondaire" onclick="regenererBoothPassword()">Nouveau code</button>
</div>
<!-- Panneau Galerie -->
<div class="admin-panneau" id="panneau-galerie-admin">
<div class="champ">