Changeset 2151 for trunk/LATMOS-Accounts-Web
- Timestamp:
- 11/22/18 13:09:21 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/root/html/users/my.tt
r1662 r2151 57 57 <th>Nom:</th> 58 58 <th>Description:</th> 59 <th>Utilisateur:</th> 60 <th>Fin de garantie:</th> 59 61 </tr> 60 62 [% END %] … … 67 69 [% ohost.get_attributes('description') | html %] 68 70 </td> 71 <td> 72 [% hostuser = ohost.get_attributes('user') %] 73 <a href="[% c.uri_for('/users', hostuser, 'my') %]">[% hostuser | html %]</a> 74 </td> 75 <td> 76 [% ohost.get_attributes('endOfWarranty') | html %] 77 </td> 69 78 </tr> 70 79 [% IF loop.last %] … … 73 82 [% END %] 74 83 84 [% FOREACH h = db.search_objects('nethost', 'user=' _ username) %] 85 [% IF loop.first %] 86 <p>Ordinateurs que j'utilise</p> 87 <table border=1> 88 <tr> 89 <th>Nom:</th> 90 <th>Description:</th> 91 <th>Propriétaire:</th> 92 <th>Fin de garantie:</th> 93 </tr> 94 [% END %] 95 [% ohost = db.get_object('nethost', h) %] 96 <tr> 97 <td> 98 <a href="[% c.uri_for('/nethosts', h) %]">[% h | html %]</a> 99 </td> 100 <td> 101 [% ohost.get_attributes('description') | html %] 102 </td> 103 <td> 104 [% hostuser = ohost.get_attributes('owner') %] 105 <a href="[% c.uri_for('/users', hostuser, 'my') %]">[% hostuser | html %]</a> 106 </td> 107 <td> 108 [% ohost.get_attributes('endOfWarranty') | html %] 109 </td> 110 </tr> 111 [% IF loop.last %] 112 </table> 113 [% END %] 114 [% END %] 75 115 </div> 76 116
Note: See TracChangeset
for help on using the changeset viewer.