Code

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