From 4f1275bdde1b4565a62cf64ea1343911e5fbb55b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 16 Jan 2018 18:51:38 +0100 Subject: UI: improve parcel form --- .../templates/ishtar/wizard/default_wizard.html | 13 +++++++---- .../templates/ishtar/wizard/parcels_wizard.html | 27 +++++++++++++++------- 2 files changed, 27 insertions(+), 13 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 1a774ad49..6c9193966 100644 --- a/ishtar_common/templates/ishtar/wizard/default_wizard.html +++ b/ishtar_common/templates/ishtar/wizard/default_wizard.html @@ -19,14 +19,17 @@ {% block form_detail %} {% if wizard.form.forms %} {{ wizard.form.management_form }} -
- - {%if wizard.form.non_form_errors%}{%endif%} + {% if wizard.form.non_form_errors %} + + {% endif %} {% for formsetform in wizard.form.forms %} {% bs_form formsetform %} {% endfor %} - -
{{wizard.form.non_form_errors}}
+ {% else %} {% bs_form wizard.form %} {% endif %} diff --git a/ishtar_common/templates/ishtar/wizard/parcels_wizard.html b/ishtar_common/templates/ishtar/wizard/parcels_wizard.html index 28ec962f4..6a553d3c1 100644 --- a/ishtar_common/templates/ishtar/wizard/parcels_wizard.html +++ b/ishtar_common/templates/ishtar/wizard/parcels_wizard.html @@ -1,5 +1,5 @@ {% extends "ishtar/wizard/default_wizard.html" %} -{% load i18n range inline_formset %} +{% load i18n range inline_formset table_form %} {% block extra_head %} {{wizard.form.media}} {% endblock %} @@ -9,19 +9,30 @@ {{ wizard.form.media }} {{ wizard.management_form }} {{ wizard.form.management_form }} -{% if automatic_parcel_association %}

{% endif %} - {%if wizard.form.non_form_errors%} - - -
{{wizard.form.non_form_errors}}
{%endif%} -{{wizard.form.selection_form}} + {% if automatic_parcel_association %} + + {% endif %} + {% if wizard.form.non_form_errors %} + {%endif%} + + {% bs_form wizard.form.selection_form %} + {% for field in wizard.form.forms.0 %}{{ field.label_tag }}{% endfor %} {% inline_formset 'Parcels' wizard.form.forms False %}
({% trans "all"%} )
{% if add_all %}

{% endif %} -

+ +
+ +
{{ previous_fields|safe }} {% block "footer" %} -- cgit v1.2.3