Ignore:
Timestamp:
08/03/12 09:07:37 (12 years ago)
Author:
nanardon
Message:

Add on my page current pending requests

File:
1 edited

Legend:

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

    r1081 r1094  
    99<div class="oform"> 
    1010 
     11[% FOREACH reqid = db.list_request_by_object('user', username) %] 
     12[% IF loop.first %] 
     13<p>Requêtes de modification</p> 
     14<ul> 
     15[% END %] 
     16[% req = db.get_datarequest(reqid) %] 
     17[% req.accreq.get_attributes('description') || req.accreq.id | 
     18    truncate(20) | html %], 
     19[% req.apply | html %], 
     20[% user = req.o_user %] 
     21[% IF user %] 
     22[% dsn = user.get_attributes('displayName') %] 
     23[% IF dsn %] 
     24[% dsn | truncate(20) | html %] 
     25([% user.id | html %]) 
     26[% ELSE %] 
     27[% user.id | html %] 
     28[% END %] 
     29[% END %] 
     30 
     31 
     32[% FOREACH attr = req.attributes %] 
     33[% IF loop.first %] 
     34<ul> 
     35[% END %] 
     36<li>[% attr | html %]: [% req.get_attributes(attr) | html %]</li> 
     37[% IF loop.last %] 
     38</ul> 
     39[% END %] 
     40[% END %] 
     41[% IF loop.last %] 
     42</ul> 
     43[% END %] 
     44[% END %] 
     45 
     46 
     47[% FOREACH reqid = db.list_requests_by_submitter(username) %] 
     48[% IF loop.first %] 
     49<p>Mes requêtes en attente</p> 
     50<table border=1> 
     51[% END %] 
     52[% req = db.get_datarequest(reqid) %] 
     53<tr> 
     54<td> 
     55[% req.accreq.get_attributes('description') || req.accreq.id | 
     56    truncate(20) | html %] 
     57</td> 
     58<td> 
     59[% req.apply | html %] 
     60</td> 
     61<td> 
     62[% obj = req.oobject %] 
     63[% obj.otype | html %] 
     64[% obj.get_attributes('displayName') | html %] 
     65</td> 
     66<td> 
     67</td> 
     68</tr> 
     69[% IF loop.last %] 
     70</table> 
     71[% END %] 
     72[% END %] 
     73 
     74 
    1175[% FOREACH h = db.search_objects('group', 'managedBy=' _ username) %] 
    1276[% IF loop.first %] 
     
    1680<th>Groupe:</th> 
    1781<th>Desc.</th> 
    18 <th>Donner à</th> 
    1982</tr> 
    2083[% END %] 
     
    2689[% ogroup.get_attributes('description') | truncate(30) | html %] 
    2790</td> 
    28 <td> 
    29 [% c.prototype.form_remote_tag( 
    30     { 
    31         url => c.uri_for('/ajax/set_attrs/group/' _ h), 
    32         update => 'posts', 
    33     }, 
    34 ) %] 
    35 [% form = c.model('AttrForms', '', ogroup) %] 
    36 [% form.attr_field('managedBy') %] 
    37 <input type=hidden name=attrs value=managedBy> 
    38 <input type=submit> 
    39 </form> 
    40 </td></tr> 
     91</tr> 
    4192[% IF loop.last %] 
    4293</table> 
     
    50101<tr> 
    51102<th>Nom:</th> 
    52 <th>Changer le responsable</th> 
    53103</tr> 
    54104[% END %] 
     
    58108[% INCLUDE user_flag ouser = ouser %] 
    59109</td> 
    60 <td> 
    61 [% c.prototype.form_remote_tag( 
    62     { 
    63         url => c.uri_for('/ajax/set_attrs/user/' _ h), 
    64         update => 'posts', 
    65     }, 
    66 ) %] 
    67 [% form = c.model('AttrForms', '', ouser) %] 
    68 [% form.attr_field('manager') %] 
    69 <input type=hidden name=attrs value=manager> 
    70 <input type=submit> 
    71 </form> 
    72 </td></tr> 
     110</tr> 
    73111[% IF loop.last %] 
    74112</table> 
     
    82120<tr> 
    83121<th>Nom:</th> 
    84 <th>Changer le responsable</th> 
     122<th>Description:</th> 
    85123</tr> 
    86124[% END %] 
     
    91129</td> 
    92130<td> 
    93 [% c.prototype.form_remote_tag( 
    94     { 
    95         url => c.uri_for('/ajax/set_attrs/nethost/' _ h), 
    96         update => 'posts', 
    97     }, 
    98 ) %] 
    99 [% form = c.model('AttrForms', '', ohost) %] 
    100 [% form.attr_label('owner') %]: [% form.attr_field('owner') %]<br> 
    101 [% form.attr_label('user') %]:[% form.attr_field('user') %]<br> 
    102 <input type=hidden name=attrs value=owner> 
    103 <input type=hidden name=attrs value=user> 
    104 <input type=submit> 
    105 </form> 
     131[% ohost.get_attributes('description') | html %] 
    106132</td> 
    107133</tr> 
Note: See TracChangeset for help on using the changeset viewer.