From f31f0f269a68b2dfc5c834ce420bb5a02a3ecd0c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 21 Oct 2012 15:04:28 +0200 Subject: Djangoization - Major refactoring (step 8) * clean-up on request and storage args in methods * view creation now managed by South * clean some mess in session values by using MultiValueDict --- .../templates/ishtar/wizard/towns_wizard.html | 40 ++++++++++++++++++++++ ishtar_common/templates/towns_wizard.html | 40 ---------------------- 2 files changed, 40 insertions(+), 40 deletions(-) create mode 100644 ishtar_common/templates/ishtar/wizard/towns_wizard.html delete mode 100644 ishtar_common/templates/towns_wizard.html (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/wizard/towns_wizard.html b/ishtar_common/templates/ishtar/wizard/towns_wizard.html new file mode 100644 index 000000000..115ac9838 --- /dev/null +++ b/ishtar_common/templates/ishtar/wizard/towns_wizard.html @@ -0,0 +1,40 @@ +{% extends "default_wizard.html" %} +{% load i18n %} +{% load range %} +{% block extra_head %} +{{form.media}} +{% endblock %} +{% block content %} +
{% csrf_token %} + +
+{% if extra_context.TOWNS %} +{% if form.forms %} +
+ + {%if form.non_form_errors%}{%endif%} + {{ form.management_form }} + {% for formsetform in form.forms %} + {{ formsetform.as_table }} + {% endfor %} + +
{{form.non_form_errors}}
+{% else %} + + {{ form.as_table }} +
+{% endif %} +{% else %} +

{% trans "No town set in the associated file." %}

+{% endif %} + +{{ previous_fields|safe }} + +
+
+{% endblock %} diff --git a/ishtar_common/templates/towns_wizard.html b/ishtar_common/templates/towns_wizard.html deleted file mode 100644 index 115ac9838..000000000 --- a/ishtar_common/templates/towns_wizard.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends "default_wizard.html" %} -{% load i18n %} -{% load range %} -{% block extra_head %} -{{form.media}} -{% endblock %} -{% block content %} -
{% csrf_token %} - -
-{% if extra_context.TOWNS %} -{% if form.forms %} -
- - {%if form.non_form_errors%}{%endif%} - {{ form.management_form }} - {% for formsetform in form.forms %} - {{ formsetform.as_table }} - {% endfor %} - -
{{form.non_form_errors}}
-{% else %} - - {{ form.as_table }} -
-{% endif %} -{% else %} -

{% trans "No town set in the associated file." %}

-{% endif %} - -{{ previous_fields|safe }} - -
-
-{% endblock %} -- cgit v1.2.3