From ade7bd4b74d9ae42c54648cc7390d8c067b5c5e3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 18 Oct 2012 17:49:57 +0200 Subject: Djangoization - Major refactoring (step 1) --- .../templates/ishtar/wizard/confirm_wizard.html | 34 +++++++++++++++++ .../templates/ishtar/wizard/default_wizard.html | 44 ++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 ishtar_common/templates/ishtar/wizard/confirm_wizard.html create mode 100644 ishtar_common/templates/ishtar/wizard/default_wizard.html (limited to 'ishtar_common/templates/ishtar') diff --git a/ishtar_common/templates/ishtar/wizard/confirm_wizard.html b/ishtar_common/templates/ishtar/wizard/confirm_wizard.html new file mode 100644 index 000000000..bd80e3967 --- /dev/null +++ b/ishtar_common/templates/ishtar/wizard/confirm_wizard.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} +{% load i18n %} +{% load range %} +{% block content %} +
{% csrf_token %} + +
+

{%if confirm_msg %}{{confirm_msg|safe}}{%else%}{% trans "You have entered the following informations:" %}{%endif%}

+ {% for form_label, form_data in datas %} + + + {% for label, data, cls in form_data %} + + {% endfor %} +
{{form_label}}
{{label}}{{data}}
+ {% endfor %} +{{wizard.management_form}} + {%if not wizard.form.is_hidden %} + + {{ wizard.form.as_table }} +
+ {%endif%} +

{%if confirm_end_msg %}{{confirm_end_msg|safe}}{%else%}{% trans "Would you like to save them?" %}{%endif%}

+ + {{ previous_fields|safe }} + +
+
+{% endblock %} diff --git a/ishtar_common/templates/ishtar/wizard/default_wizard.html b/ishtar_common/templates/ishtar/wizard/default_wizard.html new file mode 100644 index 000000000..1996f4e46 --- /dev/null +++ b/ishtar_common/templates/ishtar/wizard/default_wizard.html @@ -0,0 +1,44 @@ +{% extends "base.html" %} +{% load i18n %} +{% load range %} +{% load table_form %} +{% block extra_head %} +{{form.media}} +{% endblock %} +{% block content %} +
{% csrf_token %} + +
+{% if reminder %}
{{ reminder }}
{%endif%} +{{ wizard.form.media }} +{{ wizard.management_form }} +{% if wizard.form.forms %} + {{ wizard.form.management_form }} +
+ + {%if wizard.form.non_form_errors%}{%endif%} + {% for formsetform in wizard.form.forms %} + {% table_form formsetform %} + {% endfor %} + +
{{wizard.form.non_form_errors}}
+{% else %} + +{% table_form wizard.form %} +
+{% endif %} + +{{ previous_fields|safe }} + +{% if next_steps %}{% endif %} +
+
+{% endblock %} -- cgit v1.2.3