From a82ae23015f8036919bae3c4a4e133e9045e6fcc Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 21 Oct 2012 22:49:56 +0200 Subject: Djangoization - Major refactoring (step 14) * Fix formset UI. * Fix formset towns. * Clean-up --- .../templates/ishtar/wizard/default_wizard.html | 2 +- ishtar_common/templates/ishtar/wizard/search.html | 4 ++-- .../templates/ishtar/wizard/towns_wizard.html | 20 +++++++++++--------- .../templates/ishtar/wizard/wizard_done_summary.html | 2 +- .../ishtar/wizard/wizard_done_summary_2.html | 2 +- .../ishtar/wizard/wizard_list_search_result.html | 2 +- 6 files changed, 17 insertions(+), 15 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/wizard/default_wizard.html b/ishtar_common/templates/ishtar/wizard/default_wizard.html index c379d8fbb..e2abc80b6 100644 --- a/ishtar_common/templates/ishtar/wizard/default_wizard.html +++ b/ishtar_common/templates/ishtar/wizard/default_wizard.html @@ -29,7 +29,7 @@ {% for formsetform in wizard.form.forms %} {% table_form formsetform %} {% endfor %} - + {% else %} diff --git a/ishtar_common/templates/ishtar/wizard/search.html b/ishtar_common/templates/ishtar/wizard/search.html index 7ed214a48..6bb82abdd 100644 --- a/ishtar_common/templates/ishtar/wizard/search.html +++ b/ishtar_common/templates/ishtar/wizard/search.html @@ -7,7 +7,7 @@ {% block content %}

{{wizard_label}}

{% if wizard.form.forms %} @@ -18,7 +18,7 @@ {% for formsetform in wizard.form.forms %} {{ formsetform.as_table }} {% endfor %} -
+
{% else %} diff --git a/ishtar_common/templates/ishtar/wizard/towns_wizard.html b/ishtar_common/templates/ishtar/wizard/towns_wizard.html index 115ac9838..cd40e6049 100644 --- a/ishtar_common/templates/ishtar/wizard/towns_wizard.html +++ b/ishtar_common/templates/ishtar/wizard/towns_wizard.html @@ -1,10 +1,11 @@ -{% extends "default_wizard.html" %} +{% extends "ishtar/wizard/default_wizard.html" %} {% load i18n %} {% load range %} {% block extra_head %} -{{form.media}} +{{wizard.form.media}} {% endblock %} {% block content %} +

{{wizard_label}}

{% csrf_token %}
-{% if extra_context.TOWNS %} -{% if form.forms %} +{% if TOWNS %} +{% if wizard.form.forms %}
- {%if form.non_form_errors%}{%endif%} - {{ form.management_form }} - {% for formsetform in form.forms %} + {{ wizard.management_form }} + {%if wizard.form.non_form_errors%}{%endif%} + {{ wizard.form.management_form }} + {% for formsetform in wizard.form.forms %} {{ formsetform.as_table }} {% endfor %} - +
{{form.non_form_errors}}
{{wizard.form.non_form_errors}}
{% else %} - {{ form.as_table }} + {{ wizard.form.as_table }}
{% endif %} {% else %} diff --git a/ishtar_common/templates/ishtar/wizard/wizard_done_summary.html b/ishtar_common/templates/ishtar/wizard/wizard_done_summary.html index 53650dafe..ad069a738 100644 --- a/ishtar_common/templates/ishtar/wizard/wizard_done_summary.html +++ b/ishtar_common/templates/ishtar/wizard/wizard_done_summary.html @@ -1,4 +1,4 @@ -{% extends "wizard_done.html" %} +{% extends "ishtar/wizard/wizard_done.html" %} {% load i18n %} {% block content %} diff --git a/ishtar_common/templates/ishtar/wizard/wizard_done_summary_2.html b/ishtar_common/templates/ishtar/wizard/wizard_done_summary_2.html index 66a572542..2b907ffc6 100644 --- a/ishtar_common/templates/ishtar/wizard/wizard_done_summary_2.html +++ b/ishtar_common/templates/ishtar/wizard/wizard_done_summary_2.html @@ -1,4 +1,4 @@ -{% extends "wizard_done.html" %} +{% extends "ishtar/wizard/wizard_done.html" %} {% load i18n %} {% block content %} diff --git a/ishtar_common/templates/ishtar/wizard/wizard_list_search_result.html b/ishtar_common/templates/ishtar/wizard/wizard_list_search_result.html index 6cbafb930..c6be97b64 100644 --- a/ishtar_common/templates/ishtar/wizard/wizard_list_search_result.html +++ b/ishtar_common/templates/ishtar/wizard/wizard_list_search_result.html @@ -1,4 +1,4 @@ -{% extends "wizard_done.html" %} +{% extends "ishtar/wizard/wizard_done.html" %} {% load i18n %} {% block content %} -- cgit v1.2.3