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 @@
@@ -15,25 +20,26 @@ | |||||
---|---|---|---|---|---|
{{ user.username }} | +{% if 'user' in session and user.userid == session.user.id %}{% endif %} {{ user.username }} | {% for choice in choices %} -{% if choice in user.choices %}OUI{% else %}NON{% endif %} | + {% if choice.id in user.choices %} +OUI | + {% else %} +{% endif %} {% endfor %} + | {% if 'user' in session and user.userid == session.user.id %}X{% endif %} |
Somme | +Somme | {% for choice in choices %} -nb | +{{ choice.nb }} | {% endfor %}