Ignore:
Timestamp:
07/24/12 11:18:18 (12 years ago)
Author:
nanardon
Message:
  • tag version 2.0
Location:
branches/2.0/LATMOS-Accounts-Web/root/html/nethosts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/LATMOS-Accounts-Web/root/html/nethosts/default.tt

    r861 r1062  
    1 <!-- $Id: default.tt 3673 2010-09-17 16:57:32Z nanardon $ --> 
     1<!-- $Id: default.tt 3055 2010-08-20 17:34:56Z nanardon $ --> 
    22[% IF NOT nethost %] 
    33No group [% nethostname | html %] found. 
     
    2424[% END %] 
    2525 
     26[% IF c.model('Accounts').db.check_acl('nethost', 'ip', 'w') %] 
     27<tr><th>Ajouter une ip libre:</th> 
    2628<tr><td> 
    27 [% IF c.model('Accounts').db.check_acl('nethost', 'ip', 'w') %] 
    28 <fieldset> 
    29 <legend>Ajouter une ip libre:</legend> 
    3029<form action="[% c.uri_for(nethostname) %]" method="POST"> 
    3130<label  for="zone">Zone:</label> <select name="zone" id="zone"> 
     
    4847<input type="submit" name="addip"> 
    4948</form> 
    50 </fieldset> 
     49</td></tr> 
    5150[% END %] 
    5251 
    5352[% IF c.model('Accounts').db.check_acl('nethost', '@CREATE', 'w') %] 
    54 <fieldset><legend>Renommer la machine en:</legend> 
     53<tr><th>Renommer la machine en:</th></tr> 
     54<tr><td> 
    5555<form action="[% c.uri_for(nethostname) %]" method="POST"> 
    5656<input type="text" name="to"><br> 
     
    5959<input type="submit" name="rename"> 
    6060</form> 
    61 </fieldset> 
     61</td></tr> 
    6262[% END %] 
    6363 
     
    7575// --> 
    7676</script> 
    77 <fieldset> 
    78 <legend>Supprimer cet hÃŽte</legend> 
     77<tr><th>Supprimer cet hÃŽte</th></tr> 
     78<tr><td> 
    7979<form action="[% c.uri_for(nethostname) %]" method="POST" onsubmit="return confirmSubmit()"> 
    80 <input type="image" name="delete" value="Supprimer" title="Supprimer" alt="effacer" src="[% 
    81 c.uri_for('/static', 'images', 'edit-delete.png') %]"> 
    82 <input type="hidden" name="delete" value="Supprimer"> 
     80<input type="submit" name="delete" value="Supprimer"> 
    8381</form> 
    84 </fieldset> 
     82</td></tr> 
    8583[% END %] 
    8684 
    87 </td></tr> 
    8885</table> 
    8986</div> 
  • branches/2.0/LATMOS-Accounts-Web/root/html/nethosts/index.tt

    r861 r1062  
    99 
    1010<table border="0"> 
    11 <tr><td colspan="3"> 
     11<tr><td colspan="2"> 
    1212[% IF initials %] 
    1313Pages: 
     
    2222[% END %] 
    2323</td></tr> 
    24 <tr><td></td><th>Nom</th><th>Description</th></tr> 
     24<tr><th>Nom</th><th>Description</th></tr> 
    2525[% FOREACH nethostname = nethostlist %] 
    2626[% nethost = db.get_object('nethost', nethostname) %] 
    2727<tr> 
     28    <td>[% nethostname | html %]</td> 
    2829    <td> 
    29 [% INCLUDE 'object_flag' object=nethost %] 
    30     </td> 
    31     <td> 
    32     <a href="[% c.uri_for('/nethosts', nethostname) %]"> 
    33     <img src="[% c.uri_for('/static', 'icons', 'icon_edit.png') %]" 
    34       height="16" width="16" 
    35       alt="[% "edit " _ nethostname | html %]"> 
    36     </a>[% username | html %] 
    37     [% nethostname | html %] 
    3830    [% IF nethost.get_attributes('owner') %] 
    3931    (<a href="[% c.uri_for('/users', nethost.get_attributes('owner')) %]">[% nethost.get_attributes('owner') %]</a>) 
    4032    [% END %] 
    41     </td> 
    42     <td> 
    43     <span title="[% nethost.get_attributes('description') | html %]"> 
    4433    [% nethost.get_attributes('description') | truncate(20) | html %] 
    45     </span> 
    46     </td> 
     34    <a href="[% c.uri_for('/nethosts', nethostname) %]"> 
     35        <img src="[% c.uri_for('/static', 'icons', 'arrow-right.png') %]" 
     36            height="16" width="16" 
     37            alt="[% "edit " _ nethostname | html %]"> 
     38    </a></td> 
    4739</tr> 
    4840[% END %] 
Note: See TracChangeset for help on using the changeset viewer.