Code

f8dc81e5db861cae637e7f8d129b6e0e42d80ee7
[gosa.git] / gosa-plugins / opsi / admin / opsiLicenses / licenseGeneric.tpl
1 {if !$init_successfull}
2 <br>
3 <b>{msgPool type=siError}</b><br>
4 {t}Check if the GOsa support daemon (gosa-si) is running.{/t}&nbsp;
5 <button type='submit' name='retry_init'>{t}Retry{/t}</button>
7 <br>
8 <br>
9 {else}
11 <h3>{t}License{/t}</h3>
13 <table style='width:100%'>
14   <tr>
15     <td style='width:50%; border-right: solid 1px #AAA; padding: 5px; vertical-align:top;'>
16         
17         <table>
18           <tr>
19             <td>
20               {t}Name{/t}{$must}
21             </td>
22             <td>
23               {if $initially_was_account}
24                 <input type='text' name='dummy12' disabled value='{$cn}'>
25               {else}
26 {render acl=$licenseACL}
27                 <input type='text' name='cn' value='{$cn}'>
28 {/render}
29               {/if}
30             </td>
31           </tr>
32           <tr>
33             <td>
34               {t}Partner{/t}
35             </td>
36             <td>
37 {render acl=$licenseACL}
38               <input type='text' name='partner' value='{$partner}'>
39 {/render}
40             </td>
41           </tr>
42         </table>
44     </td>
45     <td style='padding: 5px; vertical-align:top;'>
47         <table>
48           <tr>
49             <td>
50               {t}Description{/t}
51             </td>
52             <td>
53 {render acl=$licenseACL}
54               <input type='text' name='description' value='{$description}'>
55 {/render}
56             </td>
57           </tr>
58         </table>
60     </td>
61   </tr>
62   <tr>
63     <td colspan="2"><p class='separator'>&nbsp;</p></td>
64   </tr>
65   <tr>
66     <td style='border-right: solid 1px #AAA; padding: 5px; vertical-align:top;'>
67     
68         <table>
69           <tr>
70             <td>
71               {t}Conclusion date{/t}
72             </td>
73             <td style='width:300px;'>
74 {render acl=$licenseACL}
75               <input type="text" id="date1" name="conclusionDate" value="{$conclusionDate}" class="date" />
76               {if $conclusionDateWriteable}
77               {literal}
78               <script type="text/javascript">
79                   /*<[CDATA[*/
80                   var datepicker    = new DatePicker({
81                   keepFieldEmpty : true,
82                   enableCloseEffect : false,
83                   enableShowEffect : false,
84                   relative    : 'date1',
85                   language    : '{/literal}{$lang}{literal}'
86                   });
87                   /*]]>*/
88               </script>
89               {/literal}
90               {/if}
91 {/render}
92             </td>
93           </tr>
94           <tr>
95             <td>
96               {t}Expiration date{/t}
97             </td>
98             <td style='width:300px;'>
99 {render acl=$licenseACL}
100               <input type="text" id="date2" name="expirationDate" value="{$expirationDate}" class="date" />
101               {if $expirationDateWriteable}
102               {literal}
103               <script type="text/javascript">
104                   /*<[CDATA[*/
105                   var datepicker    = new DatePicker({
106                   keepFieldEmpty : true,
107                   enableCloseEffect : false,
108                   enableShowEffect : false,
109                   relative    : 'date2',
110                   language    : '{/literal}{$lang}{literal}'
111                   });
112                   /*]]>*/
113               </script>
114               {/literal}
115               {/if}
116 {/render}
117             </td>
118           </tr>
119         </table>
120  
121     </td> 
122     <td style='border-right: solid 1px #AAA; padding: 5px; vertical-align:bottom;'>
123    
124         <table>
125           <tr>
126             <td>
127               {t}Notification date{/t}
128             </td>
129             <td style='width:300px;'>
130 {render acl=$licenseACL}
131               <input type="text" id="date3" name="notificationDate" value="{$notificationDate}" class="date" >
132               {if $notificationDateWriteable}
133               {literal}
134               <script type="text/javascript">
135                   /*<[CDATA[*/
136                   var datepicker    = new DatePicker({
137                   keepFieldEmpty : true,
138                   enableCloseEffect : false,
139                   enableShowEffect : false,
140                   relative    : 'date3',
141                   language    : '{/literal}{$lang}{literal}'
142                   });
143                   /*]]>*/
144               </script>
145               {/literal}
146               {/if}
147 {/render}
148             </td>
149           </tr>
150         </table>
151     </td> 
152   </tr>
153 </table>
155 <p class='separator'>&nbsp;</p>
157 <h3>{t}License model{/t}</h3>
159 <table width="100%">
160   <tr>
161     <td style='width:50%;border-right: solid 1px #AAA; padding: 5px; vertical-align:top;'>
162     
163         <table>
164           <tr>
165             <td>
166               {t}Model{/t}
167             </td>
168             <td>
169               {if $initially_was_account}
170                 <select name='dummy223' disabled>
171                   {html_options options=$licenseModels values=$licenseModels selected=$licenseModel}
172                 </select>
173               {else}
174                 <select name='licenseModel' onChange='document.mainform.submit();'>
175                   {html_options options=$licenseModels values=$licenseModels selected=$licenseModel}
176                 </select>
177               {/if}
178             </td>
179           </tr>
180         </table>
181  
182     </td> 
183   </tr>
184 </table>
186 <p class='separator'>&nbsp;</p>
188 <table width="100%">
189   <tr>
190     <td style='width:50%;border-right: solid 1px #AAA; padding: 5px; vertical-align:top;'>
191     
192         <table>
193           <tr>
194             <td>
195               {t}License key{/t}{$must}
196             </td>
197             <td>
198 {render acl=$licenseACL}
199               <input type='text' name='licenseKey' value='{$licenseKey}'>
200 {/render}
201             </td>
202           </tr>
203           {if $licenseModel == "VOLUME"}
204           <tr>
205             <td>
206               {t}Maximum installations{/t}
207             </td>
208             <td>
209 {render acl=$licenseACL}
210               <input type='text' name='maximumInstallations' value='{$maximumInstallations}'>
211 {/render}
212             </td>
213           </tr>
214           {/if}
215           {if $licenseModel == "OEM"}
216           <tr>
217             <td>
218               {t}Reserved for{/t}
219             </td>
220             <td>
221 {render acl=$licenseACL}
222               <select name='boundToHost'>
223                 <option value="">{t}none{/t}</option>
224                 {html_options options=$hosts selected=$boundToHost}
225               </select>
226 {/render}
227             </td>
228           </tr>
229           {/if}
230         </table>
231  
232     </td> 
233     <td style='border-right: solid 1px #AAA; padding: 5px; vertical-align:bottom;'>
234    
235         <table width="100%">
236           <tr>
237             <td colspan="2">
238               <b>{t}Used by{/t}</b><br>
239 {render acl=$licenseACL}
240               <select   disabled
241                 name='selectedUsedHosts[]' multiple size=4 style='width:100%;'>
242                 {html_options options=$usedByHost}
243               </select><br>
244 {/render}
245 <!--
246     
247       Actually we can't modify the license usage, due to a lack of functions.
248       We can only assign a licensePool to a host, but not a specific license.
250               <select name='selectedHostToAdd'>
251                 {html_options options=$notUsedHosts}
252               </select>
253               <input type="submit" name="addLicenseUsage" value="{msgPool type='addButton'}">
254               <input type="submit" name="removeLicenseUsage" value="{msgPool type='delButton'}">
255 -->
256             </td>
257           </tr>
258         </table>
259     </td> 
260   </tr>
261 </table>
262 <input name='opsiLicensesPosted' value='1' type='hidden'>
263 {/if}