Results export as plain text: procès-verbal, compact, liste, barres, markdown and csv templates with a preview, copy and download, from the share tab or a closed question; tally maths shared with the results bars

This commit is contained in:
2026-11-19 01:01:54 +01:00
parent 3ebbb67817
commit 41b4ac1a78
5 changed files with 258 additions and 18 deletions
+20 -2
View File
@@ -126,8 +126,11 @@
<a id="open-present" class="btn small" href="#" target="_blank" rel="noopener">Ouvrir</a>
</div>
<div class="share-row">
<div><b>Résultats</b><span class="muted">Bulletins anonymes et décomptes</span></div>
<button id="export" class="small" type="button">Exporter</button>
<div><b>Résultats</b><span class="muted">Exporter en texte ou JSON (anonyme)</span></div>
<div class="code-actions">
<button id="export-text" class="small" type="button">Texte</button>
<button id="export" class="small" type="button">JSON</button>
</div>
</div>
</div>
</section>
@@ -154,6 +157,21 @@
</form>
</dialog>
<dialog id="export-dlg">
<form method="dialog">
<h2>Exporter les résultats</h2>
<select id="ex-scope" aria-label="Questions"></select>
<div class="templates" id="ex-formats" role="radiogroup" aria-label="Modèle"></div>
<pre id="ex-preview" tabindex="0"></pre>
<div class="actions">
<button value="cancel" type="submit">Fermer</button>
<span class="spacer"></span>
<button id="ex-download" type="button">Télécharger</button>
<button id="ex-copy" class="primary" type="button">Copier</button>
</div>
</form>
</dialog>
<dialog id="composer">
<form method="dialog" id="q-form">
<h2>Nouvelle question</h2>