Code

Updated sudo
[gosa.git] / gosa-plugins / sudo / admin / sudo / generic.tpl
1 <table style="width: 90%;">
2  <tr>
3   <td style="vertical-align:top;width:50%">
4    <h2>Sudo generic</h2>
5    <table> 
6     <tr>
7      <td>
8       {t}Name{/t}
9      </td>
10      <td>
11       <input type="text" name="cn" value="{$cn}">
12      </td>
13     </tr>
14     <tr>
15      <td>
16       {t}Description{/t}
17      </td>
18      <td>
19       <input type="text" name="description" value="{$description}">
20      </td>
21     </tr>
22    </table>
23         </td>
24         <td>
25    <h2><img alt="" class="center" align="middle" src="images/closedlock.png" /> {t}System trust{/t}</h2>
26     {t}Trust mode{/t}&nbsp;
27     {render acl=$trustmodeACL}
28         <select name="trustmode" id="trustmode" size=1
29             onChange="changeSelectState('trustmode', 'wslist');
30                       changeSelectState('trustmode', 'add_ws');
31                       changeSelectState('trustmode', 'del_ws');">
32           {html_options options=$trustmodes selected=$trustmode}
33         </select>
34     {/render}
35     {render acl=$trustmodeACL}
36        <select style="width:100%" id="wslist" name="workstation_list[]" size=5 multiple {$trusthide}>
37         {html_options values=$workstations output=$workstations}
38         {if $emptyArrAccess}
39             <option disabled>&nbsp;</option>
40         {/if}
41        </select>
42     {/render}
43        <br>
44     {render acl=$trustmodeACL}
45        <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>&nbsp;
46     {/render}
47     {render acl=$trustmodeACL}
48        <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
49     {/render}
51   </td>
52  </tr> 
53  <tr><td style="width:100%;"colspan="2"><p class="seperator">&nbsp;</p></td></tr>
54  <tr>
55   <td style="width:50%"><b>User / Groups</b>
56    {$divlist_sudoUser}
57    <input type='text' value='' name='new_sudoUser'><input type='submit' name='add_sudoUser' value='{msgPool type=addButton}'>
58    <input type='submit' name='list_sudoUser' value='{t}Add from list{/t}'>
59   </td>
60   <td><b>Hosts</b>
61    {$divlist_sudoHost}
62    <input type='text' value='' name='new_sudoHost'><input type='submit' name='add_sudoHost' value='{msgPool type=addButton}'>
63    <input type='submit' name='list_sudoHost' value='{t}Add from list{/t}'>
64   </td>
65  </tr> 
66  <tr><td style="width:100%;"colspan="2"><p class="seperator">&nbsp;</p></td></tr>
67  <tr>
68   <td style="border-left: solid 1px #AAAAAA;"><b>Commands</b>
69    {$divlist_sudoCommand}
70    <input type='text' value='' name='new_sudoCommand'><input type='submit' name='add_sudoCommand' value='{msgPool type=addButton}'>
71   </td>
72   <td style="border-left: solid 1px #AAAAAA;"><b>Run as</b>
73    {$divlist_sudoRunas}
74    <input type='text' value='' name='new_sudoRunas'><input type='submit' name='add_sudoRunas' value='{msgPool type=addButton}'>
75   </td>
76  </tr>
77 </table>