Ecran de choix admin : Nouvel evenement (wizard) ou Parametres
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -134,6 +134,22 @@
|
||||
<button class="btn-retour" onclick="allerA('accueil')">Retour</button>
|
||||
</section>
|
||||
|
||||
<!-- Choix admin : wizard ou parametres -->
|
||||
<section id="ecran-admin-choix" class="ecran">
|
||||
<h2>Administration</h2>
|
||||
<div class="grille-modes">
|
||||
<button class="btn-mode" onclick="ouvrirWizard()">
|
||||
<div class="mode-icone mode-icone-large">⚡</div>
|
||||
<span>Nouvel evenement</span>
|
||||
</button>
|
||||
<button class="btn-mode" onclick="allerA('admin')">
|
||||
<div class="mode-icone mode-icone-large">⚙</div>
|
||||
<span>Parametres</span>
|
||||
</button>
|
||||
</div>
|
||||
<button class="btn-retour" onclick="allerA('accueil')">Retour</button>
|
||||
</section>
|
||||
|
||||
<!-- Wizard evenement -->
|
||||
<section id="ecran-wizard" class="ecran">
|
||||
<div class="wizard-header">
|
||||
|
||||
@@ -152,14 +152,18 @@ function validerMdpAdmin() {
|
||||
const input = document.getElementById('input-mdp-admin');
|
||||
if (input.value === MDP_ADMIN) {
|
||||
fermerPopupMdp();
|
||||
allerA('wizard');
|
||||
wizardInit();
|
||||
allerA('admin-choix');
|
||||
} else {
|
||||
document.getElementById('mdp-erreur').classList.remove('cache');
|
||||
input.value = '';
|
||||
}
|
||||
}
|
||||
|
||||
function ouvrirWizard() {
|
||||
allerA('wizard');
|
||||
wizardInit();
|
||||
}
|
||||
|
||||
// Valider avec Entree
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if (e.key === 'Enter' && !document.getElementById('popup-mdp').classList.contains('cache')) {
|
||||
|
||||
Reference in New Issue
Block a user