+
+{% if vote.is_transparent or (session.user and user.userid == session.user.id )%}
+
-
+
+{% if vote.is_anonymous %}
+
Ce vote est anonymisé, les suffrages ne sont ni visibles ni modifiables.
+{% endif %}
{% if not vote.is_transparent %}
-
Ce sondage n'est pas transparent, vous ne pouvez pas voir les votes des autres.
+
Ce vote nâest pas transparent, vous ne pouvez pas voir les votes des autres.
{% endif %}
-
+{% if (vote['is_anonymous'] and can_vote) or not vote['is_anonymous'] %}
+
|
{% for choice in choices %}
- {{ choice.name }} |
+ {{ choice.name }} |
{% endfor %}
- {% if 'user' in session %}
+ {% if 'user' in session and (can_vote or (not vote['is_terminated'] and not vote['is_anonymous'])) %}
|
{% endif %}
+ {% if vote.is_transparent %}
+
+ {% endif %}
+
+ {% if can_vote %}
+
+ {% endif %}
+ {% if not vote['is_anonymous'] %}
{% for user in users %}
- {% if vote.is_transparent or user.userid == session.user.id %}
+ {% if vote.is_transparent or (session.user and user.userid == session.user.id )%}
{% if 'user' in session and user.userid == session.user.id %}{% endif %} {{ user.username }} |
{% for choice in choices %}
- {% if choice.id in user.choices %}
- |
- {% else %}
- | {% endif %}
+ {{ user.choices[choice.id].name }} |
{% endfor %}
- {% if 'user' in session %}
+ {% if 'user' in session and (can_vote or (not vote['is_terminated'] and not vote['is_anonymous'])) %}
{% if user.userid == session.user.id %}
@@ -52,73 +191,14 @@
|
{% endif %}
{% endfor %}
-
- {% if can_vote %}
-
- {% endif %}
-
-
- {% if vote.is_transparent %}
-
- Somme |
- {% for choice in choices %}
- {{ choice.nb }} |
- {% endfor %}
- {% if 'user' in session %}
- |
- {% endif %}
-
{% endif %}
-
-
-
-
-
Informations
-{% if vote.nb_votes == 0 %}
-
-
{{ vote.nb_votes }} / {{ vote.max_votes }}
-
{% else %}
-
-
{{ vote.nb_votes }} / {{ vote.max_votes }}
-
+{% if not can_vote %}
+
Vous avez déjà voté.
+{% endif %}
{% endif %}
-
- - Publié par
maethor
- - 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 %}
-