Code

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