1 | <!-- $Id$ --> |
---|
2 | <table border="1"> |
---|
3 | |
---|
4 | <tr><th colspan=2> |
---|
5 | [% IF address.get_c_field('unexported') %] |
---|
6 | <img src="[% c.uri_for('/static', 'images', 'mail-mark-junk.png') %]"> |
---|
7 | [% ELSE %] |
---|
8 | <img src="[% c.uri_for('/static', 'images', 'mail-mark-unread.png') %]"> |
---|
9 | [% END %] |
---|
10 | |
---|
11 | [% IF address.get_c_field('isMainAddress') %] |
---|
12 | |
---|
13 | <img src="[% c.uri_for('/static', 'images', 'gtk-home.png') %]" |
---|
14 | title="Adresse principale" alt="Adresse principale" |
---|
15 | > |
---|
16 | [% END %] |
---|
17 | [% address.get_c_field('l') | html %] |
---|
18 | [% IF address.get_c_field('physicalDeliveryOfficeName') %] |
---|
19 | - [% address.get_c_field('physicalDeliveryOfficeName') | html %] |
---|
20 | [% END %] |
---|
21 | </th></tr> |
---|
22 | |
---|
23 | [% FOREACH attrs IN [ 'site', 'description', 'isMainAddress', |
---|
24 | 'contactOnly', 'expire', 'physicalDeliveryOfficeName', 'telephoneNumber' ] %] |
---|
25 | <tr> |
---|
26 | <th> |
---|
27 | [% form.attr_label(attrs) %] |
---|
28 | |
---|
29 | [% IF form.attr_hint(attrs) %] |
---|
30 | <span |
---|
31 | title="[% form.attr_hint(attrs) | html %]" |
---|
32 | class="hint">?</span> |
---|
33 | [% END %] |
---|
34 | |
---|
35 | </th> |
---|
36 | <td>[% form.attr_field(attrs) %]</td> |
---|
37 | </tr> |
---|
38 | [% END %] |
---|
39 | |
---|
40 | [% IF NOT c.req.param('add_addr') %] |
---|
41 | <tr> |
---|
42 | <th> |
---|
43 | [% form.attr_label('unexported') %] |
---|
44 | |
---|
45 | [% IF form.attr_hint('unexported') %] |
---|
46 | <span |
---|
47 | title="[% form.attr_hint('unexported') | html %]" |
---|
48 | class="hint">?</span> |
---|
49 | [% END %] |
---|
50 | </th> |
---|
51 | <td>[% form.attr_field('unexported', 'checkbox') %]</td> |
---|
52 | </tr> |
---|
53 | [% ELSE %] |
---|
54 | <input type="hidden" value="1" name="unexported"> |
---|
55 | [% END %] |
---|
56 | |
---|
57 | [% IF address.get_c_field('site') %] |
---|
58 | [% fieldtype = 'label' %] |
---|
59 | [% END %] |
---|
60 | <tr><td colspan=2> |
---|
61 | Les champs suivants ne sont à remplir que si le site n'est pas précisé |
---|
62 | </td></tr> |
---|
63 | |
---|
64 | [% FOREACH attrs IN [ 'streetAddress', 'postOfficeBox', 'postalCode', 'l', 'st', |
---|
65 | 'facsimileTelephoneNumber', 'co' ] %] |
---|
66 | <tr> |
---|
67 | <th> |
---|
68 | [% form.attr_label(attrs) %] |
---|
69 | [% IF form.attr_hint(attrs) %] |
---|
70 | <span |
---|
71 | title="[% form.attr_hint(attrs) | html %]" |
---|
72 | class="hint">?</span> |
---|
73 | [% END %] |
---|
74 | </th> |
---|
75 | <td>[% form.attr_field(attrs, fieldtype) %]</td> |
---|
76 | </tr> |
---|
77 | [% END %] |
---|
78 | |
---|
79 | [% IF form.write_attributes %] |
---|
80 | <tr> |
---|
81 | <th></th> |
---|
82 | <td> |
---|
83 | [% form.submit %] |
---|
84 | </td> |
---|
85 | </tr> |
---|
86 | [% END %] |
---|
87 | </table> |
---|