Code

Updated sudo generic
[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 style="padding-left:5px;border-left: solid 1px #AAAAAA;">
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%;padding-right:5px;">
56    <h2><img src="images/select_user.png" alt="" class="center">&nbsp;User / Groups</h2>
57    {$divlist_sudoUser}
58    <input type='text' value='' name='new_sudoUser'><input type='submit' name='add_sudoUser' value='{msgPool type=addButton}'>
59    <input type='submit' name='list_sudoUser' value='{t}Add from list{/t}'>
60   </td>
61   <td style="padding-left:5px;border-left: solid 1px #AAAAAA;"><h2><img src="images/select_workstation.png" alt="" class="center">&nbsp;Hosts</h2>
62    {$divlist_sudoHost}
63    <input type='text' value='' name='new_sudoHost'><input type='submit' name='add_sudoHost' value='{msgPool type=addButton}'>
64    <input type='submit' name='list_sudoHost' value='{t}Add from list{/t}'>
65   </td>
66  </tr> 
67  <tr><td style="width:100%;"colspan="2"><p class="seperator">&nbsp;</p></td></tr>
68  <tr>
69   <td style="padding-right:5px;"><h2><img src="images/rocket.png" alt="" class="center">Commands</h2>
70    {$divlist_sudoCommand}
71    <input type='text' value='' name='new_sudoCommand'><input type='submit' name='add_sudoCommand' value='{msgPool type=addButton}'>
72   </td>
73   <td style="padding-left:5px;border-left: solid 1px #AAAAAA;"><h2><img src="images/select_user.png" alt="" class="center">&nbsp;Run as</h2>
74    {$divlist_sudoRunas}
75    <input type='text' value='' name='new_sudoRunas'><input type='submit' name='add_sudoRunas' value='{msgPool type=addButton}'>
76   </td>
77  </tr>
78 </table>