Code

Updated listing table summary
[gosa.git] / gosa-plugins / opsi / admin / opsiLicenses / class_licenseGeneric.inc
index 6f3cb69d56911384719e0b74d79aed160ceb25f3..775adf0a6c9cdce1ebf0f58df3e2ecf496877269 100644 (file)
@@ -145,6 +145,11 @@ class licenseGeneric extends plugin
     $smarty->assign("boundToHost", $this->boundToHost[0]);
     $smarty->assign("licenseKey", $this->licenseKey[0]);
 
+    // w3c fix, do not show empty options.
+    $tmp = $this->usedByHost;
+    if(isset($tmp[0]) && empty($tmp[0])) unset($tmp[0]);
+    $smarty->assign('usedByHost', $tmp);
+
     foreach(array("notificationDate","expirationDate","conclusionDate") as $date) {
       $smarty->assign($date."Writeable", $this->acl_is_writeable($date));
     }
@@ -276,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"))
           ));
   }
 }