1 <?xml version="1.0" encoding="UTF-8"?>
3 <list>
4 <definition>
5 <departmentBrowser>false</departmentBrowser>
6 <departmentRootVisible>false</departmentRootVisible>
7 <baseMode>false</baseMode>
8 <multiSelect>true</multiSelect>
9 <template>sudo-list.tpl</template>
10 <module>sudo</module>
11 <label>List of sudo roles</label>
12 <defaultSortColumn>1</defaultSortColumn>
14 <objectType>
15 <label>Role</label>
16 <objectClass>sudoRole</objectClass>
17 <category>sudo</category>
18 <class>sudo</class>
19 <image>plugins/sudo/images/select_sudo.png</image>
20 </objectType>
22 </definition>
24 <table>
25 <layout>|20px;c|120px||170px;r|</layout>
27 <column>
28 <value>%{filter:objectType(dn,objectClass)}</value>
29 </column>
31 <column>
32 <label>Name</label>
33 <sortAttribute>cn</sortAttribute>
34 <sortType>string</sortType>
35 <value>%{filter:link(row,dn,"%s",cn)}</value>
36 <export>true</export>
37 </column>
39 <column>
40 <label>Description</label>
41 <sortAttribute>description</sortAttribute>
42 <sortType>string</sortType>
43 <value>%{filter:link(row,dn,"%s",description)}</value>
44 <export>true</export>
45 </column>
47 <column>
48 <label>Actions</label>
49 <value>%{filter:actions(dn,row,objectClass)}</value>
50 </column>
52 </table>
54 <actionmenu>
56 <action>
57 <type>sub</type>
58 <image>images/lists/new.png</image>
59 <label>Create</label>
61 <action>
62 <name>new</name>
63 <type>entry</type>
64 <image>plugins/sudo/images/list_new_sudo.png</image>
65 <label>Role</label>
66 </action>
68 <action>
69 <name>new_default</name>
70 <type>entry</type>
71 <image>plugins/sudo/images/list_new_sudo.png</image>
72 <label>Default</label>
73 </action>
75 </action>
77 <action>
78 <type>separator</type>
79 </action>
81 <action>
82 <name>remove</name>
83 <type>entry</type>
84 <image>images/lists/trash.png</image>
85 <label>Remove</label>
86 </action>
88 <action>
89 <type>exporter</type>
90 </action>
92 <action>
93 <type>separator</type>
94 </action>
96 <action>
97 <type>copypaste</type>
98 </action>
100 <action>
101 <type>snapshot</type>
102 </action>
104 </actionmenu>
106 <actiontriggers snapshot="true" copypaste="true">
108 <action>
109 <name>cp</name>
110 <type>copypaste</type>
111 </action>
113 <action>
114 <name>edit</name>
115 <type>entry</type>
116 <image>images/lists/edit.png</image>
117 <label>Edit sudo role</label>
118 </action>
120 <action>
121 <name>snapshot</name>
122 <type>snapshot</type>
123 </action>
125 <action>
126 <name>remove</name>
127 <type>entry</type>
128 <image>images/lists/trash.png</image>
129 <acl>sudo/sudo[d]</acl>
130 <label>Remove sudo role</label>
131 </action>
133 </actiontriggers>
135 </list>