Code

Sudo update
[gosa.git] / gosa-plugins / sudo / admin / sudo / generic.tpl
index be45c1709dcd613dad0c3a374bc80132c0bd6978..08450eefa75899376ac628f2d492878f62c7b9a0 100644 (file)
@@ -1,14 +1,16 @@
-<h2>Sudo generic</h2>
 <table style="width: 90%;">
  <tr>
-  <td style="width:50%"><b>Generic</b>
+  <td style="vertical-align:top;width:50%">
+   <h2>Sudo generic</h2>
    <table> 
     <tr>
      <td>
       {t}Name{/t}
      </td>
      <td>
+      {render acl=$cnACL}
       <input type="text" name="cn" value="{$cn}">
+      {/render}
      </td>
     </tr>
     <tr>
       {t}Description{/t}
      </td>
      <td>
+      {render acl=$descriptionACL}
       <input type="text" name="description" value="{$description}">
+      {/render}
      </td>
     </tr>
    </table>
   </td>
+  <td style="padding-left:5px;border-left: solid 1px #AAAAAA;">
+   <h2><img alt="" class="center" align="middle" src="images/closedlock.png" />&nbsp; {t}System trust{/t}</h2>
+    {t}Trust mode{/t}&nbsp; 
+    {render acl=$trustModelACL}
+        <select name="trustmode" id="trustmode" size=1
+            onChange="changeSelectState('trustmode', 'wslist');
+                      changeSelectState('trustmode', 'add_ws');
+                      changeSelectState('trustmode', 'del_ws');">
+          {html_options options=$trustmodes selected=$trustmode}
+        </select>
+               <br>
+    {/render}
+    {render acl=$trustModelACL}
+       <select style="width:100%" id="wslist" name="workstation_list[]" size=5 multiple {$trusthide}>
+        {html_options values=$workstations output=$workstations}
+        {if $emptyArrAccess}
+            <option disabled>&nbsp;</option>
+        {/if}
+       </select>
+    {/render}
+       <br>
+    {render acl=$trustModelACL}
+       <input type="submit" id="add_ws" value="{msgPool type=addButton}" name="add_ws" {$trusthide}>&nbsp;
+    {/render}
+    {render acl=$trustModelACL}
+       <input type="submit" id="del_ws" value="{msgPool type=delButton}" name="delete_ws" {$trusthide}>
+    {/render}
+
+  </td>
  </tr> 
+ <tr><td style="width:100%;"colspan="2"><p class="seperator">&nbsp;</p></td></tr>
  <tr>
-  <td style="width:50%"><b>User / Groups</b>
+  <td style="width:50%;padding-right:5px;">
+   <h2><img src="images/select_user.png" alt="" class="center">&nbsp;User / Groups</h2>
+   {render acl=$sudoUserACL}
    {$divlist_sudoUser}
-   <input type='text' value='' name='new_sudoUser'><input type='submit' name='add_sudoUser' value='{msgPool type=addButton}'>
+   {/render}
+   {render acl=$sudoUserACL}
+   <input type='text' value='' name='new_sudoUser'>
+   {/render}
+   {render acl=$sudoUserACL}
+   <input type='submit' name='add_sudoUser' value='{msgPool type=addButton}'>
+   {/render}
+   {render acl=$sudoUserACL}
    <input type='submit' name='list_sudoUser' value='{t}Add from list{/t}'>
+   {/render}
   </td>
-  <td style="border-left: solid 1px #AAAAAA;"><b>Commands</b>
-   {$divlist_sudoCommand}
-   <input type='text' value='' name='new_sudoCommand'><input type='submit' name='add_sudoCommand' value='{msgPool type=addButton}'>
+  <td style="padding-left:5px;border-left: solid 1px #AAAAAA;">
+   <h2><img src="images/select_workstation.png" alt="" class="center">&nbsp;Hosts</h2>
+   {render acl=$sudoHostACL}
+   {$divlist_sudoHost}
+   {/render}
+   {render acl=$sudoHostACL}
+   <input type='text' value='' name='new_sudoHost'>
+   {/render}
+   {render acl=$sudoHostACL}
+   <input type='submit' name='add_sudoHost' value='{msgPool type=addButton}'>
+   {/render}
+   {render acl=$sudoHostACL}
+   <input type='submit' name='list_sudoHost' value='{t}Add from list{/t}'>
+   {/render}
   </td>
  </tr> 
  <tr><td style="width:100%;"colspan="2"><p class="seperator">&nbsp;</p></td></tr>
  <tr>
-  <td><b>Hosts</b>
-   {$divlist_sudoHost}
-   <input type='text' value='' name='new_sudoHost'><input type='submit' name='add_sudoHost' value='{msgPool type=addButton}'>
-   <input type='submit' name='list_sudoHost' value='{t}Add from list{/t}'>
+  <td style="padding-right:5px;">
+   <h2><img src="images/rocket.png" alt="" class="center">&nbsp;Commands</h2>
+   {render acl=$sudoCommandACL}
+   {$divlist_sudoCommand}
+   {/render}
+   {render acl=$sudoCommandACL}
+   <input type='text' value='' name='new_sudoCommand'>
+   {/render}
+   {render acl=$sudoCommandACL}
+   <input type='submit' name='add_sudoCommand' value='{msgPool type=addButton}'>
+   {/render}
   </td>
-  <td style="border-left: solid 1px #AAAAAA;"><b>Run as</b>
-   {$divlist_sudoRunas}
-   <input type='text' value='' name='new_sudoRunas'><input type='submit' name='add_sudoRunas' value='{msgPool type=addButton}'>
+  <td style="padding-left:5px;border-left: solid 1px #AAAAAA;">
+   <h2><img src="images/select_user.png" alt="" class="center">&nbsp;Run as</h2>
+   {render acl=$sudoRunAsACL}
+   {$divlist_sudoRunAs}
+   {/render}
+   {render acl=$sudoRunAsACL}
+   <input type='text' value='' name='new_sudoRunAs'>
+   {/render}
+   {render acl=$sudoRunAsACL}
+   <input type='submit' name='add_sudoRunAs' value='{msgPool type=addButton}'>
+   {/render}
   </td>
  </tr>
 </table>