Code

replaced plugbottom by pluin-actions
[gosa.git] / gosa-plugins / opsi / admin / opsi / generic.tpl
index 1c2c5fddf2b83e4bf234e4e7210797898911dd36..8f8f42fb28105fbeeaffc4bb973dffb2442067e6 100644 (file)
@@ -1,5 +1,5 @@
 
-<h2>Opsi host</h2>
+<h3>{t}OPSI host{/t}</h3>
 
 {if $init_failed}
 
 
 <table style="width: 100%;">
  <tr>
-  <td colspan="2">
+  <td>
    <table>
-    {if $parent_mode}
-     <tr>
-      <td>{t}Name{/t}</td>
-      <td><input type='text' name='hostId' value='{$hostId}'></td>
-     </tr>
+    {if $standalone}
+    <tr>
+     <td>{t}Name{/t}{$must}</td>
+     <td>
+{render acl=$hostIdACL}
+               <input style='width:300px;' type='text' name='hostId' value='{$hostId}'>
+{/render}
+        </td>
+    </tr>
+<!--
+    <tr>
+     <td>{t}MAC address{/t}{$must}</td>
+     <td>
+{render acl=$macACL}
+               <input type='text' name="dummy" value="{$mac}" disabled>
+{/render}
+        </td>
+       </tr>
+-->
+       {else}
+    <tr>
+     <td>{t}Name{/t}</td>
+     <td>
+{render acl=$hostIdACL}
+               <input style='width:300px;' type='text' disabled value="{$hostId}">
+{/render}
+        </td>
+    </tr>
+<!--
+    <tr>
+     <td>{t}MAC address{/t}{$must}</td>
+     <td>
+{render acl=$macACL}
+               <input type='text' name="mac" value="{$mac}">
+{/render}
+        </td>
+    </tr>
+-->
     {/if}
     <tr>
-     <td>{t}Boot product{/t}</td>
+     <td>{t}Netboot product{/t}</td>
      <td>
-      <select name="opsi_netboot_product">
+{render acl=$netbootProductACL}
+      <select name="opsi_netboot_product" onChange="document.mainform.submit();">
                {foreach from=$ANP item=item key=key}
                        <option {if $key == $SNP} selected {/if} value="{$key}">{$key}</option>
                {/foreach}
       </select>
+{/render}
+      &nbsp;
+      {if $netboot_configurable}
+                 <input type='image' name='configure_netboot' src='images/lists/edit.png'
+                       title='{t}Configure product{/t}' class='center'>
+      {else}
+<!--             <input type='image' name='dummy_10' src='images/lists/edit_gray.png'
+                       title='{t}Configure product{/t}' class='center'>-->
+      {/if}
      </td>
     </tr>
    </table>
-  <td>
+  </td>
+  <td style='vertical-align: top;'>
+   <table>
+    <tr>
+     <td>{t}Description{/t}</td>
+     <td>
+{render acl=$descriptionACL}
+               <input type='text' name='description' value='{$description}'>
+{/render}
+        </td>
+    </tr>
+    <tr>
+     <td>{t}Notes{/t}</td>
+     <td>
+{render acl=$descriptionACL}
+               <input type='text' name='note' value='{$note}'>
+{/render}
+        </td>
+    </tr>
+   </table>
+  </td>
  </tr>
  <tr>
-  <td style="width:50%;"><h2>Installed products</h2>
+  <td colspan="2">
+   <hr>
+  </td>
+ </tr>
+ <tr>
+  <td style="width:50%;"><h3><img class='center' src='plugins/opsi/images/product.png' 
+               alt=' '>&nbsp;{t}Installed products{/t}</h3>
+{render acl=$localProductACL}
        {$divSLP}
+{/render}
   </td>
-  <td style="width:50%;"><h2>Available products</h2>
+  <td style="width:50%;"><h3>{t}Available products{/t}</h3>
+{render acl=$localProductACL}
        {$divALP}
+{/render}
+  </td>
+ </tr>
+ <tr>
+  <td colspan="2">
+   <hr><br>
+   {if $standalone}
+    <h3>{t}Action{/t}</h3>
+       <select name='opsi_action'>
+               <option>&nbsp;</option>
+               {if $is_installed}
+               <option value="install">{t}Reinstall{/t}</option>
+               {else}
+               <option value="install">{t}Install{/t}</option>
+               {/if}
+               <option value="wake">{t}Wake{/t}</option>
+       </select>
+{render acl=$triggerActionACL}
+       <input type='submit' name='opsi_trigger_action' value="{t}Execute{/t}">
+{/render}
+   {/if}
   </td>
  </tr>
 </table> 
-<input type='hidden' name='opsigeneric_posted' value='1'>
+<hr>
+
+{$netconfig}
+
+<input type='hidden' name='opsiGeneric_posted' value='1'>
 {/if}