Code

Updated xml description to handle departments, too
[gosa.git] / gosa-core / plugins / admin / users / user-list.xml
1 <?xml version="1.0" encoding="UTF-8"?>
3 <list>
4   <definition>
5     <departmentBrowser>true</departmentBrowser>
6     <departmentRootVisible>false</departmentRootVisible>
7     <baseMode>true</baseMode>
8     <multiSelect>true</multiSelect>
9     <template>user-list.tpl</template>
10     <module>users</module>
11     <label>List of users</label>
12     <defaultSortColumn>1</defaultSortColumn>
14     <objectType>
15       <label>Users</label>
16       <objectClass>gosaAccount</objectClass>
17       <objectClass>!gosaUserTemplate</objectClass>
18       <image>plugins/users/images/select_user.png</image>
19     </objectType>
21     <objectType>
22       <label>Templates</label>
23       <objectClass>gosaUserTemplate</objectClass>
24       <image>plugins/users/images/select_template.png</image>
25     </objectType>
27   </definition>
29   <table>
30     <layout>|20px||145px|100px;r|</layout>
32     <department>
33       <value>%{filter:objectType(dn,objectClass)}</value>
34     </department>
36     <department>
37       <value>%{filter:departmentLink(row,dn,description)}</value>
38     </department>
40     <column>
41       <value>%{filter:objectType(dn,objectClass)}</value>
42     </column>
44     <column>
45       <label>Name / Department</label>
46       <sortAttribute>sn</sortAttribute>
47       <sortType>string</sortType>
48       <value>%{filter:link(row,dn,"%s, %s [%s]",sn,givenName,uid)}</value>
49     </column>
51     <column>
52       <label>Properties</label>
53       <value>%{filter:accountProperties(dn,row,objectClass)}</value>
54     </column>
56     <column>
57       <label>Actions</label>
58       <value>%{filter:actions(dn,row,objectClass)}</value>
59     </column>
61   </table>
63   <actionmenu>
64     <action>
65       <type>sub</type>
66       <image>images/lists/new.png</image>
67       <label>Create</label>
69       <action>
70         <name>create_user</name>
71         <type>entry</type>
72         <image>plugins/users/images/list_new_user.png</image>
73         <acl>users/user[c]</acl>
74         <label>User</label>
75       </action>
77       <action>
78         <name>create_template</name>
79         <type>entry</type>
80         <image>images/lists/new.png</image>
81         <acl>users/user[c]</acl>
82         <label>Template</label>
83       </action>
85     </action>
87     <action>
88       <type>separator</type>
89     </action>
91     <action>
92       <name>edit</name>
93       <type>entry</type>
94       <image>images/lists/edit.png</image>
95       <label>Edit</label>
96     </action>
98     <action>
99       <name>password</name>
100       <type>entry</type>
101       <image>plugins/users/images/list_password.png</image>
102       <label>Change password</label>
103     </action>
105     <action>
106       <name>remove</name>
107       <type>entry</type>
108       <image>images/lists/trash.png</image>
109       <label>Remove</label>
110     </action>
112     <action>
113       <name>templatize</name>
114       <type>entry</type>
115       <image>plugins/users/images/wizard.png</image>
116       <label>Apply template</label>
117     </action>
119     <action>
120       <type>separator</type>
121     </action>
123     <action>
124       <type>daemon</type>
125     </action>
127     <action>
128       <type>separator</type>
129     </action>
131     <action>
132       <type>copypaste</type>
133     </action>
135     <action>
136       <type>snapshot</type>
137     </action>
139   </actionmenu>
141   <actiontriggers snapshot="true" copypaste="true">
142     <action>
143       <type>copypaste</type>
144     </action>
146     <action>
147       <name>templatize</name>
148       <type>entry</type>
149       <objectclass>!gosaUserTemplate</objectclass>
150       <image>plugins/users/images/wizard.png</image>
151       <label>Apply template</label>
152     </action>
154     <action>
155       <name>edit</name>
156       <type>entry</type>
157       <objectclass>gosaAccount</objectclass>
158       <image>images/lists/edit.png</image>
159       <label>Edit user</label>
160     </action>
162     <action>
163       <name>lock</name>
164       <type>entry</type>
165       <objectclass>gosaAccount</objectclass>
166       <image>%{filter:lockImage(userPassword)}</image>
167       <acl>users/password[w]</acl>
168       <label>%{filter:lockLabel(userPassword)}</label>
169     </action>
171     <action>
172       <name>password</name>
173       <type>entry</type>
174       <objectclass>gosaAccount</objectclass>
175       <image>plugins/users/images/list_password.png</image>
176       <acl>users/password[w]</acl>
177       <label>Change password</label>
178     </action>
180     <action>
181       <type>snapshot</type>
182     </action>
184     <action>
185       <name>remove</name>
186       <type>entry</type>
187       <objectclass>gosaAccount</objectclass>
188       <image>images/lists/trash.png</image>
189       <acl>users/user[d]</acl>
190       <label>Remove user</label>
191     </action>
193   </actiontriggers>
195 </list>