X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Fvote.html;h=c6da36735e650f7f6a7e719732884d2284204b3e;hb=1dfbd755dae26562b182d81f8818c5c3dcc6694b;hp=fd93e5b6257f94393006d083261c67b5b4d2075f;hpb=33346b25d357b3ad3242cfac21ab09e92cb2024b;p=cavote.git diff --git a/templates/vote.html b/templates/vote.html index fd93e5b..c6da367 100644 --- a/templates/vote.html +++ b/templates/vote.html @@ -3,7 +3,12 @@
- + +{% if not vote.is_transparent %} +
Ce sondage n'est pas transparent, vous ne pouvez pas voir les votes des autres.
+{% endif %} + +
@@ -15,25 +20,26 @@ - {% if vote.is_transparent %} {% 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 %} + - {% endfor %} - {% else %} -
Ce sondage n'est pas transparent, vous ne pouvez pas voir les votes des autres.
- {% endif %} + {% endfor %} {% if can_vote %} - - {% if vote.is_multiple %} + + {% if vote.is_multiplechoice %} {% for choice in choices %} {% endfor %} @@ -47,12 +53,13 @@ {% endif %} + {% if vote.is_transparent %} - + {% for choice in choices %} - + {% endfor %} @@ -67,7 +74,7 @@
Publié par
maethor
Début le
{{ vote.date_begin }}
Deadline le
{{ vote.date_end }} -
Groupe
{{ vote.rolename }} +
Groupe
{{ vote.groupname }}
Catégorie
{{ vote.category }}
{{ user.username }}{% if 'user' in session and user.userid == session.user.id %}{% endif %} {{ user.username }}{% if choice in user.choices %}OUI{% else %}NON{% endif %}OUI{% if 'user' in session and user.userid == session.user.id %}X{% endif %}
SommeSommenb{{ choice.nb }}