Reopen a closed vote until its results are shown; check mark in the center mark and on the phone; vote title during enrollment; projector opens in a window
This commit is contained in:
+4
-2
@@ -21,6 +21,7 @@ function errMsg(e) {
|
||||
not_draft: "La question n'est plus en brouillon",
|
||||
not_open: "La question n'est pas ouverte",
|
||||
not_closed: "La question n'est pas close",
|
||||
already_shown: "Résultats déjà publiés, le vote ne peut plus être rouvert",
|
||||
};
|
||||
return m[e.code] || e.message;
|
||||
}
|
||||
@@ -113,11 +114,12 @@ function questionCard(q) {
|
||||
actions.push(act("Lancer le vote", "open", "small go"));
|
||||
actions.push(act("Supprimer", "delete", "small danger", "Supprimer ce brouillon ?"));
|
||||
} else if (q.state === "open") {
|
||||
actions.push(act("Clore le vote", "close", "small primary", `Clore le vote (${q.participants} vote${q.participants > 1 ? "s" : ""}) ? Définitif.`));
|
||||
actions.push(act("Clore le vote", "close", "small primary", `Clore le vote (${q.participants} vote${q.participants > 1 ? "s" : ""}) ?`));
|
||||
} else {
|
||||
actions.push(q.results_public
|
||||
? act("Masquer les résultats", "unpublish")
|
||||
: act("Publier les résultats", "publish", "small primary"));
|
||||
: act("Publier les résultats", "publish", "small primary", "Publier les résultats ? Le vote ne pourra plus être rouvert."));
|
||||
if (!q.shown) actions.push(act("Rouvrir le vote", "reopen"));
|
||||
}
|
||||
if (q.state !== "draft" && !focused) actions.push(act([icon("screen", 15), "Afficher à l'écran"], "focus"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user