index 9c6fb58cfc6ce46eec01956a38d81a92dd23cfc7..8f8f42fb28105fbeeaffc4bb973dffb2442067e6 100644 (file)
-<h2><img src='plugins/opsi/images/client_generic.png' alt=' ' class='center'> {t}OPSI host{/t}</h2>
+<h3>{t}OPSI host{/t}</h3>
{if $init_failed}
<table>
{if $standalone}
<tr>
- <td>{t}Name{/t}</td>
- <td><input style='width:300px;' type='text' name='hostId' value='{$hostId}'></td>
+ <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><input type='text' name="mac" value="{$mac}"></td>
+ <td>
+{render acl=$macACL}
+ <input type='text' name="dummy" value="{$mac}" disabled>
+{/render}
+ </td>
</tr>
+-->
{else}
<tr>
<td>{t}Name{/t}</td>
- <td><input style='width:300px;' type='text' disabled value="{$hostId}"></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><input type='text' name="mac" value="{$mac}"></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'
<table>
<tr>
<td>{t}Description{/t}</td>
- <td><input type='text' name='description' value='{$description}'></td>
+ <td>
+{render acl=$descriptionACL}
+ <input type='text' name='description' value='{$description}'>
+{/render}
+ </td>
</tr>
<tr>
<td>{t}Notes{/t}</td>
- <td><input type='text' name='note' value='{$note}'></td>
+ <td>
+{render acl=$descriptionACL}
+ <input type='text' name='note' value='{$note}'>
+{/render}
+ </td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
- <p class='seperator'> </p>
+ <hr>
</td>
</tr>
<tr>
- <td style="width:50%;"><h2><img class='center' src='plugins/opsi/images/product.png'
- alt=' '> {t}Installed products{/t}</h2>
+ <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>{t}Available products{/t}</h2>
+ <td style="width:50%;"><h3>{t}Available products{/t}</h3>
+{render acl=$localProductACL}
{$divALP}
+{/render}
</td>
</tr>
<tr>
<td colspan="2">
- <p class='seperator'> </p><br>
+ <hr><br>
{if $standalone}
- <h2><img src='images/rocket.png' alt="" class="center"> {t}Action{/t}</h2>
+ <h3>{t}Action{/t}</h3>
<select name='opsi_action'>
<option> </option>
{if $is_installed}
{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>
+<hr>
+
+{$netconfig}
+
<input type='hidden' name='opsiGeneric_posted' value='1'>
{/if}