X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Fvote.html;fp=templates%2Fvote.html;h=47b1d298c97532f446d0c6fd63685a92bc3d232b;hb=9a0891ac3f5ae69cd1e276931401516b3213df4c;hp=fd93e5b6257f94393006d083261c67b5b4d2075f;hpb=33346b25d357b3ad3242cfac21ab09e92cb2024b;p=cavote.git diff --git a/templates/vote.html b/templates/vote.html index fd93e5b..47b1d29 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,24 +20,25 @@ - {% 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 %} {% for choice in choices %} @@ -47,12 +53,13 @@ {% endif %} + {% if vote.is_transparent %} - + {% for choice in choices %} - + {% endfor %}
{{ 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 }}