X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Fvote.html;h=cbe59f4f0cd13c1edcd4d3b3add72d0697f32357;hb=4e40699a612e494d4d740d69b18d34aa40749789;hp=b51896fc92da729df24e55f31531231c07b4bd39;hpb=e39a423e56697a035ea099e1f0ab4af1917a5d9e;p=cavote.git diff --git a/templates/vote.html b/templates/vote.html index b51896f..cbe59f4 100644 --- a/templates/vote.html +++ b/templates/vote.html @@ -1,34 +1,65 @@ {% extends "layout.html" %} {% block body %} -

{{ vote.title }}

-
- +
+ +{% 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,19 +71,56 @@ {% endif %} + {% if vote.is_transparent %} - + {% for choice in choices %} - + {% endfor %} + {% if 'user' in session %} + {% endif %} {% 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 }}
+ +
+

Informations

+{% if vote.nb_votes == 0 %} +
+
{{ vote.nb_votes }} / {{ vote.max_votes }}
+
+{% else %} +
+
{{ vote.nb_votes }} / {{ vote.max_votes }}
+
+{% endif %} +
+
Publié par
{{ vote.author }} +
Début le
{{ vote.date_begin }} +
Deadline le
{{ vote.date_end }} +
Groupe
{{ vote.groupname }} +
Catégorie
{{ vote.category }} +
+
+ {% if vote.description %} +
Description :
{{ vote.description }} + {% endif %} + {% if attachments %} +
Documents :
+ + {% endif %} +
+
+
{% endblock %}