Code

Updated xml files to respect actions
[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     <multiSelect>true</multiSelect>
8     <template>user-list.tpl</template>
9     <module>users</module>
10     <label>List of users</label>
12     <objectType>
13       <objectClass>gosaAccount</objectClass>
14       <image>plugins/users/images/select_user.png</image>
15       <priority>2</priority>
16     </objectType>
17     <objectType>
18       <objectClass>gosaUserTemplate</objectClass>
19       <priority>1</priority>
20       <image>plugins/users/images/select_template.png</image>
21     </objectType>
23   </definition>
25   <table>
26     <layout>|20px||145px|80px;r|</layout>
28     <column>
29       <value>%{filter:objectType(dn,objectClass)}</value>
30     </column>
32     <column>
33       <label>Name / Department</label>
34       <sortable>true</sortable>
35       <value>%{filter:link(row,pid,dn,"%s, %s [%s]",sn,givenName,uid)}</value>
36     </column>
38     <column>
39       <label>Properties</label>
40       <sortable>false</sortable>
41       <value>%{filter:accountProperties(dn,row,objectClass)}</value>
42     </column>
44     <column>
45       <label>Actions</label>
46       <sortable>false</sortable>
47       <value>%{filter:actions()}</value>
48     </column>
50   </table>
52   <actionmenu>
53     <action>
54       <type>sub</type>
55       <image>images/lists/new.png</timage>
56       <label>Create</label>
58       <action>
59         <name>create_user</name>
60         <type>entry</type>
61         <image>plugins/users/images/list_new_user.png</timage>
62         <acl>c</acl>
63         <label>User</label>
64       </action>
66       <action>
67         <name>create_template</name>
68         <type>entry</type>
69         <image>images/lists/new.png</timage>
70         <acl>c</acl>
71         <label>Template</label>
72       </action>
74     </action>
76     <action>
77       <type>separator</type>
78     </action>
80     <action>
81       <name>edit</name>
82       <type>entry</type>
83       <image>images/lists/edit.png</timage>
84       <acl>rw</acl>
85       <label>Edit</label>
86     </action>
88     <action>
89       <name>password</name>
90       <type>entry</type>
91       <image>plugins/users/images/list_password.png</timage>
92       <acl>users/password;w</acl>
93       <label>Change password</label>
94     </action>
96     <action>
97       <name>remove</name>
98       <type>entry</type>
99       <image>images/lists/trash.png</timage>
100       <acl>d</acl>
101       <label>Remove</label>
102     </action>
104     <action>
105       <name>templatize</name>
106       <type>entry</type>
107       <image>plugins/users/images/wizard.png</timage>
108       <acl>w</acl>
109       <label>Apply template</label>
110     </action>
112     <action>
113       <type>separator</type>
114     </action>
116     <action>
117       <type>copypaste</type>
118     </action>
120     <action>
121       <type>separator</type>
122     </action>
124     <action>
125       <type>snapshot</type>
126     </action>
128   </actionmenu>
130   <actiontriggers snapshot="true" copypaste="true">
131     <action>
132       <type>copypaste</type>
133     </action>
135     <action>
136       <name>edit</name>
137       <type>entry</type>
138       <image>images/lists/edit.png</timage>
139       <acl>w</acl>
140       <label>Edit user</label>
141     </action>
143     <action>
144       <name>lock</name>
145       <type>entry</type>
146       <image>%{filter:lockImage(userPassword)}</timage>
147       <acl>users/password;w</acl>
148       <label>%{filter:lockLabel(userPassword)}</label>
149     </action>
151     <action>
152       <name>password</name>
153       <type>entry</type>
154       <image>plugins/users/images/list_password.png</timage>
155       <acl>users/password;w</acl>
156       <label>Change password</label>
157     </action>
159     <action>
160       <type>snapshot</type>
161     </action>
163     <action>
164       <name>remove</name>
165       <type>entry</type>
166       <image>images/lists/trash.png</timage>
167       <acl>d</acl>
168       <label>Remove user</label>
169     </action>
171   </actiontriggers>
173 </list>