1 | <!-- $Id$ --> |
---|
2 | |
---|
3 | [% INCLUDE 'includes/object_header.tt' |
---|
4 | headerobj = templates |
---|
5 | %] |
---|
6 | |
---|
7 | <div id="oaction"> |
---|
8 | [% IF c.model('Accounts').db.check_acl(templates, 'exported', 'w') %] |
---|
9 | [% IF NOT templates.get_c_field('exported') %] |
---|
10 | <form method="POST" action="[% c.uri_for('/templates', templatesname, subform) %]" |
---|
11 | onSubmit="return confirm('Activer l\'alias mail [% templatesname %] ?') ? true : false"> |
---|
12 | <input type="image" name="activate" value="Activer" title="Activer" |
---|
13 | alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-enable.png') %]"> |
---|
14 | <input type="hidden" value="activer" name="make_active"> |
---|
15 | </form> |
---|
16 | [% ELSE %] |
---|
17 | <form method="POST" action="[% c.uri_for('/templates', templatesname, subform) %]" |
---|
18 | onSubmit="return confirm('Désactiver l\'alias mail [% templatesname %] ?') ? true : false"> |
---|
19 | <input type="image" name="disable" value="Désactiver" title="Désactiver" |
---|
20 | alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-disable.png') %]"> |
---|
21 | <input type="hidden" value="désactiver" name="make_inactive"> |
---|
22 | </form> |
---|
23 | [% END %] |
---|
24 | [% END %] |
---|
25 | [% IF c.model('Accounts').db.check_acl(templates, 'DELETE', 'w') %] |
---|
26 | <form method="POST" action="[% c.uri_for('/templates', templatesname, subform) %]" |
---|
27 | onSubmit="return confirm('Détruire l\'alias mail [% templatesname %] ?') ? true : false"> |
---|
28 | <input type="image" name="delete" value="Supprimer" title="Supprimer" |
---|
29 | alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-delete.png') %]"> |
---|
30 | <input type="hidden" value="DETRUIRE" name="delete"> |
---|
31 | </form> |
---|
32 | [% END %] |
---|
33 | </div> |
---|
34 | |
---|
35 | <div id="objectform" class="objectform"> |
---|
36 | |
---|
37 | [% INCLUDE 'includes/form.tt' %] |
---|
38 | |
---|
39 | </div> |
---|
40 | |
---|