Ignore:
Timestamp:
01/26/16 18:42:54 (8 years ago)
Author:
nanardon
Message:

Split the users/ code

Location:
trunk/LATMOS-Accounts-Web/root/html/users
Files:
1 deleted
4 edited
1 moved

Legend:

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

    r1661 r1662  
    99[% INCLUDE 'includes/form.tt' 
    1010    form = form 
    11     form_uri = c.uri_for(username, subform) %] 
     11    form_uri = c.uri_for('/' _ c.req.path) %] 
    1212</div> 
    1313[% END %] 
  • trunk/LATMOS-Accounts-Web/root/html/users/address.tt

    r1211 r1662  
    1616            [% loop.count %]: 
    1717            [% IF address.id != idaddress %] 
    18             <a href="[% c.uri_for(username, subform, idaddress) %]"> 
     18            <a href="[% c.uri_for(username, 'address', idaddress) %]"> 
    1919            [% END %] 
    2020 
     
    3535 
    3636        [% IF laddress.base.check_acl(laddress, '@DELETE', 'w') %] 
    37         <form action="[% c.uri_for(username, subform) %]" method="POST" 
     37        <form action="[% c.uri_for(username, 'address') %]" method="POST" 
    3838            style="display:inline"> 
    3939        <input type="hidden" name="del_addr" value="[% laddress.id | html %]"> 
     
    4949        [% IF NOT laddress.get_c_field('isMainAddress') %] 
    5050        <td> 
    51         <form action="[% c.uri_for(username, subform) %]" method="POST" 
     51        <form action="[% c.uri_for('/users', username, 'address') %]" method="POST" 
    5252            style="display:inline;"> 
    5353        <input type="hidden" name="main" value="[% laddress.id | html %]"> 
     
    6868          c.model('Accounts').db.check_acl('address', '@CREATE', 'w') %] 
    6969    <tr><td colspan=3 align="center"> 
    70     <form action="[% c.uri_for(username, subform) %]" method="POST"> 
     70    <form action="[% c.uri_for('/users', username, 'address') %]" method="POST"> 
    7171    <input type="hidden" name="add_addr" value="1"> 
    7272    <input type="submit" value="Ajouter une addresse"> 
     
    8080[% IF address %] 
    8181 
    82 <form action="[% c.uri_for(username, subform, address.id) %]" method="POST"> 
     82<form action="[% c.uri_for('/users', username, 'address', address.id) %]" method="POST"> 
    8383[% INCLUDE 'users/address_form.tt' %] 
    8484</form> 
  • trunk/LATMOS-Accounts-Web/root/html/users/employment.tt

    r1629 r1662  
    4848 
    4949<div style="display: inline-block;"> 
    50     <form action="[% c.uri_for(username, subform, employment.id || '@create') %]" method="POST"> 
     50    <form action="[% c.uri_for('/users', username, 'employment', employment.id || '@create') %]" method="POST"> 
    5151    <table border=1> 
    5252    [% FOREACH attr =  form.attributes %] 
  • trunk/LATMOS-Accounts-Web/root/html/users/my.tt

    r1346 r1662  
    77 
    88<div id="objectform" class="objectform"> 
    9  
     9[% db = c.model('Accounts').db %] 
    1010 
    1111[% FOREACH h = db.search_objects('group', 'managedBy=' _ username) %] 
  • trunk/LATMOS-Accounts-Web/root/html/users/object_header.tt

    r1558 r1662  
    5555 
    5656<div id="omenu"> 
    57         <a href="[% c.uri_for(username) %]"><span [% 'id="oactive"' IF subform == '' %]>Statut RH</span></a> 
     57        <a href="[% c.uri_for(username) %]"><span [% 'id="oactive"' IF subform == '' || subform == 'employment' %]>Statut RH</span></a> 
    5858        <a href="[% c.uri_for(username, 'sys') %]"><span [% 'id="oactive"' IF subform == 'sys' %]>SystÚme</span></a> 
    5959        <a href="[% c.uri_for(username, 'groups') %]"><span [% 'id="oactive"' IF subform == 'groups' %]>Groupes</span></a> 
Note: See TracChangeset for help on using the changeset viewer.