From bc605b5804dc081ae03ad2aae96141fb21621e09 Mon Sep 17 00:00:00 2001 From: Adrien Dorsaz Date: Fri, 9 Aug 2013 00:27:14 +0200 Subject: Update design and indent code (editChoicesAdmin) --- papillon/templates/editChoicesAdmin.html | 68 +++++++++++++++++++------------- 1 file changed, 41 insertions(+), 27 deletions(-) diff --git a/papillon/templates/editChoicesAdmin.html b/papillon/templates/editChoicesAdmin.html index 78d3be5..3ded310 100644 --- a/papillon/templates/editChoicesAdmin.html +++ b/papillon/templates/editChoicesAdmin.html @@ -10,36 +10,50 @@ {% endblock %} {% block content %} -{% if not choices %}

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

{% else %} -

{% trans "Complete/Finalise the poll" %}

-

+{% if not choices %} +

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

+{% else %} +

{% trans "Choice administration" %}

+

{% trans "After you've finished to add or edit choices for this poll, click on:" %}

{% endif %} + {% include 'editChoices.html' %} + {% if choices %} -

{% trans "Available choices" %}

- - - {%if not poll.dated_choices%}{%endif%} - - - - - {% for choice in choices %} - - {% csrf_token %} - {{choice.form.poll}}{{choice.form.order}} - {%if not poll.dated_choices%}{%endif%} - - - - - - - {% endfor %} -
{% trans "Up/down" %}{% trans "Label" %}{% trans "Limit" %}{% trans "Delete?"%}
+ - / -{{choice.form.name}}{% trans "Limited to"%} {{choice.form.limit}} {% trans "vote(s)" %}
+
+
{% trans "Edit available choices" %}
+
+ + + {%if not poll.dated_choices%}{%endif%} + + + + + {% for choice in choices %} + + {% csrf_token %} + {{choice.form.poll}}{{choice.form.order}} + {%if not poll.dated_choices%} + + {%endif%} + + + + + + + {% endfor %} +
{% trans "Position" %}{% trans "Name" %}{% trans "Max votes" %}{% trans "Delete?"%} ?
+ +
+ +
{{choice.form.name}}{{choice.form.limit}}
+
+
+
{% endif %} {% endblock %} -- cgit v1.2.3