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>department</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||120px|170px;r|</layout>
66 <column>
67 <value>%{filter:objectType(dn,objectClass)}</value>
68 </column>
70 <column>
71 <label>ou</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>
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_department</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 <name>remove</name>
150 <type>entry</type>
151 <image>images/lists/trash.png</image>
152 <label>Remove</label>
153 </action>
155 </actionmenu>
157 <actiontriggers snapshot="false" copypaste="false">
159 <action>
160 <name>edit</name>
161 <type>entry</type>
162 <nospan></nospan>
163 <image>images/lists/edit.png</image>
164 <label>Edit</label>
165 </action>
167 <action>
168 <name>remove</name>
169 <type>entry</type>
170 <nospan></nospan>
171 <image>images/lists/trash.png</image>
172 <acl>department[d]</acl>
173 <label>Remove</label>
174 </action>
176 </actiontriggers>
178 </list>