Export: icon button at the right of each closed question opens the export dialog on it; templates reordered liste, barres, compact, procès-verbal, markdown, csv

This commit is contained in:
2026-11-19 01:24:02 +01:00
parent 98d8199ffd
commit 339cf97df1
4 changed files with 11 additions and 3 deletions
+6 -1
View File
@@ -130,8 +130,13 @@ function questionCard(q) {
if (!q.shown) actions.push(act("Rouvrir le vote", "reopen"));
}
if (q.state !== "draft") actions.push(h("button", { class: "small", type: "button", onclick: () => editExtra(q) }, "Votes en plus"));
if (q.state === "closed") actions.push(h("button", { class: "small", type: "button", onclick: () => openExport(q.id) }, "Exporter"));
if (q.state !== "draft" && !focused) actions.push(act([icon("screen", 15), "Afficher à l'écran"], "focus"));
if (q.state === "closed") {
actions.push(h("button", {
class: "small copy-btn", type: "button", title: "Exporter les résultats", "aria-label": "Exporter les résultats",
onclick: () => openExport(q.id),
}, icon("copy", 16)));
}
const badges = [h("span", { class: `badge ${q.state}` }, STATE_LABEL[q.state])];
if (q.results_public) badges.push(h("span", { class: "badge public" }, "Publiés"));