From 5d77bf3e5e806fc3492146da1852c0da985233bf Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 18 Jan 2018 17:07:09 +0100 Subject: Improve form person layout --- .../templates/ishtar/wizard/wizard_person.html | 131 +++++++++++++-------- 1 file changed, 80 insertions(+), 51 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/wizard/wizard_person.html b/ishtar_common/templates/ishtar/wizard/wizard_person.html index 85bbfc75e..072528c0b 100644 --- a/ishtar_common/templates/ishtar/wizard/wizard_person.html +++ b/ishtar_common/templates/ishtar/wizard/wizard_person.html @@ -1,59 +1,88 @@ {% extends "ishtar/wizard/default_wizard.html" %} {% load i18n range table_form %} {% block form_detail %} +{% if form.non_field_errors %} + +{% endif %} - - - {% table_field wizard.form.title %} - {% table_field wizard.form.surname 1 %} - {% table_field wizard.form.name 1 %} - {% table_field wizard.form.raw_name %} - {% table_field wizard.form.email %} - {% table_field wizard.form.attached_to %} -
{% trans "Identity" %}
+{% for hidden in form.hidden_fields %} +{{hidden}} +{% if hidden.errors %}
+ {{ hidden.errors }} +
{% endif %} +{% endfor %} -
- - - - - - - - - - - - - - - - - - - - - - -
{% trans "Phone" %}
{% trans "Phone type" %}{% trans "Number" %}
{{ wizard.form.phone_desc.errors }}{{wizard.form.phone_desc|safe}}{{ wizard.form.phone.errors }}{{wizard.form.phone|safe}}
{{ wizard.form.phone_desc2.errors }}{{wizard.form.phone_desc2|safe}}{{ wizard.form.phone2.errors }}{{wizard.form.phone2|safe}}
{{ wizard.form.phone_desc3.errors }}{{wizard.form.phone_desc3|safe}}{{ wizard.form.phone3.errors }}{{wizard.form.phone3|safe}}
{% trans "Mobile phone" %}{{ wizard.form.mobile_phone.errors }}{{wizard.form.mobile_phone|safe}}
-
+
+
+ {% trans "Identity" %} +
+
+ {% bs_field wizard.form.title %} + {% bs_field wizard.form.surname 1 %} + {% bs_field wizard.form.name 1 %} + {% bs_field wizard.form.raw_name %} + {% bs_field wizard.form.email %} + {% bs_field wizard.form.attached_to %} +
+
- - - {% table_field wizard.form.address %} - {% table_field wizard.form.address_complement %} - {% table_field wizard.form.postal_code %} - {% table_field wizard.form.town %} - {% table_field wizard.form.country %} -
{% trans "Business address" %}
-
- - - {% table_field wizard.form.alt_address 0 'Address' %} - {% table_field wizard.form.alt_address_complement 0 'Address complement' %} - {% table_field wizard.form.alt_postal_code 0 'Postal code' %} - {% table_field wizard.form.alt_town 0 'Town' %} - {% table_field wizard.form.alt_country 0 'Country' %} -
{% trans "Other address" %}
+
+
+ {% trans "Phone" %} +
+
+ + + + + + + + + + + + + + + + + + + + + +
{% trans "Phone type" %}{% trans "Number" %}
{{ wizard.form.phone_desc.errors }}{{wizard.form.phone_desc|safe}}{{ wizard.form.phone.errors }}{{wizard.form.phone|safe}}
{{ wizard.form.phone_desc2.errors }}{{wizard.form.phone_desc2|safe}}{{ wizard.form.phone2.errors }}{{wizard.form.phone2|safe}}
{{ wizard.form.phone_desc3.errors }}{{wizard.form.phone_desc3|safe}}{{ wizard.form.phone3.errors }}{{wizard.form.phone3|safe}}
{% trans "Mobile phone" %}{{ wizard.form.mobile_phone.errors }}{{wizard.form.mobile_phone|safe}}
+
+
+ + +
+
+ {% trans "Business address" %} +
+
+ {% bs_field wizard.form.address %} + {% bs_field wizard.form.address_complement %} + {% bs_field wizard.form.postal_code %} + {% bs_field wizard.form.town %} + {% bs_field wizard.form.country %} +
+
+ +
+
+ {% trans "Other address" %} +
+
+ {% bs_field wizard.form.alt_address 0 'Address' %} + {% bs_field wizard.form.alt_address_complement 0 'Address complement' %} + {% bs_field wizard.form.alt_postal_code 0 'Postal code' %} + {% bs_field wizard.form.alt_town 0 'Town' %} + {% bs_field wizard.form.alt_country 0 'Country' %} +
+
{% endblock %} -- cgit v1.2.3