Code

replaced plugbottom by pluin-actions
[gosa.git] / gosa-plugins / opsi / admin / opsi / generic.tpl
2 <h3>{t}OPSI host{/t}</h3>
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}{$must}</td>
19      <td>
20 {render acl=$hostIdACL}
21                 <input style='width:300px;' type='text' name='hostId' value='{$hostId}'>
22 {/render}
23          </td>
24     </tr>
25 <!--
26     <tr>
27      <td>{t}MAC address{/t}{$must}</td>
28      <td>
29 {render acl=$macACL}
30                 <input type='text' name="dummy" value="{$mac}" disabled>
31 {/render}
32          </td>
33         </tr>
34 -->
35         {else}
36     <tr>
37      <td>{t}Name{/t}</td>
38      <td>
39 {render acl=$hostIdACL}
40                 <input style='width:300px;' type='text' disabled value="{$hostId}">
41 {/render}
42          </td>
43     </tr>
44 <!--
45     <tr>
46      <td>{t}MAC address{/t}{$must}</td>
47      <td>
48 {render acl=$macACL}
49                 <input type='text' name="mac" value="{$mac}">
50 {/render}
51          </td>
52     </tr>
53 -->
54     {/if}
55     <tr>
56      <td>{t}Netboot product{/t}</td>
57      <td>
58 {render acl=$netbootProductACL}
59       <select name="opsi_netboot_product" onChange="document.mainform.submit();">
60                 {foreach from=$ANP item=item key=key}
61                         <option {if $key == $SNP} selected {/if} value="{$key}">{$key}</option>
62                 {/foreach}
63       </select>
64 {/render}
65       &nbsp;
66       {if $netboot_configurable}
67                   <input type='image' name='configure_netboot' src='images/lists/edit.png'
68                         title='{t}Configure product{/t}' class='center'>
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 style='vertical-align: top;'>
78    <table>
79     <tr>
80      <td>{t}Description{/t}</td>
81      <td>
82 {render acl=$descriptionACL}
83                 <input type='text' name='description' value='{$description}'>
84 {/render}
85          </td>
86     </tr>
87     <tr>
88      <td>{t}Notes{/t}</td>
89      <td>
90 {render acl=$descriptionACL}
91                 <input type='text' name='note' value='{$note}'>
92 {/render}
93          </td>
94     </tr>
95    </table>
96   </td>
97  </tr>
98  <tr>
99   <td colspan="2">
100    <hr>
101   </td>
102  </tr>
103  <tr>
104   <td style="width:50%;"><h3><img class='center' src='plugins/opsi/images/product.png' 
105                 alt=' '>&nbsp;{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'>
122                 <option>&nbsp;</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         <input type='submit' name='opsi_trigger_action' value="{t}Execute{/t}">
132 {/render}
133    {/if}
134   </td>
135  </tr>
136 </table> 
137 <hr>
139 {$netconfig}
141 <input type='hidden' name='opsiGeneric_posted' value='1'>
142 {/if}