X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Fvote.html;h=cbe59f4f0cd13c1edcd4d3b3add72d0697f32357;hb=4e40699a612e494d4d740d69b18d34aa40749789;hp=30602cbfc401537df3a0258b22d94970990bedf4;hpb=0fb98decd67ec695937480b4d5448adbcd508565;p=cavote.git diff --git a/templates/vote.html b/templates/vote.html index 30602cb..cbe59f4 100644 --- a/templates/vote.html +++ b/templates/vote.html @@ -2,33 +2,64 @@ {% block body %}
- - + +{% 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 %} @@ -40,14 +71,17 @@ {% endif %} + {% if vote.is_transparent %} - + {% for choice in choices %} - + {% endfor %} + {% if 'user' in session %} + {% endif %} {% endif %} @@ -56,22 +90,34 @@

Informations

+{% if vote.nb_votes == 0 %} +
+
{{ vote.nb_votes }} / {{ vote.max_votes }}
+
+{% else %} +
+
{{ vote.nb_votes }} / {{ vote.max_votes }}
+
+{% endif %}
-
Publié par
maethor +
Publié par
{{ vote.author }}
Début le
{{ vote.date_begin }}
Deadline le
{{ vote.date_end }} -
Groupe
{{ vote.rolename }} +
Groupe
{{ vote.groupname }}
Catégorie
{{ vote.category }}
+ {% if vote.description %}
Description :
{{ vote.description }} + {% endif %} + {% if attachments %}
Documents :
- + {% endif %}
{{ 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 }}