From 2b384dd33ecd0a17823e60cded5d3b111ea8133e Mon Sep 17 00:00:00 2001 From: etienne Date: Fri, 8 Aug 2008 13:23:16 +0000 Subject: Possibility to delete a vote. Few bug correction. Documentation. Cleaner functions. --- templates/createOrEdit.html | 6 +++--- templates/vote.html | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'templates') diff --git a/templates/createOrEdit.html b/templates/createOrEdit.html index cee7616..073dcfd 100644 --- a/templates/createOrEdit.html +++ b/templates/createOrEdit.html @@ -2,12 +2,12 @@ {% block content %} {% if not new and not choices %} -

As long as no option was added to the poll, it will not be made available.

+

As long as no options were added to the poll, it will not be made available.

{% endif %}

{% if new %}New{% else %}Edit{% endif %} poll

{% if error %}

{{ error }}

{% endif %}
- +
{% if not new %} @@ -54,7 +54,7 @@ {% for choice in choices %} - {% endfor %}{% endif %} + {% endfor %}{% endif %} {% endif %}
http://{{full_base_url}}
 {{choice.name}}
{{choiceform}}
{% if new %} diff --git a/templates/vote.html b/templates/vote.html index 19150d2..1b862c4 100644 --- a/templates/vote.html +++ b/templates/vote.html @@ -6,7 +6,7 @@

{{poll_desc}}

- +
@@ -16,10 +16,10 @@ - {% for vote in voter.votes %}{%endfor%} + {% for vote in voter.votes %}{%endfor%} {%else%} - {% for vote in voter.votes %} + {% for vote in voter.votes %} {%endfor%} {%endifequal%} {%endfor%} @@ -30,7 +30,7 @@ {%for choice in choices%}{%endfor%} {%endif%} - + {% for sum in choices_sum %} {% endfor %} -- cgit v1.2.3
Edit {{voter.name}}{% ifequal vote.vote 1%}Yes{%else%}No{%endifequal%}{% ifequal vote.value 1%}Yes{%else%}No{%endifequal%}
Sum{{sum}}