Code

Updated registered device classes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Sep 2010 13:33:48 +0000 (13:33 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Sep 2010 13:33:48 +0000 (13:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19687 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/devices/class_registeredDevice.inc
gosa-plugins/goto/admin/systems/goto/devices/registeredDevice.tpl [new file with mode: 0644]

index 2f670e84974e458de8eea59d9383a68a77eb76bb..0f82cd36b7b2637cb3802710827c0bc6c2f103a4 100644 (file)
@@ -4,7 +4,21 @@
 class registeredDevice extends plugin
 {
 
+    public $objectclasses = array('top','device','registeredDevice');
+    public $attributes = array("cn","serialNumber","seeAlso","owner","ou","o",
+            "l","description","manager","deviceUUID","deviceStatus");
 
+    function execute()
+    {
+        plugin::execute();    
+
+        $smarty = get_smarty();
+        foreach($this->attributes as $attr){
+            $smarty->assign($attr, $this->$attr);
+        }
+        return($smarty->fetch(get_template_path('goto/devices/registeredDevice.tpl', TRUE)));
+    
+    }
 
 
     static function plInfo()
@@ -19,6 +33,19 @@ class registeredDevice extends plugin
                     "plCategory"    => array(
                         "registeredDevice" => array( "description"  => _("Registered device"),
                             "objectClass"  => "registeredDevice")),
+                    "plProvidedAcls" => array(
+                        "cn" => _("Name"),
+                        "serialNumber" => _("Serial number"),
+                        "seeAlso" => _("See also"),
+                        "owner" => _("Owner"),
+                        "ou" => _("Organizational unit"),
+                        "o" => _("Organization"),
+                        "l" => _("Location"),
+                        "description" => _("Description"),
+                        "manager" => _("Manager"),
+                        "deviceUUID" => _("Uuid"),
+                        "deviceStatus" => _("Stauts")
+                    )
                     ));
     }
 }
diff --git a/gosa-plugins/goto/admin/systems/goto/devices/registeredDevice.tpl b/gosa-plugins/goto/admin/systems/goto/devices/registeredDevice.tpl
new file mode 100644 (file)
index 0000000..af1561f
--- /dev/null
@@ -0,0 +1,13 @@
+<h3>{t}Registered device{/t}</h3>
+
+<br> <input type="text" name="cn" value="{$cn}">
+<br> <input type="text" name="serialNumber" value="{$serialNumber}">
+<br> <input type="text" name="seeAlso" value="{$seeAlso}">
+<br> <input type="text" name="owner" value="{$owner}">
+<br> <input type="text" name="ou" value="{$ou}">
+<br> <input type="text" name="o" value="{$o}">
+<br> <input type="text" name="l" value="{$l}">
+<br> <input type="text" name="description" value="{$description}">
+<br> <input type="text" name="manager" value="{$manager}">
+<br> <input type="text" name="deviceUUID" value="{$deviceUUID}">
+<br> <input type="text" name="deviceStatus" value="{$deviceStatus}">