Admin: tabs, question composer dialog, settings autosave
Default answers Pour/Contre/Abstention/NPPPAV, svg icons instead of status dots, no live/open status labels, inclusive wording across the UI and docs.
This commit is contained in:
+7
-6
@@ -1,4 +1,4 @@
|
||||
import { $, h, api, pollId, liveSocket, resultsView, toast, ring } from "./common.js";
|
||||
import { $, h, api, pollId, liveSocket, resultsView, toast, ring, icon } from "./common.js";
|
||||
|
||||
const pid = pollId();
|
||||
const DONE_KEY = `rv_done_${pid}`;
|
||||
@@ -128,7 +128,7 @@ function handleScan(r) {
|
||||
block("Inscriptions closes.");
|
||||
break;
|
||||
case "full":
|
||||
block("Nombre maximal d'inscrits atteint.");
|
||||
block("Nombre maximal d'inscriptions atteint.");
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -195,7 +195,7 @@ function questionCard(q) {
|
||||
return card;
|
||||
}
|
||||
if (q.voted) {
|
||||
card.append(h("p", { class: "voted" }, "Vote enregistré"));
|
||||
card.append(h("p", { class: "voted" }, h("span", { class: "voted-mark" }, icon("check", 16)), "Vote enregistré"));
|
||||
return card;
|
||||
}
|
||||
const s = sel(q.id);
|
||||
@@ -270,8 +270,9 @@ function connect() {
|
||||
},
|
||||
onStatus(s) {
|
||||
const c = $("#conn");
|
||||
c.className = `conn ${s === "online" ? "online" : "offline"}`;
|
||||
c.textContent = s === "online" ? "en direct" : "reconnexion…";
|
||||
c.hidden = s === "online";
|
||||
c.className = "conn offline";
|
||||
c.textContent = "Reconnexion…";
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -296,7 +297,7 @@ async function boot() {
|
||||
return;
|
||||
}
|
||||
if (lsGet(DONE_KEY)) {
|
||||
return block("Appareil déjà inscrit à ce scrutin (accès perdu). Voyez l'organisateur.");
|
||||
return block("Appareil déjà inscrit à ce scrutin (accès perdu). Adressez-vous à l'équipe organisatrice.");
|
||||
}
|
||||
if (!me.enrollment_open) return block("Inscriptions closes.");
|
||||
required = me.scans_required;
|
||||
|
||||
Reference in New Issue
Block a user