Ignore:
Timestamp:
06/05/12 12:36:43 (12 years ago)
Author:
nanardon
Message:
  • add button to export user again
File:
1 edited

Legend:

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

    r976 r1051  
    77    <img src="[% c.uri_for('/static', 'icons', 'gtk-delete.png') %]" 
    88    alt="[% "User " _ username %]" title="le compte est désactivé"> 
     9    [% IF c.model('Accounts').db.check_acl(user, 'exported', 'w') %] 
     10<script LANGUAGE="JavaScript"> 
     11<!-- 
     12function confirmSubmit() 
     13{ 
     14var agree=confirm("Activer l'utilisateur [% username %] ?"); 
     15if (agree) 
     16    return true ; 
     17else 
     18    return false ; 
     19} 
     20// --> 
     21</script> 
     22    <form method="POST" action="[% c.uri_for('/users', username, subform) %]" onsubmit="return confirmSubmit()"> 
     23    <input type="submit" value="activer" name="make_active"> 
     24    </form> 
     25    [% END %] 
    926    [% ELSE %] 
    1027    <img src="[% c.uri_for('/static', 'icons', 'user-properties.png') %]" 
Note: See TracChangeset for help on using the changeset viewer.