Code

Updated user filter to include snapshot fuctionalites
[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>Template</label>
16       <objectClass>gosaUserTemplate</objectClass>
17       <category>users</category>
18       <class>user</class>
19       <image>plugins/users/images/select_template.png</image>
20     </objectType>
22     <objectType>
23       <label>User</label>
24       <objectClass>gosaAccount</objectClass>
25       <category>users</category>
26       <class>user</class>
27       <image>plugins/users/images/select_user.png</image>
28     </objectType>
30   </definition>
32   <table>
33     <layout>|20px||260px|180px;r|</layout>
35     <department>
36       <value>%{filter:objectType(dn,objectClass)}</value>
37     </department>
39     <department>
40       <value>%{filter:departmentLink(row,dn,description)}</value>
41       <span>3</span>
42     </department>
44     <column>
45       <value>%{filter:objectType(dn,objectClass)}</value>
46     </column>
48     <column>
49       <label>Given name</label>
50       <sortAttribute>givenName</sortAttribute>
51       <sortType>string</sortType>
52       <value>%{filter:link(row,dn,"%s",givenName)}</value>
53       <export>true</export>
54     </column>
56     <column>
57       <label>Surname</label>
58       <sortAttribute>sn</sortAttribute>
59       <sortType>string</sortType>
60       <value>%{filter:link(row,dn,"%s",sn)}</value>
61       <export>true</export>
62     </column>
64     <column>
65       <label>Actions</label>
66       <value>%{filter:actions(dn,row,objectClass)}</value>
67     </column>
69   </table>
71   <actionmenu>
73     <action>
74       <name>new</name>
75       <type>entry</type>
76       <image>plugins/users/images/list_new_user.png</image>
77       <label>New person</label>
78     </action>
80     <action>
81       <name>new_template</name>
82       <type>entry</type>
83       <image>plugins/users/images/select_template.png</image>
84       <label>New template</label>
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>remove</name>
100       <type>entry</type>
101       <image>images/lists/trash.png</image>
102       <label>Remove</label>
103     </action>
105     <action>
106       <type>separator</type>
107     </action>
109     <action>
110       <type>separator</type>
111     </action>
113     <action>
114       <name>templatize</name>
115       <type>entry</type>
116       <image>plugins/users/images/wizard.png</image>
117       <label>Apply template</label>
118     </action>
120     <action>
121       <type>exporter</type>
122     </action>
123   </actionmenu>
125   <actiontriggers snapshot="true" copypaste="true">
127     <action>
128       <name>cp</name>
129       <objectclass>!gosaUserTemplate</objectclass>
130       <type>copypaste</type>
131     </action>
133     <action>
134       <name>edit</name>
135       <type>entry</type>
136       <objectclass>gosaAccount</objectclass>
137       <image>images/lists/edit.png</image>
138       <label>Edit user</label>
139     </action>
141     <action>
142       <name>lock</name>
143       <type>entry</type>
144       <objectclass>!gosaUserTemplate</objectclass>
145       <image>%{filter:lockImage(userPassword)}</image>
146       <acl>uniBonnAccount/password[w]</acl>
147       <label>%{filter:lockLabel(userPassword)}</label>
148     </action>
150     <action>
151       <name>password</name>
152       <type>entry</type>
153       <objectclass>!gosaUserTemplate</objectclass>
154       <image>plugins/users/images/list_password.png</image>
155       <label>Change password</label>
156     </action>
158     <action>
159       <name>snapshot</name>
160       <type>snapshot</type>
161       <objectclass>!gosaUserTemplate</objectclass>
162     </action>
164     <action>
165       <name>remove</name>
166       <type>entry</type>
167       <image>images/lists/trash.png</image>
168       <objectclass>gosaAccount</objectclass>
169       <acl>users/user[d]</acl>
170       <label>Remove user</label>
171     </action>
173   </actiontriggers>
175 </list>