Changeset 1094 for trunk/LATMOS-Accounts-Web/root
- Timestamp:
- 08/03/12 09:07:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/root/html/users/my.tt
r1081 r1094 9 9 <div class="oform"> 10 10 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 11 75 [% FOREACH h = db.search_objects('group', 'managedBy=' _ username) %] 12 76 [% IF loop.first %] … … 16 80 <th>Groupe:</th> 17 81 <th>Desc.</th> 18 <th>Donner à </th>19 82 </tr> 20 83 [% END %] … … 26 89 [% ogroup.get_attributes('description') | truncate(30) | html %] 27 90 </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> 41 92 [% IF loop.last %] 42 93 </table> … … 50 101 <tr> 51 102 <th>Nom:</th> 52 <th>Changer le responsable</th>53 103 </tr> 54 104 [% END %] … … 58 108 [% INCLUDE user_flag ouser = ouser %] 59 109 </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> 73 111 [% IF loop.last %] 74 112 </table> … … 82 120 <tr> 83 121 <th>Nom:</th> 84 <th> Changer le responsable</th>122 <th>Description:</th> 85 123 </tr> 86 124 [% END %] … … 91 129 </td> 92 130 <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 %] 106 132 </td> 107 133 </tr>
Note: See TracChangeset
for help on using the changeset viewer.