X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Fvote.html;h=cbe59f4f0cd13c1edcd4d3b3add72d0697f32357;hb=4e40699a612e494d4d740d69b18d34aa40749789;hp=30602cbfc401537df3a0258b22d94970990bedf4;hpb=0fb98decd67ec695937480b4d5448adbcd508565;p=cavote.git diff --git a/templates/vote.html b/templates/vote.html index 30602cb..cbe59f4 100644 --- a/templates/vote.html +++ b/templates/vote.html @@ -2,33 +2,64 @@ {% 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 %} |