Ignore:
Timestamp:
11/22/18 13:09:21 (6 years ago)
Author:
nanardon
Message:

Add host used by people on my page

File:
1 edited

Legend:

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

    r1662 r2151  
    5757<th>Nom:</th> 
    5858<th>Description:</th> 
     59<th>Utilisateur:</th> 
     60<th>Fin de garantie:</th> 
    5961</tr> 
    6062[% END %] 
     
    6769[% ohost.get_attributes('description') | html %] 
    6870</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> 
    6978</tr> 
    7079[% IF loop.last %] 
     
    7382[% END %] 
    7483 
     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 %] 
    75115</div> 
    76116 
Note: See TracChangeset for help on using the changeset viewer.