kadenios/elections/staticdefs.py

40 lines
789 B
Python
Raw Normal View History

2021-01-27 14:55:28 +01:00
from django.utils.translation import gettext_lazy as _
MAIL_VOTERS = (
"Dear {full_name},\n"
"\n"
"\n"
"Election URL: {election_url}\n"
"\n"
"Your voter ID: {username}\n"
"Your password: {password}\n"
"\n"
"-- \n"
"Kadenios"
)
2021-01-27 14:55:28 +01:00
CONNECTION_METHODS = {
"pwd": _("mot de passe"),
"cas": _("CAS"),
}
QUESTION_TYPES = [
("assentiment", _("Assentiment")),
]
VOTE_RULES = {
"assentiment": _(
"Le mode de scrutin pour cette question est un vote par assentiment. "
"Vous pouvez donc sélectionner autant d'options que vous souhaitez. "
"Vous pouvez également ne sélectionner aucune option."
)
}
2021-03-19 14:25:13 +01:00
CAST_FUNCTIONS = {
"assentiment": "cast_select",
}
2021-03-19 16:08:02 +01:00
TALLY_FUNCTIONS = {
"assentiment": "tally_select",
}