Code

Updated opsi 'ACLs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Mar 2010 10:18:31 +0000 (10:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Mar 2010 10:18:31 +0000 (10:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17048 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/opsi/admin/opsiLicenses/class_licenseGeneric.inc
gosa-plugins/opsi/admin/opsiLicenses/licenseGeneric.tpl

index 2a9730c1f96f6dfa9a06beb8b8dd32c58bd607fa..775adf0a6c9cdce1ebf0f58df3e2ecf496877269 100644 (file)
@@ -281,8 +281,18 @@ class licenseGeneric extends plugin
           "plSection"     => array("administration"),
           "plCategory"    => array("opsi"),
           "plProvidedAcls"=> array(
-            "cn"                => _("Name"),
-            "description" => _("Description"))
+            "cn"                  => _("Name"),
+            "partner"             => _("Partner"),
+            "licenseKey"          => _("License key"),
+            "licenseModel"        => _("License model"),
+            "licensePoolId"       => _("License pool id"),
+            "maximumInstallations"=> _("Maximum installations"),
+            "boundToHost"         => _("Reserved for host"),
+            "usedByHost"          => _("Usage"),
+            "notificationDate"    => _("Notification date"),
+            "conclusionDate"      => _("Conclusion date"),
+            "expirationDate"      => _("Expiration date"),
+            "description"         => _("Description"))
           ));
   }
 }
index 265614245d4125fca7a8e6b0ff590d10f9dabf2e..8e3bca294f51a80d654811b0bc9426d78035484c 100644 (file)
@@ -24,7 +24,7 @@
               {if $initially_was_account}
                 <input type='text' name='dummy12' disabled value='{$cn}'>
               {else}
-{render acl=$licenseACL}
+{render acl=$cnACL}
                 <input type='text' name='cn' value='{$cn}'>
 {/render}
               {/if}
@@ -35,7 +35,7 @@
               {t}Partner{/t}
             </td>
             <td>
-{render acl=$licenseACL}
+{render acl=$partnerACL}
               <input type='text' name='partner' value='{$partner}'>
 {/render}
             </td>
@@ -45,7 +45,7 @@
               {t}Description{/t}
             </td>
             <td>
-{render acl=$licenseACL}
+{render acl=$descriptionACL}
               <input type='text' name='description' value='{$description}'>
 {/render}
             </td>
@@ -55,6 +55,7 @@
               {t}License model{/t}
             </td>
             <td>
+{render acl=$licenseModelACL}
               {if $initially_was_account}
                 <select name='dummy223' disabled size=1>
                   {html_options options=$licenseModels values=$licenseModels selected=$licenseModel}
@@ -64,6 +65,7 @@
                   {html_options options=$licenseModels values=$licenseModels selected=$licenseModel}
                 </select>
               {/if}
+{/render}
             </td>
           </tr>
         </table>
@@ -76,7 +78,7 @@
               {t}Conclusion date{/t}
             </td>
             <td style='width:300px;'>
-{render acl=$licenseACL}
+{render acl=$conclusionDateACL}
               <input type="text" id="date1" name="conclusionDate" value="{$conclusionDate}" class="date" />
               {if $conclusionDateWriteable}
               {literal}
               {t}Expiration date{/t}
             </td>
             <td style='width:300px;'>
-{render acl=$licenseACL}
+{render acl=$expirationDateACL}
               <input type="text" id="date2" name="expirationDate" value="{$expirationDate}" class="date" />
               {if $expirationDateWriteable}
               {literal}
               {t}Notification date{/t}
             </td>
             <td style='width:300px;'>
-{render acl=$licenseACL}
+{render acl=$notificationDateACL}
               <input type="text" id="date3" name="notificationDate" value="{$notificationDate}" class="date" >
               {if $notificationDateWriteable}
               {literal}
               {t}License key{/t}{$must}
             </td>
             <td>
-{render acl=$licenseACL}
+{render acl=$licenseKeyACL}
               <input type='text' name='licenseKey' value='{$licenseKey}'>
 {/render}
             </td>
               {t}Maximum installations{/t}
             </td>
             <td>
-{render acl=$licenseACL}
+{render acl=$maximumInstallationsACL}
               <input type='text' name='maximumInstallations' value='{$maximumInstallations}'>
 {/render}
             </td>
               {t}Reserved for{/t}
             </td>
             <td>
-{render acl=$licenseACL}
+{render acl=$boundToHostACL}
               <select name='boundToHost' size=1>
                 <option value="">{t}none{/t}</option>
                 {html_options options=$hosts selected=$boundToHost}
     </td> 
     <td class='right-border'>   
               <b>{t}Used by{/t}</b><br>
-{render acl=$licenseACL}
+{render acl=$usedByHostACL}
               <select   disabled
                 name='selectedUsedHosts[]' multiple size=4 style='width:100%;'>
                 {html_options options=$usedByHost}