Changeset 542


Ignore:
Timestamp:
11/09/09 15:46:48 (15 years ago)
Author:
nanardon
Message:
  • split address list into separate template
Location:
LATMOS-Accounts-Web/root/html/users
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts-Web/root/html/users/addresses.tt

    r508 r542  
    88 
    99<div id="oform"> 
    10 <form action="[% c.uri_for(username, subform) %]" method="POST"> 
    11 <table border="1"> 
    12 [% FOREACH idaddress = user.get_c_field('otheraddress') %] 
    13 [% laddress = c.model('Accounts').db.get_object('address', idaddress) %] 
    14 <tr> 
    15     <td>[% IF laddress.get_c_field('isMainAddress') %] 
    16     <img src="[% c.uri_for('/static', 'images', 'mail-mark-important.png') %]"> 
    17     [% END %]</td> 
    18     <td> 
    19     <form action="[% c.uri_for(username, subform) %]" method="POST"> 
    20     <input type="hidden" name="delete" value="[% idaddress | html %]"> 
    21     <input type="image" value="Effacer" alt="effacer" src="[% c.uri_for('/static', 'images', 'edit-delete.png') %]"> 
    22     </form> 
    23     </td> 
    24     <th><a href="[% c.uri_for(username, subform, idaddress) %]"> 
    25         [% laddress.get_c_field('l') || idaddress | html %] 
    26     </a></th> 
    27 </tr> 
    28 [% END %] 
    29 </table> 
    30 </form> 
     10 
     11[% INCLUDE 'users/address_list.tt' %] 
    3112 
    3213[% # TODO improve this ACL check, this is bit light... %] 
Note: See TracChangeset for help on using the changeset viewer.