Code

Updated buttons
[gosa.git] / gosa-plugins / opsi / admin / opsiLicenses / licenseGeneric.tpl
index 445e453e1906881b82208e60ca38ae15c22254cf..f8dc81e5db861cae637e7f8d129b6e0e42d80ee7 100644 (file)
@@ -2,12 +2,13 @@
 <br>
 <b>{msgPool type=siError}</b><br>
 {t}Check if the GOsa support daemon (gosa-si) is running.{/t}&nbsp;
-<input type='submit' name='retry_init' value="{t}retry{/t}">
+<button type='submit' name='retry_init'>{t}Retry{/t}</button>
+
 <br>
 <br>
 {else}
 
-<h2>{t}License{/t}</h2>
+<h3>{t}License{/t}</h3>
 
 <table style='width:100%'>
   <tr>
@@ -22,7 +23,9 @@
               {if $initially_was_account}
                 <input type='text' name='dummy12' disabled value='{$cn}'>
               {else}
+{render acl=$licenseACL}
                 <input type='text' name='cn' value='{$cn}'>
+{/render}
               {/if}
             </td>
           </tr>
@@ -31,7 +34,9 @@
               {t}Partner{/t}
             </td>
             <td>
+{render acl=$licenseACL}
               <input type='text' name='partner' value='{$partner}'>
+{/render}
             </td>
           </tr>
         </table>
@@ -45,7 +50,9 @@
               {t}Description{/t}
             </td>
             <td>
+{render acl=$licenseACL}
               <input type='text' name='description' value='{$description}'>
+{/render}
             </td>
           </tr>
         </table>
             <td>
               {t}Conclusion date{/t}
             </td>
-            <td>
-              <input type='text' name='conclusionDate' value='{$conclusionDate}'>
+            <td style='width:300px;'>
+{render acl=$licenseACL}
+              <input type="text" id="date1" name="conclusionDate" value="{$conclusionDate}" class="date" />
+              {if $conclusionDateWriteable}
+              {literal}
+              <script type="text/javascript">
+                  /*<[CDATA[*/
+                  var datepicker    = new DatePicker({
+                  keepFieldEmpty : true,
+                  enableCloseEffect : false,
+                  enableShowEffect : false,
+                  relative    : 'date1',
+                  language    : '{/literal}{$lang}{literal}'
+                  });
+                  /*]]>*/
+              </script>
+              {/literal}
+              {/if}
+{/render}
             </td>
           </tr>
           <tr>
             <td>
               {t}Expiration date{/t}
             </td>
-            <td>
-              <input type='text' name='expirationDate' value='{$expirationDate}'>
+            <td style='width:300px;'>
+{render acl=$licenseACL}
+              <input type="text" id="date2" name="expirationDate" value="{$expirationDate}" class="date" />
+              {if $expirationDateWriteable}
+              {literal}
+              <script type="text/javascript">
+                  /*<[CDATA[*/
+                  var datepicker    = new DatePicker({
+                  keepFieldEmpty : true,
+                  enableCloseEffect : false,
+                  enableShowEffect : false,
+                  relative    : 'date2',
+                  language    : '{/literal}{$lang}{literal}'
+                  });
+                  /*]]>*/
+              </script>
+              {/literal}
+              {/if}
+{/render}
             </td>
           </tr>
         </table>
             <td>
               {t}Notification date{/t}
             </td>
-            <td>
-              <input type='text' name='notificationDate' value='{$notificationDate}'>
+            <td style='width:300px;'>
+{render acl=$licenseACL}
+              <input type="text" id="date3" name="notificationDate" value="{$notificationDate}" class="date" >
+              {if $notificationDateWriteable}
+              {literal}
+              <script type="text/javascript">
+                  /*<[CDATA[*/
+                  var datepicker    = new DatePicker({
+                  keepFieldEmpty : true,
+                  enableCloseEffect : false,
+                  enableShowEffect : false,
+                  relative    : 'date3',
+                  language    : '{/literal}{$lang}{literal}'
+                  });
+                  /*]]>*/
+              </script>
+              {/literal}
+              {/if}
+{/render}
             </td>
           </tr>
         </table>
 
 <p class='separator'>&nbsp;</p>
 
-<h2>{t}License model{/t}</h2>
+<h3>{t}License model{/t}</h3>
 
 <table width="100%">
   <tr>
 
 <table width="100%">
   <tr>
-    <td style='border-right: solid 1px #AAA; padding: 5px; vertical-align:top;'>
+    <td style='width:50%;border-right: solid 1px #AAA; padding: 5px; vertical-align:top;'>
     
         <table>
           <tr>
               {t}License key{/t}{$must}
             </td>
             <td>
+{render acl=$licenseACL}
               <input type='text' name='licenseKey' value='{$licenseKey}'>
+{/render}
             </td>
           </tr>
           {if $licenseModel == "VOLUME"}
               {t}Maximum installations{/t}
             </td>
             <td>
+{render acl=$licenseACL}
               <input type='text' name='maximumInstallations' value='{$maximumInstallations}'>
+{/render}
             </td>
           </tr>
           {/if}
           {if $licenseModel == "OEM"}
           <tr>
             <td>
-              {t}Reserved for Host{/t}
+              {t}Reserved for{/t}
             </td>
             <td>
+{render acl=$licenseACL}
               <select name='boundToHost'>
                 <option value="">{t}none{/t}</option>
                 {html_options options=$hosts selected=$boundToHost}
               </select>
+{/render}
             </td>
           </tr>
           {/if}
         <table width="100%">
           <tr>
             <td colspan="2">
-              <b>{t}Used by Host{/t}</b><br>
-              <select 
-
-              disabled
-  
+              <b>{t}Used by{/t}</b><br>
+{render acl=$licenseACL}
+              <select   disabled
                 name='selectedUsedHosts[]' multiple size=4 style='width:100%;'>
                 {html_options options=$usedByHost}
               </select><br>
+{/render}
 <!--
     
       Actually we can't modify the license usage, due to a lack of functions.