X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Fvote.html;h=8d6e9dd8ad231ad05d07ce7cb04631603fc97d03;hb=e3913800e8bccbdc364b7f54d28a8d8efcfa2e1b;hp=3ebec2a18a61d0b43637f80061d1767459c8edf3;hpb=251888ac340c188dcf60da3120a752450663d63e;p=cavote.git diff --git a/templates/vote.html b/templates/vote.html index 3ebec2a..8d6e9dd 100644 --- a/templates/vote.html +++ b/templates/vote.html @@ -3,36 +3,52 @@
- +{% if not vote.is_transparent %} +
Ce sondage n'est pas transparent, vous ne pouvez pas voir les votes des autres.
+{% endif %} + +
{% for choice in choices %} {% endfor %} + {% if 'user' in 'session' %} + {% endif %} - {% if vote.is_transparent %} - - {% else %} -
Ce sondage n'est pas transparent, vous ne pouvez pas voir les votes des autres.
- + {% for user in users %} + {% if vote.is_transparent or user.userid == session.user.id %} + + + {% for choice in choices %} + {% if choice.id in user.choices %} + + {% else %} + {% endif %} + {% endfor %} + {% if 'user' in 'session' %} + + {% endif %} + {% endif %} + {% endfor %} {% if can_vote %} - + - - {% if vote.is_multiple %} + + {% if vote.is_multiplechoice %} {% for choice in choices %} {% endfor %} {% else %} {% for choice in choices %} - + {% endfor %} {% endif %} @@ -40,14 +56,17 @@ {% endif %} + {% if vote.is_transparent %} - + {% for choice in choices %} - + {% endfor %} + {% if 'user' in 'session' %} + {% endif %} {% endif %} @@ -56,11 +75,15 @@

Informations

+Avancement : {{ vote.nb_votes }} / {{ vote.max_votes }} +
+
+
Publié par
maethor
Début le
{{ vote.date_begin }} -
Fin le
{{ vote.date_end }} -
Groupe
{{ vote.rolename }} +
Deadline le
{{ vote.date_end }} +
Groupe
{{ vote.groupname }}
Catégorie
{{ vote.category }}
{{ choice.name }}
{% if 'user' in session and user.userid == session.user.id %}{% endif %} {{ user.username }}{% if user.userid == session.user.id %}{% endif %}
SommeSommenb{{ choice.nb }}