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/editChoicesAdmin.html | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 templates/editChoicesAdmin.html (limited to 'templates/editChoicesAdmin.html') diff --git a/templates/editChoicesAdmin.html b/templates/editChoicesAdmin.html new file mode 100644 index 0000000..a668319 --- /dev/null +++ b/templates/editChoicesAdmin.html @@ -0,0 +1,42 @@ +{% extends "base.html" %} +{% load markup %} +{% load i18n %} + +{% block fullscript %} + + + +{{ form_new_choice.media }} +{% 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" %}

+

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

{% trans "Available choices" %}

+
+ + + {%if not poll.dated_choices%}{%endif%} + + + + + {% for choice in choices %}{{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)" %}
+
{% endif %} + +{% endblock %} -- cgit v1.2.3