From 442d34494354cbca1cad022290db417ae7a7aede Mon Sep 17 00:00:00 2001 From: etienne Date: Fri, 4 Dec 2009 13:33:06 +0000 Subject: Template cleaning - Simplification - Use of newforms --- templates/edit.html | 45 +++++++++++---------------------------------- 1 file changed, 11 insertions(+), 34 deletions(-) (limited to 'templates/edit.html') diff --git a/templates/edit.html b/templates/edit.html index c8b7d75..f24395f 100644 --- a/templates/edit.html +++ b/templates/edit.html @@ -10,18 +10,13 @@ {% endblock %} {% block content %} - {% if not choices %} -

{% blocktrans %}As long as no options were added to the poll, -it will not be made available.{% endblocktrans %}

- {% endif %} -

{% trans "Edit poll" %}

+ + + + + {% for field in form %} {% if field.is_hidden %} {{field}} @@ -55,31 +59,4 @@ it will not be made available.{% endblocktrans %}

-http://{{root_url}}edit/{{poll.base_url}} +http://{{root_url}}poll/{{poll.base_url}}

{% trans "Copy this address and send it to voters who want to participate to this poll" %} @@ -30,12 +25,21 @@ it will not be made available.{% endblocktrans %}

-http://{{root_url}}poll/{{poll.admin_url}} +http://{{root_url}}edit/{{poll.admin_url}}

{% trans "Address to modify the current poll" %}

+http://{{root_url}}editChoicesAdmin/{{poll.admin_url}} +

+ {% trans "Address to modify choices of the current poll." %} +

-

{% trans "Choices" %}

-{% if choices %}
- - - - - {% for choice in choices %} - - {% endfor %} - - - - -
{% trans "Up/down" %}{% trans "Label" %}{% trans "Limit" %}{% trans "Delete?"%}
+ / -{% trans "Limited to"%} {% trans "vote(s)" %}
-
-
{% endif %} - -
- - - - - - -
{%trans "Limited to"%} {%trans "vote(s)"%}{% trans "Setting a new choice. Optionally you can set a limit of vote for this choice. This limit is usefull for limited resources allocation." %}
-
- {% endblock %} -- cgit v1.2.3