CleanupTemp n'existe plus.
[GroupUserFolder.git] / dtml / groups.dtml
1 <dtml-var manage_page_header>
2
3 <dtml-with "_(management_view='Groups')">
4 <dtml-var manage_tabs>
5 </dtml-with>
6
7 <p class="form-help">
8 This view shows all available groups at the specified branch
9 and allows deletion and addition.
10 </p>
11
12 <dtml-in expr="getGroups()">
13
14 <dtml-if name="sequence-start">
15 <form action="&dtml-URL1;" method="post">
16 <table border="0" cellpadding="2" cellspacing="0" width="95%">
17 <tr class="list-header">
18 <td align="left" valign="top" width="16">&nbsp;</td>
19 <td><div class="form-label"> Friendly Name </div></td>
20 <td><div class="form-label"> Object Class </div></td>
21 <td><div class="form-label"> Distinguished Name </div></td>
22 </tr>
23 </dtml-if>
24
25 <dtml-if sequence-odd>
26 <tr class="row-normal">
27 <dtml-else>
28 <tr class="row-hilite">
29 </dtml-if>
30 <td align="left" valign="top" width="16">
31 <input type="checkbox" name="dns:list" value="&dtml-sequence-item;" />
32 </td>
33 <td><div class="form-text">
34 <dtml-var name="sequence-key">
35 </div></td>
36 <td><div class="form-text">
37 <dtml-var expr="getGroupType( _['sequence-item'] )">
38 </div></td>
39 <td><div class="form-text">
40 <dtml-var name="sequence-item" size="60" etc="...">
41 </div></td>
42 </tr>
43
44 <dtml-if name="sequence-end">
45 <tr>
46 <td align="left" valign="top" width="16">&nbsp;</td>
47 <td align="left" valign="top" colspan="2"><div class="form-element">
48 <input class="form-element" type="submit"
49 name="manage_deleteGroups:method"
50 value="Delete" />
51 </div></td>
52 </tr>
53 </table>
54 </form>
55 </dtml-if>
56
57 <dtml-else>
58 <br />
59 <div class="form-label">
60 No groups found.
61 Please check the settings "Group base DN" and "Groups search scope"
62 and make sure your LDAP tree contains suitable group records.
63 </div>
64
65 </dtml-in>
66
67 <p><br></p>
68
69 <form action="manage_addGroup" method="post">
70
71 <table cellspacing="0" cellpadding="2" width="95%">
72
73 <tr class="section-bar">
74 <td colspan="2" align="left" valign="top"><div class="form-label">
75 Add Group
76 </div></td>
77 </tr>
78
79 <tr>
80 <td colspan="2" align="left" valign="top"><div class="form-text">
81 Add a new group on this LDAP branch by specifying a group name
82 and hitting "Add".
83 The name is a "friendly" name, meaning it
84 is not a dn or does not contain any LDAP-sepecific elements.
85 </div></td>
86 </tr>
87
88 <tr><td colspan="2">&nbsp;</td></tr><tr>
89 <td align="left" valign="absmiddle"><div class="form-label">
90 Group Name
91 </div></td>
92 <td align="LEFT" valign="TOP">
93 <input type="TEXT" name="newgroup_name" size="50"
94 value="MyGroup" />&nbsp;
95 </td>
96 </tr>
97
98 <tr>
99 <td align="left" valign="absmiddle"><div class="form-label">
100 Group object class
101 </div></td>
102 <td align="LEFT" valign="TOP">
103 <select name="newgroup_type">
104 <option value="groupOfUniqueNames"> groupOfUniqueNames </option>
105 <option value="groupOfNames"> groupOfNames </option>
106 <option value="accessGroup"> accessGroup </option>
107 <option value="group"> group </option>
108 </select>
109 </td>
110 </tr>
111
112 <tr>
113 <td align="left" valign="top" colspan="2">
114 <input class="form-element" type="SUBMIT" value=" Add " />
115 </td>
116 </tr>
117
118 </table>
119
120 </form>
121
122 <p><hr></p>
123
124 <table cellspacing="0" cellpadding="2" width="95%">
125 <tr>
126 <td align="left" valign="top"><div class="form-text">
127 This section determines if LDAP groups are mapped to Zope roles
128 and what they map to.
129 </div></td>
130 </tr>
131 </table>
132
133 <br />
134
135 <dtml-in getGroupMappings>
136
137 <dtml-if name="sequence-start">
138 <form action="&dtml-URL1;" method="post">
139 <table border="0" cellpadding="2" cellspacing="0" width="95%">
140 <tr class="list-header">
141 <td align="left" valign="top" width="16">&nbsp;</td>
142 <td><div class="form-label"> LDAP Group </div></td>
143 <td><div class="form-label"> Zope Role </div></td>
144 </tr>
145 </dtml-if>
146
147 <dtml-if sequence-odd>
148 <tr class="row-normal">
149 <dtml-else>
150 <tr class="row-hilite">
151 </dtml-if>
152 <td align="left" valign="top" width="16">
153 <input type="checkbox" name="group_names:list" value="&dtml-sequence-key;" />
154 </td>
155 <td><div class="form-text"> &dtml-sequence-key; </div></td>
156 <td><div class="form-text"> &dtml-sequence-item; </div></td>
157 </tr>
158
159 <dtml-if name="sequence-end">
160 <tr>
161 <td align="left" valign="top" width="16">&nbsp;</td>
162 <td align="left" valign="top" colspan="2"><div class="form-element">
163 <input class="form-element" type="submit"
164 name="manage_deleteGroupMappings:method"
165 value="Delete" />
166 </div></td>
167 </tr>
168 </table>
169 </dtml-if>
170
171 <dtml-else>
172 <p>(No group mappings specified at this time.)</p>
173
174 </dtml-in>
175
176 <p>&nbsp;</p>
177
178 <form action="&dtml-URL1;" method="post">
179
180 <table cellspacing="0" cellpadding="2" width="95%">
181
182 <tr class="section-bar">
183 <td colspan="4" align="left" valign="top"><div class="form-label">
184 Add LDAP group to Zope role mapping
185 </div></td>
186 </tr>
187
188 <tr>
189 <td align="left" valign="absmiddle"><div class="form-label">
190 Map this LDAP Group... &nbsp;
191 </div></td>
192 <td align="LEFT" valign="TOP">
193 <select name="group_name">
194 <dtml-in getGroups sort>
195 <option>&dtml-sequence-key;</option>
196 </dtml-in>
197 </select>
198 </td>
199 <td align="left" valign="absmiddle"><div class="form-label">
200 ... to this Zope Role &nbsp;
201 </div></td>
202 <td align="LEFT" valign="TOP">
203 <select name="role_name">
204 <dtml-in expr="_.reorder( valid_roles()
205 , without=( 'Anonymous', 'Authenticated', 'Owner' )
206 )" sort>
207 <option>&dtml-sequence-item;</option>
208 </dtml-in>
209 </select>
210 </td>
211 </tr>
212
213 <tr>
214 <td align="left" valign="top" colspan="4">
215 <input class="form-element" type="SUBMIT" value=" Add "
216 name="manage_addGroupMapping:method">
217 </td>
218 </tr>
219
220 </table>
221
222 </form>
223
224 <dtml-var manage_page_footer>