source: LATMOS-Accounts-Web/root/html/users/addresses.tt @ 730

Last change on this file since 730 was 686, checked in by nanardon, 14 years ago
  • clarify user/address page
  • Property svn:keywords set to Id Rev
File size: 790 bytes
Line 
1<!-- $Id$ -->
2[% IF NOT user %]
3No user [% username | html %] found.
4[% ELSE %]
5   
6<div id="objectform" class="objectform">
7[% INCLUDE 'users/menu.tt' %]
8
9<div id="oform">
10
11[% INCLUDE 'users/address_list.tt' %]
12
13[% IF c.req.param('add_addr') %]
14[% # TODO improve this ACL check, this is bit light... %]
15[% IF c.model('Accounts').db.check_acl(user, 'l', 'w') &&
16      c.model('Accounts').db.check_acl('address', '@CREATE', 'w') %]
17<div style="border:outset">
18<p style="text-align:center"><img src="[% c.uri_for('/static', 'images', 'contact-new.png') %]"> Ajouter une
19adresse</p>
20<form action="[% c.uri_for(username, subform) %]" method="POST">
21<input type="hidden" name="create" value="1">
22[% INCLUDE 'users/address_form.tt' %]
23</form>
24[% END %]
25</div>
26[% END %]
27
28</div>
29</div>
30[% END %]
Note: See TracBrowser for help on using the repository browser.