Code

Fixed department listing
[gosa.git] / gosa-core / plugins / admin / departments / dep-list.xml
index 34f74b278521e443d55e41b14499266c714666b2..62f547bae3a7de32abb1ea2c64a80653b76159e2 100644 (file)
@@ -53,7 +53,7 @@
 
     <objectType>
       <label>Department</label>
-      <objectClass>department</objectClass>
+      <objectClass>organizationalUnit</objectClass>
       <category>department</category>
       <class>department</class>
       <image>images/lists/folder.png</image>
   </definition>
 
   <table>
-    <layout>|20px||120px|170px;r|</layout>
+    <layout>|20px;c|||70px;r|</layout>
 
     <column>
       <value>%{filter:objectType(dn,objectClass)}</value>
     </column>
 
     <column>
-      <label>ou</label>
+      <label>Department</label>
       <sortAttribute>ou</sortAttribute>
       <sortType>string</sortType>
       <value>%{filter:depLabel(row,dn,"%s",ou,pid,base)}</value>
     </column>
 
     <column>
-      <label>description</label>
+      <label>Description</label>
       <sortAttribute>description</sortAttribute>
       <sortType>string</sortType>
-      <value>%{filter:link(row,dn,"%s",description)}</value>
+      <value>%{filter:depLabel(row,dn,"%s",description,pid,base)}</value>
       <export>true</export>
     </column>
 
 
     <action>
      <type>sub</type>
-     <image>images/lists/new.png</image>
+     <image>images/lists/folder.png[new]</image>
      <label>Create</label>
 
      <action>
       <name>new_domain</name>
       <type>entry</type>
       <label>Domain</label>
-      <image>plugins/departments/images/domain.png</image>
+      <image>plugins/departments/images/domain.png[new]</image>
      </action>
     
      <action>
       <name>new_dcObject</name>
       <type>entry</type>
       <label>Domain component</label>
-      <image>plugins/departments/images/dc.png</image>
+      <image>plugins/departments/images/dc.png[new]</image>
      </action>
 
      <action>
       <name>new_country</name>
       <type>entry</type>
       <label>Country</label>
-      <image>plugins/departments/images/country.png</image>
+      <image>plugins/departments/images/country.png[new]</image>
      </action>
 
      <action>
       <name>new_locality</name>
       <type>entry</type>
       <label>Locality</label>
-      <image>plugins/departments/images/locality.png</image>
+      <image>plugins/departments/images/locality.png[new]</image>
      </action>
 
      <action>
       <name>new_organization</name>
       <type>entry</type>
       <label>Organization</label>
-      <image>plugins/departments/images/organization.png</image>
+      <image>plugins/departments/images/organization.png[new]</image>
      </action>
 
      <action>
-      <name>new_department</name>
+      <name>new_organizationalUnit</name>
       <type>entry</type>
       <label>Department</label>
-      <image>images/lists/folder.png</image>
+      <image>images/lists/folder.png[new]</image>
      </action>
 
     </action>
       <type>separator</type>
     </action>
 
+    <action>
+      <type>exporter</type>
+    </action>
+
+    <action>
+      <type>separator</type>
+    </action>
+
     <action>
       <name>remove</name>
       <type>entry</type>