vendor/CMF/1.6.3/CMFCore

view dtml/membershipRolemapping.dtml @ 2:4c712d7bd1d7

Added tag 1.6.3 for changeset 1babb9d61518
author Georges Racinet on purity.racinet.fr <georges@racinet.fr>
date Fri, 09 Sep 2011 12:44:00 +0200
parents
children
line source
1 <dtml-let form_title="'Membership Tool Role Mappings'">
2 <dtml-if manage_page_header>
3 <dtml-var manage_page_header>
4 <dtml-else>
5 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
6 <html lang="en">
7 <head>
8 <title>&dtml-form_title;</title>
9 </head>
10 <body bgcolor="#FFFFFF" link="#000099" vlink="#555555">
11 <h3>&dtml-form_title;</h3>
12 </dtml-if>
13 </dtml-let>
15 <dtml-var name="manage_tabs">
17 <h2>Membership role mappings</h2>
19 <p>Use this screen if you are using a userfolder other than the built-in folder to map
20 existing role names to roles understood by the CMF.</p>
22 <dtml-in expr="getPortalRoles()">
23 <dtml-if name="sequence-start">
24 <table border="1" cellpadding="3">
25 <tr>
26 <td class="form-label"><b>Portal Role</b></td>
27 <td class="form-label"><b>User Folder-defined Role</b></td>
28 <td>&nbsp;</td>
29 </tr>
30 </dtml-if>
32 <tr>
33 <form method="post" action="setRoleMapping">
34 <td class="form-label"><dtml-var name="sequence-item"><input type="hidden" name="portal_role" value="&dtml-sequence-item;"></td>
35 <td class="form-element"><input type="text" size="30" name="userfolder_role"
36 value="<dtml-var expr="getMappedRole(_['sequence-item'])">"></td>
37 <td><input type="submit" value="Set Mapping"></td>
38 </form>
39 </tr>
41 <dtml-if name="sequence-end">
42 </table>
43 </dtml-if>
44 </dtml-in>
46 <p><hr></p>
48 <h2>Control creation of member areas</h2>
50 <p>This feature controls whether users coming from an outside user source (such as an underlying
51 user folder) will have their own folder created upon first login or not</p>
53 <form method="post" action="setMemberareaCreationFlag">
55 <dtml-if expr="getMemberareaCreationFlag() == 1">
56 <p><b>Folders are created upon first login.</b>
57 <input type="submit" value=" Turn folder creation off ">
58 <dtml-else>
59 <p><b>No Folders are created.</b>
60 <input type="submit" value=" Turn folder creation on ">
61 </dtml-if>
63 </form>
65 </body>
66 </html>