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:
+6
-1
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user