2 <h3>{t}OPSI host{/t}</h3>
4 {if $init_failed}
6 <font style='color: #FF0000;'>{msgPool type=siError p=$message}</font>
8 <button type='submit' name='reinit'>{t}Retry{/t}</button>
11 {else}
13 <table style="width: 100%;">
14 <tr>
15 <td>
16 <table>
17 {if $standalone}
18 <tr>
19 <td>{t}Name{/t}{$must}</td>
20 <td>
21 {render acl=$hostIdACL}
22 <input style='width:300px;' type='text' name='hostId' value='{$hostId}'>
23 {/render}
24 </td>
25 </tr>
26 <!--
27 <tr>
28 <td>{t}MAC address{/t}{$must}</td>
29 <td>
30 {render acl=$macACL}
31 <input type='text' name="dummy" value="{$mac}" disabled>
32 {/render}
33 </td>
34 </tr>
35 -->
36 {else}
37 <tr>
38 <td>{t}Name{/t}</td>
39 <td>
40 {render acl=$hostIdACL}
41 <input style='width:300px;' type='text' disabled value="{$hostId}">
42 {/render}
43 </td>
44 </tr>
45 <!--
46 <tr>
47 <td>{t}MAC address{/t}{$must}</td>
48 <td>
49 {render acl=$macACL}
50 <input type='text' name="mac" value="{$mac}">
51 {/render}
52 </td>
53 </tr>
54 -->
55 {/if}
56 <tr>
57 <td>{t}Netboot product{/t}</td>
58 <td>
59 {render acl=$netbootProductACL}
60 <select name="opsi_netboot_product" onChange="document.mainform.submit();" size=1>
61 {foreach from=$ANP item=item key=key}
62 <option {if $key == $SNP} selected {/if} value="{$key}">{$key}</option>
63 {/foreach}
64 </select>
65 {/render}
66
67 {if $netboot_configurable}
68 {image path="images/lists/edit.png" action="configure_netboot" title="{t}Configure product{/t}"}
69 {else}
70 <!-- <input type='image' name='dummy_10' src='images/lists/edit_gray.png'
71 title='{t}Configure product{/t}' class='center'>-->
72 {/if}
73 </td>
74 </tr>
75 </table>
76 </td>
77 <td>
79 <table>
80 <tr>
81 <td>{t}Description{/t}</td>
82 <td>
83 {render acl=$descriptionACL}
84 <input type='text' name='description' value='{$description}'>
85 {/render}
86 </td>
87 </tr>
88 <tr>
89 <td>{t}Notes{/t}</td>
90 <td>
91 {render acl=$descriptionACL}
92 <input type='text' name='note' value='{$note}'>
93 {/render}
94 </td>
95 </tr>
96 </table>
97 </td>
98 </tr>
99 <tr>
100 <td colspan="2">
101 <hr>
102 </td>
103 </tr>
104 <tr>
105 <td style="width:50%;"><h3>{image path="plugins/opsi/images/product.png"} {t}Installed products{/t}</h3>
106 {render acl=$localProductACL}
107 {$divSLP}
108 {/render}
109 </td>
110 <td style="width:50%;"><h3>{t}Available products{/t}</h3>
111 {render acl=$localProductACL}
112 {$divALP}
113 {/render}
114 </td>
115 </tr>
116 <tr>
117 <td colspan="2">
118 <hr><br>
119 {if $standalone}
120 <h3>{t}Action{/t}</h3>
121 <select name='opsi_action' size=1>
122 <option> </option>
123 {if $is_installed}
124 <option value="install">{t}Reinstall{/t}</option>
125 {else}
126 <option value="install">{t}Install{/t}</option>
127 {/if}
128 <option value="wake">{t}Wake{/t}</option>
129 </select>
130 {render acl=$triggerActionACL}
131 <button type='submit' name='opsi_trigger_action'>{t}Execute{/t}</button>
133 {/render}
134 {/if}
135 </td>
136 </tr>
137 </table>
138 <hr>
140 {$netconfig}
142 <input type='hidden' name='opsiGeneric_posted' value='1'>
143 {/if}