index 6497c8e4c7e274edbd900ca7a8f7a089240a271e..8f8f42fb28105fbeeaffc4bb973dffb2442067e6 100644 (file)
-<h2>Opsi host</h2>
+<h3>{t}OPSI host{/t}</h3>
{if $init_failed}
<table style="width: 100%;">
<tr>
- <td colspan="2">
+ <td>
<table>
+ {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}Boot product{/t}</td>
+ <td>{t}MAC address{/t}{$must}</td>
<td>
- <select name="opsi_netboot_product">
+{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}Netboot product{/t}</td>
+ <td>
+{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}
+
+ {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=' '> {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> </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='opsi_generic' value='1'>
+<hr>
+
+{$netconfig}
+
+<input type='hidden' name='opsiGeneric_posted' value='1'>
{/if}