Changeset 1062 for branches/2.0/LATMOS-Accounts-Web/root/html/nethosts
- Timestamp:
- 07/24/12 11:18:18 (12 years ago)
- 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 3 673 2010-09-17 16:57:32Z nanardon $ -->1 <!-- $Id: default.tt 3055 2010-08-20 17:34:56Z nanardon $ --> 2 2 [% IF NOT nethost %] 3 3 No group [% nethostname | html %] found. … … 24 24 [% END %] 25 25 26 [% IF c.model('Accounts').db.check_acl('nethost', 'ip', 'w') %] 27 <tr><th>Ajouter une ip libre:</th> 26 28 <tr><td> 27 [% IF c.model('Accounts').db.check_acl('nethost', 'ip', 'w') %]28 <fieldset>29 <legend>Ajouter une ip libre:</legend>30 29 <form action="[% c.uri_for(nethostname) %]" method="POST"> 31 30 <label for="zone">Zone:</label> <select name="zone" id="zone"> … … 48 47 <input type="submit" name="addip"> 49 48 </form> 50 </ fieldset>49 </td></tr> 51 50 [% END %] 52 51 53 52 [% 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> 55 55 <form action="[% c.uri_for(nethostname) %]" method="POST"> 56 56 <input type="text" name="to"><br> … … 59 59 <input type="submit" name="rename"> 60 60 </form> 61 </ fieldset>61 </td></tr> 62 62 [% END %] 63 63 … … 75 75 // --> 76 76 </script> 77 < fieldset>78 < legend>Supprimer cet hÃŽte</legend>77 <tr><th>Supprimer cet hÃŽte</th></tr> 78 <tr><td> 79 79 <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"> 83 81 </form> 84 </ fieldset>82 </td></tr> 85 83 [% END %] 86 84 87 </td></tr>88 85 </table> 89 86 </div> -
branches/2.0/LATMOS-Accounts-Web/root/html/nethosts/index.tt
r861 r1062 9 9 10 10 <table border="0"> 11 <tr><td colspan=" 3">11 <tr><td colspan="2"> 12 12 [% IF initials %] 13 13 Pages: … … 22 22 [% END %] 23 23 </td></tr> 24 <tr><t d></td><th>Nom</th><th>Description</th></tr>24 <tr><th>Nom</th><th>Description</th></tr> 25 25 [% FOREACH nethostname = nethostlist %] 26 26 [% nethost = db.get_object('nethost', nethostname) %] 27 27 <tr> 28 <td>[% nethostname | html %]</td> 28 29 <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 %]38 30 [% IF nethost.get_attributes('owner') %] 39 31 (<a href="[% c.uri_for('/users', nethost.get_attributes('owner')) %]">[% nethost.get_attributes('owner') %]</a>) 40 32 [% END %] 41 </td>42 <td>43 <span title="[% nethost.get_attributes('description') | html %]">44 33 [% 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> 47 39 </tr> 48 40 [% END %]
Note: See TracChangeset
for help on using the changeset viewer.