2 <h2><img src='plugins/opsi/images/client_generic.png' alt=' ' class='center'> {t}OPSI host{/t}</h2>
4 {if $init_failed}
6 <font style='color: #FF0000;'>{msgPool type=siError p=$message}</font>
8 <input type='submit' name='reinit' value="{t}Retry{/t}">
10 {else}
12 <table style="width: 100%;">
13 <tr>
14 <td>
15 <table>
16 {if $standalone}
17 <tr>
18 <td>{t}Name{/t}</td>
19 <td><input style='width:300px;' type='text' name='hostId' value='{$hostId}'></td>
20 </tr>
21 <tr>
22 <td>{t}MAC address{/t}{$must}</td>
23 <td><input type='text' name="mac" value="{$mac}"></td>
24 </tr>
25 {else}
26 <tr>
27 <td>{t}Name{/t}</td>
28 <td><input style='width:300px;' type='text' disabled value="{$hostId}"></td>
29 </tr>
30 <tr>
31 <td>{t}MAC address{/t}{$must}</td>
32 <td><input type='text' name="mac" value="{$mac}"></td>
33 </tr>
34 {/if}
35 <tr>
36 <td>{t}Netboot product{/t}</td>
37 <td>
38 <select name="opsi_netboot_product" onChange="document.mainform.submit();">
39 {foreach from=$ANP item=item key=key}
40 <option {if $key == $SNP} selected {/if} value="{$key}">{$key}</option>
41 {/foreach}
42 </select>
43
44 {if $netboot_configurable}
45 <input type='image' name='configure_netboot' src='images/lists/edit.png'
46 title='{t}Configure product{/t}' class='center'>
47 {else}
48 <!-- <input type='image' name='dummy_10' src='images/lists/edit_gray.png'
49 title='{t}Configure product{/t}' class='center'>-->
50 {/if}
51 </td>
52 </tr>
53 </table>
54 </td>
55 <td style='vertical-align: top;'>
56 <table>
57 <tr>
58 <td>{t}Description{/t}</td>
59 <td><input type='text' name='description' value='{$description}'></td>
60 </tr>
61 <tr>
62 <td>{t}Notes{/t}</td>
63 <td><input type='text' name='note' value='{$note}'></td>
64 </tr>
65 </table>
66 </td>
67 </tr>
68 <tr>
69 <td colspan="2">
70 <p class='seperator'> </p>
71 </td>
72 </tr>
73 <tr>
74 <td style="width:50%;"><h2><img class='center' src='plugins/opsi/images/product.png'
75 alt=' '> {t}Installed products{/t}</h2>
76 {$divSLP}
77 </td>
78 <td style="width:50%;"><h2>{t}Available products{/t}</h2>
79 {$divALP}
80 </td>
81 </tr>
82 <tr>
83 <td colspan="2">
84 <p class='seperator'> </p><br>
85 {if $standalone}
86 <h2><img src='images/rocket.png' alt="" class="center"> {t}Action{/t}</h2>
87 <select name='opsi_action'>
88 <option> </option>
89 {if $is_installed}
90 <option value="install">{t}Reinstall{/t}</option>
91 {else}
92 <option value="install">{t}Install{/t}</option>
93 {/if}
94 </select>
95 <input type='submit' name='opsi_trigger_action' value="{t}Execute{/t}">
96 {/if}
97 </td>
98 </tr>
99 </table>
100 <input type='hidden' name='opsiGeneric_posted' value='1'>
101 {/if}