summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/wizard
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-04-08 02:52:33 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-04-15 21:54:17 +0200
commit9d87e9f47fa4d29d818d541815d92e0a43acd995 (patch)
tree8a9bebd6e80e2d8983930be1a6c74d42b9a816d1 /ishtar_common/templates/ishtar/wizard
parent2d2dc4c980393ccca7f6cb41d5b87f296bef4c96 (diff)
downloadIshtar-9d87e9f47fa4d29d818d541815d92e0a43acd995.tar.bz2
Ishtar-9d87e9f47fa4d29d818d541815d92e0a43acd995.zip
Adpat person form to new fields
Diffstat (limited to 'ishtar_common/templates/ishtar/wizard')
-rw-r--r--ishtar_common/templates/ishtar/wizard/default_wizard.html2
-rw-r--r--ishtar_common/templates/ishtar/wizard/wizard_person.html59
2 files changed, 61 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/wizard/default_wizard.html b/ishtar_common/templates/ishtar/wizard/default_wizard.html
index 1a17cf32b..6491b7a0f 100644
--- a/ishtar_common/templates/ishtar/wizard/default_wizard.html
+++ b/ishtar_common/templates/ishtar/wizard/default_wizard.html
@@ -24,6 +24,7 @@
<div class='form'>
{{ wizard.form.media }}
{{ wizard.management_form }}
+{% block form_detail %}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
<div class='top_button'><input type="submit" id="submit_form" value="{% trans "Validate" %}"/></div>
@@ -39,6 +40,7 @@
{% table_form wizard.form %}
{% if not is_search %}</table>{% endif %}
{% endif %}
+{% endblock %}
<input type="hidden" name="{{ step_field }}" value="{{ step0 }}" />
{{ previous_fields|safe }}
{% block "validation_bar" %}
diff --git a/ishtar_common/templates/ishtar/wizard/wizard_person.html b/ishtar_common/templates/ishtar/wizard/wizard_person.html
new file mode 100644
index 000000000..c1806132f
--- /dev/null
+++ b/ishtar_common/templates/ishtar/wizard/wizard_person.html
@@ -0,0 +1,59 @@
+{% extends "ishtar/wizard/default_wizard.html" %}
+{% load i18n range table_form %}
+{% block form_detail %}
+
+<table class='formset'>
+ <caption>{% trans "Identity" %}</caption>
+ {% 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 %}
+</table>
+
+<hr class='spacer'/>
+<table class='formset table-form'>
+ <caption>{% trans "Phone" %}</caption>
+ <tr>
+ <th>{% trans "Phone type" %}</th>
+ <th>{% trans "Number" %}</th>
+ </tr>
+ <tr>
+ <td>{{ wizard.form.phone_desc.errors }}{{wizard.form.phone_desc|safe}}</td>
+ <td>{{ wizard.form.phone.errors }}{{wizard.form.phone|safe}}</td>
+ </tr>
+ <tr>
+ <td>{{ wizard.form.phone_desc2.errors }}{{wizard.form.phone_desc2|safe}}</td>
+ <td>{{ wizard.form.phone2.errors }}{{wizard.form.phone2|safe}}</td>
+ </tr>
+ <tr>
+ <td>{{ wizard.form.phone_desc3.errors }}{{wizard.form.phone_desc3|safe}}</td>
+ <td>{{ wizard.form.phone3.errors }}{{wizard.form.phone3|safe}}</td>
+ </tr>
+ <tr>
+ <td>{% trans "Mobile phone" %}</td>
+ <td>{{ wizard.form.mobile_phone.errors }}{{wizard.form.mobile_phone|safe}}</td>
+ </tr>
+</table>
+<hr class='spacer'/>
+
+<table class='formset'>
+ <caption>{% trans "Business address" %}</caption>
+ {% 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 %}
+</table>
+<hr class='spacer'/>
+<table class='formset'>
+ <caption>{% trans "Other address" %}</caption>
+ {% table_field wizard.form.alt_address %}
+ {% table_field wizard.form.alt_address_complement %}
+ {% table_field wizard.form.alt_postal_code %}
+ {% table_field wizard.form.alt_town %}
+ {% table_field wizard.form.alt_country %}
+</table>
+
+{% endblock %}