[372] | 1 | <!-- $Id$ --> |
---|
| 2 | <table border="1"> |
---|
[909] | 3 | |
---|
[1162] | 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 | |
---|
[909] | 23 | [% FOREACH attrs IN [ 'site', 'description', 'isMainAddress', |
---|
[2078] | 24 | 'contactOnly', 'expire', 'physicalDeliveryOfficeName', 'telephoneNumber' ] %] |
---|
[372] | 25 | <tr> |
---|
[909] | 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> |
---|
[372] | 37 | </tr> |
---|
[909] | 38 | [% END %] |
---|
| 39 | |
---|
[759] | 40 | [% IF NOT c.req.param('add_addr') %] |
---|
[714] | 41 | <tr> |
---|
[909] | 42 | <th> |
---|
[940] | 43 | [% form.attr_label('unexported') %] |
---|
[909] | 44 | |
---|
[940] | 45 | [% IF form.attr_hint('unexported') %] |
---|
[909] | 46 | <span |
---|
[940] | 47 | title="[% form.attr_hint('unexported') | html %]" |
---|
[909] | 48 | class="hint">?</span> |
---|
| 49 | [% END %] |
---|
| 50 | </th> |
---|
[940] | 51 | <td>[% form.attr_field('unexported', 'checkbox') %]</td> |
---|
[714] | 52 | </tr> |
---|
[760] | 53 | [% ELSE %] |
---|
[940] | 54 | <input type="hidden" value="1" name="unexported"> |
---|
[759] | 55 | [% END %] |
---|
[909] | 56 | |
---|
[372] | 57 | [% IF address.get_c_field('site') %] |
---|
| 58 | [% fieldtype = 'label' %] |
---|
| 59 | [% END %] |
---|
[691] | 60 | <tr><td colspan=2> |
---|
[696] | 61 | Les champs suivants ne sont à remplir que si le site n'est pas précisé |
---|
[691] | 62 | </td></tr> |
---|
[909] | 63 | |
---|
| 64 | [% FOREACH attrs IN [ 'streetAddress', 'postOfficeBox', 'postalCode', 'l', 'st', |
---|
| 65 | 'facsimileTelephoneNumber', 'co' ] %] |
---|
[372] | 66 | <tr> |
---|
[909] | 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> |
---|
[372] | 76 | </tr> |
---|
[909] | 77 | [% END %] |
---|
| 78 | |
---|
[861] | 79 | [% IF form.write_attributes %] |
---|
[372] | 80 | <tr> |
---|
| 81 | <th></th> |
---|
[861] | 82 | <td> |
---|
| 83 | [% form.submit %] |
---|
| 84 | </td> |
---|
[372] | 85 | </tr> |
---|
[861] | 86 | [% END %] |
---|
[372] | 87 | </table> |
---|