blob: b760c027fb6ea05fa891aaa9110c3cd1e4380322 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
{% extends "ishtar/wizard/default_wizard.html" %}
{% load i18n range table_form %}
{% block form_detail %}
{% if form.non_field_errors %}
<div class="alert alert-danger" role="alert">
{{form.non_field_errors}}
</div>
{% endif %}
{% for hidden in form.hidden_fields %}
{{hidden}}
{% if hidden.errors %}<div class="invalid-feedback">
{{ hidden.errors }}
</div>{% endif %}
{% endfor %}
<div class="card">
<div class="card-header">
{% trans "Identity" %}
</div>
<div class="card-body form-row">
{% bs_field wizard.form.surname 1 %}
{% bs_field wizard.form.name 1 %}
{% bs_field wizard.form.title %}
{% bs_field wizard.form.salutation %}
{% bs_field wizard.form.raw_name %}
{% bs_field wizard.form.email %}
{% bs_field wizard.form.attached_to %}
</div>
</div>
<div class="card">
<div class="card-header">
{% trans "Phone" %}
</div>
<div class="card-body form-row">
<table class='table table-striped'>
<tr>
<th>{% trans "Phone type" %}</th>
<th>{% trans "Number" context "phone 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>
</div>
</div>
<div class="card">
<div class="card-header">
{% trans "Business address" %}
</div>
<div class="card-body form-row">
{% 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.precise_town_id %}
{% bs_field wizard.form.country %}
</div>
</div>
<div class="card">
<div class="card-header">
{% trans "Other address" %}
</div>
<div class="card-body form-row">
{% 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' %}
</div>
</div>
{% endblock %}
|