X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Fvote.html;h=70067a7b7d1e3b02fba01eca2c5c050d393176aa;hb=7f235db921ed9e01ae8c8057bc35f6796284808d;hp=30602cbfc401537df3a0258b22d94970990bedf4;hpb=0fb98decd67ec695937480b4d5448adbcd508565;p=cavote.git diff --git a/templates/vote.html b/templates/vote.html index 30602cb..70067a7 100644 --- a/templates/vote.html +++ b/templates/vote.html @@ -2,33 +2,49 @@ {% block body %}
{% for choice in choices %} | {{ choice.name }} | {% endfor %} + {% if 'user' in session %}+ {% endif %} | ||
---|---|---|---|---|
{% 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 %} + {% endfor %} + {% if 'user' in session %} + | {% if user.userid == session.user.id %}{% endif %} | + {% endif %} +|
Somme | +Somme | {% for choice in choices %} -nb | +{{ choice.nb }} | {% endfor %} + {% if 'user' in session %}+ {% endif %} |