104 lines
5.4 KiB
HTML
104 lines
5.4 KiB
HTML
<!doctype html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>RotatyVote · Nouveau scrutin</title>
|
|
<link rel="icon" href="/static/img/mark.svg" type="image/svg+xml">
|
|
<link rel="stylesheet" href="/static/css/app.css">
|
|
<script type="module" src="/static/js/index.js"></script>
|
|
</head>
|
|
<body>
|
|
<main class="wrap narrow">
|
|
<div class="topbar"><a class="brand" href="/"><img src="/static/img/mark.svg" alt=""><span>rotaty<b>vote</b></span></a></div>
|
|
|
|
<section id="create" class="card">
|
|
<h1>Nouveau scrutin</h1>
|
|
<form id="form">
|
|
<label for="title">Titre</label>
|
|
<input id="title" type="text" required maxlength="200" placeholder="Conseil d'administration">
|
|
|
|
<div class="row">
|
|
<div>
|
|
<label for="expected">Personnes attendues</label>
|
|
<input id="expected" type="number" min="1" placeholder="facultatif">
|
|
</div>
|
|
<div>
|
|
<label for="maxv">Plafond d'inscriptions</label>
|
|
<input id="maxv" type="number" min="1" placeholder="aucun">
|
|
</div>
|
|
</div>
|
|
|
|
<label class="inline"><input id="vote-scans-on" type="checkbox" checked> Confirmer chaque vote par 3 scans</label>
|
|
<label class="inline"><input id="codes-on" type="checkbox"> Exiger un code papier à usage unique</label>
|
|
<div id="codes-box" hidden>
|
|
<label for="codes">Nombre de codes à générer</label>
|
|
<input id="codes" type="number" min="1" max="5000" value="50">
|
|
</div>
|
|
|
|
<details class="advanced">
|
|
<summary>Réglages du code</summary>
|
|
<label for="code-style">Code projeté</label>
|
|
<select id="code-style">
|
|
<option value="ring" selected>Cercle animé</option>
|
|
<option value="qr">QR classique</option>
|
|
</select>
|
|
<div class="row">
|
|
<div>
|
|
<label for="interval">Rotation du code</label>
|
|
<select id="interval">
|
|
<option value="500">0,5 s</option>
|
|
<option value="700">0,7 s</option>
|
|
<option value="800" selected>0,8 s</option>
|
|
<option value="1000">1 s</option>
|
|
<option value="1500">1,5 s</option>
|
|
<option value="2000">2 s</option>
|
|
</select>
|
|
</div>
|
|
<div>
|
|
<label for="scans">Codes à scanner</label>
|
|
<input id="scans" type="number" min="2" max="20" value="5">
|
|
</div>
|
|
</div>
|
|
</details>
|
|
|
|
<div id="pw-box" hidden>
|
|
<label for="pw">Mot de passe de création</label>
|
|
<input id="pw" type="password" autocomplete="current-password">
|
|
</div>
|
|
|
|
<div class="actions"><button class="primary block" type="submit">Créer le scrutin</button></div>
|
|
</form>
|
|
</section>
|
|
<p class="hint center" id="try-link"><a href="/essai">Tester l'écran et les téléphones</a></p>
|
|
|
|
<section id="done" class="card" hidden>
|
|
<h1>Scrutin créé</h1>
|
|
<div class="notice warn">Conservez le lien d'administration : il ne pourra pas être récupéré.</div>
|
|
<h2 class="mode-title">Écran splitté</h2>
|
|
<p class="hint">L'administration sur votre écran, le projecteur sur l'écran étendu.</p>
|
|
<div class="duo stack">
|
|
<div class="pane">
|
|
<div class="pane-head"><svg class="icon" viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 5h16v11H4z"/><path d="M2 19.5h20"/><path d="M8 9h8"/><path d="M8 12.5h5"/></svg><p><b>Administration</b><span>Sur votre écran</span></p></div>
|
|
<div class="linkbox"><input id="admin-link" type="text" readonly aria-label="Lien d'administration"><button id="copy-admin" class="small" type="button">Copier</button></div>
|
|
<a id="go-admin" class="btn primary block" href="#" target="_blank" rel="noopener">Ouvrir l'administration</a>
|
|
</div>
|
|
<div class="pane">
|
|
<div class="pane-head"><svg class="icon" viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M2 4h20"/><path d="M4 4v10h16V4"/><path d="M12 14v3"/><path d="M8.5 21l3.5-4 3.5 4"/></svg><p><b>Projecteur</b><span>Affiché à la salle, à ouvrir sur l'écran projeté</span></p></div>
|
|
<div class="linkbox"><input id="screen-link" type="text" readonly aria-label="Lien du projecteur"><button id="copy-screen" class="small" type="button">Copier</button></div>
|
|
<a id="go-screen" class="btn block" href="#" target="_blank" rel="noopener">Ouvrir le projecteur</a>
|
|
</div>
|
|
</div>
|
|
<h2 class="mode-title">Écran dupliqué</h2>
|
|
<p class="hint">Un seul écran, recopié sur le projecteur. Le bouton « Gérer » ouvre l'administration par-dessus.</p>
|
|
<div class="duo stack">
|
|
<div class="pane">
|
|
<div class="pane-head"><svg class="icon" viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M2 4h20"/><path d="M4 4v10h16V4"/><path d="M12 14v3"/><path d="M8.5 21l3.5-4 3.5 4"/></svg><p><b>Écran unique</b><span>Projection et gestion au même endroit</span></p></div>
|
|
<a id="go-present" class="btn block" href="#" target="_blank" rel="noopener">Ouvrir l'écran dupliqué</a>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|