X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=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 @@
@@ -15,24 +20,25 @@ | |||||
---|---|---|---|---|---|
{{ 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 %}