Code

Updated department management
[gosa.git] / gosa-core / plugins / admin / departments / dep-list.xml
1 <?xml version="1.0" encoding="UTF-8"?>
3 <list>
4   <definition>
5     <departmentBrowser>false</departmentBrowser>
6     <departmentRootVisible>false</departmentRootVisible>
7     <baseMode>true</baseMode>
8     <multiSelect>true</multiSelect>
9     <template>dep-list.tpl</template>
10     <module>departments</module>
11     <label>List of departments</label>
12     <defaultSortColumn>1</defaultSortColumn>
14     <objectType>
15       <label>Domain</label>
16       <objectClass>domain</objectClass>
17       <category>department</category>
18       <class>domain</class>
19       <image>plugins/departments/images/domain.png</image>
20     </objectType>
22     <objectType>
23       <label>Domain component</label>
24       <objectClass>dcObject</objectClass>
25       <category>department</category>
26       <class>dcObject</class>
27       <image>plugins/departments/images/dc.png</image>
28     </objectType>
30     <objectType>
31       <label>Country</label>
32       <objectClass>country</objectClass>
33       <category>department</category>
34       <class>country</class>
35       <image>plugins/departments/images/country.png</image>
36     </objectType>
38     <objectType>
39       <label>Locality</label>
40       <objectClass>locality</objectClass>
41       <category>department</category>
42       <class>locality</class>
43       <image>plugins/departments/images/locality.png</image>
44     </objectType>
46     <objectType>
47       <label>Organization</label>
48       <objectClass>department</objectClass>
49       <category>department</category>
50       <class>organization</class>
51       <image>plugins/departments/images/organization.png</image>
52     </objectType>
54     <objectType>
55       <label>Department</label>
56       <objectClass>organizationalUnit</objectClass>
57       <category>department</category>
58       <class>department</class>
59       <image>images/lists/folder.png</image>
60     </objectType>
61   </definition>
63   <table>
64     <layout>|20px;c|||70px;r|</layout>
66     <column>
67       <value>%{filter:objectType(dn,objectClass)}</value>
68     </column>
70     <column>
71       <label>Department</label>
72       <sortAttribute>ou</sortAttribute>
73       <sortType>string</sortType>
74       <value>%{filter:depLabel(row,dn,"%s",ou,pid,base)}</value>
75       <export>true</export>
76     </column>
78     <column>
79       <label>Description</label>
80       <sortAttribute>description</sortAttribute>
81       <sortType>string</sortType>
82       <value>%{filter:depLabel(row,dn,"%s",description,pid,base)}</value>
83       <export>true</export>
84     </column>
86     <column>
87       <label>Actions</label>
88       <value>%{filter:actions(dn,row,objectClass)}</value>
89     </column>
91   </table>
93   <actionmenu>
95     <action>
96      <type>sub</type>
97      <image>images/lists/new.png</image>
98      <label>Create</label>
100      <action>
101       <name>new_domain</name>
102       <type>entry</type>
103       <label>Domain</label>
104       <image>plugins/departments/images/domain.png</image>
105      </action>
106     
107      <action>
108       <name>new_dcObject</name>
109       <type>entry</type>
110       <label>Domain component</label>
111       <image>plugins/departments/images/dc.png</image>
112      </action>
114      <action>
115       <name>new_country</name>
116       <type>entry</type>
117       <label>Country</label>
118       <image>plugins/departments/images/country.png</image>
119      </action>
121      <action>
122       <name>new_locality</name>
123       <type>entry</type>
124       <label>Locality</label>
125       <image>plugins/departments/images/locality.png</image>
126      </action>
128      <action>
129       <name>new_organization</name>
130       <type>entry</type>
131       <label>Organization</label>
132       <image>plugins/departments/images/organization.png</image>
133      </action>
135      <action>
136       <name>new_organizationalUnit</name>
137       <type>entry</type>
138       <label>Department</label>
139       <image>images/lists/folder.png</image>
140      </action>
142     </action>
144     <action>
145       <type>separator</type>
146     </action>
148     <action>
149       <type>exporter</type>
150     </action>
152     <action>
153       <type>separator</type>
154     </action>
156     <action>
157       <name>remove</name>
158       <type>entry</type>
159       <image>images/lists/trash.png</image>
160       <label>Remove</label>
161     </action>
163   </actionmenu>
165   <actiontriggers snapshot="false" copypaste="false">
167     <action>
168       <name>edit</name>
169       <type>entry</type>
170       <nospan></nospan>
171       <image>images/lists/edit.png</image>
172       <label>Edit</label>
173     </action>
175     <action>
176       <name>remove</name>
177       <type>entry</type>
178       <nospan></nospan>
179       <image>images/lists/trash.png</image>
180       <acl>department[d]</acl>
181       <label>Remove</label>
182     </action>
184   </actiontriggers>
186 </list>