typo--
[Plinn.git] / Products / Plinn / www / configureMembershipTool.zpt
1 <tal:header tal:replace="structure here/manage_page_header">header</tal:header>
2 <tal:tabs tal:replace="structure here/manage_tabs">tabs</tal:tabs>
3 <div tal:omit-tag="" i18n:domain="plinn">
4 <h2 i18n:translate="">Membership role mappings</h2>
5
6 <p i18n:translate="membership_role_mapping_explanations">Use this screen if you are using a userfolder other than the built-in folder to map
7 existing role names to roles understood by the CMF.</p>
8
9 <table border="1" cellpadding="3">
10 <tr>
11 <td class="form-label"><b i18n:translate="">Portal Role</b></td>
12 <td class="form-label"><b i18n:translate="">User Folder-defined Role</b></td>
13 <td>&nbsp;</td>
14 </tr>
15 <tr tal:repeat="role context/getPortalRoles">
16 <form method="post" action="setRoleMapping">
17 <td class="form-label">
18 <span tal:replace="role">role</span>
19 <input type="hidden" name="portal_role" tal:attributes="value role"/>
20 </td>
21 <td class="form-element">
22 <input type="text" size="30" name="userfolder_role"
23 tal:attributes="value python:context.getMappedRole(role)"/>
24 </td>
25 <td>
26 <input type="submit" value="Set Mapping" i18n:attributes="value"/></td>
27 </form>
28 </tr>
29 </table>
30
31 <p><hr/></p>
32
33 <h2 i18n:translate="member_creation_area_title">Creation of member areas</h2>
34
35 <p i18n:translate="member_creation_area_explanations">
36 This function determines if a personal folder will be created at the first user entrance.
37 </p>
38
39 <form method="post" action=".">
40
41 <div tal:condition="python:context.getMemberareaCreationFlag() == 1">
42 <p><b i18n:translate="">Folders are created upon first login.</b></p>
43 <input type="submit"
44 name="setMemberareaCreationFlag:method"
45 value="Turn folder creation off"
46 i18n:attributes="value"/><br/>
47 <p><b i18n:translate="">Select member area folder type to construct:</b>
48 <select name="member_folder_portal_type">
49 <option tal:condition="python:context.getMemberAreaPortalType() not in context.portal_types.objectIds('Factory-based Type Information')"
50 disabled="disabled" i18n:translate="">Unknown type</option>
51 <option tal:repeat="pt python:context.portal_types.objectIds('Factory-based Type Information')"
52 tal:attributes="value pt;
53 selected python:pt == context.getMemberAreaPortalType()"
54 tal:content="pt"></option>
55 </select>
56 <input type="submit" name="setMemberAreaPortalType:method" value="Change" i18n:attributes="value"/>
57 <div tal:condition="python:context.getMemberAreaPortalType() not in context.portal_types.objectIds('Factory-based Type Information')"
58 style="color:#f00"
59 i18n:translate="">WARNING: The current portal type is unknown. You must change the value to enable the member area creation.</div>
60 </div>
61
62 <div tal:condition="python:context.getMemberareaCreationFlag() == 0">
63 <p>
64 <b i18n:translate="">No Folders are created.</b>
65 <input type="submit"
66 name="setMemberareaCreationFlag:method"
67 value="Turn folder creation on"
68 i18n:attributes="value"/>
69 </div>
70
71 </form>
72 <p><hr/></p>
73
74 <h2 i18n:translate="">Base folder of members' folders</h2>
75
76 <p i18n:translate="">This folder has to be in the same container as the membership tool.</p>
77
78 <form action="manage_setMembersFolderById" method="post">
79 <table cellspacing="2">
80 <tr>
81 <td align="left" valign="top">
82 <div class="form-label" i18n:translate="">Members folder id</div>
83 </td>
84 <td align="left" valign="top">
85 <input class="form-element" type="text" name="id"
86 tal:attributes="value context/membersfolder_id"/>
87 </td>
88 </tr>
89 <tr>
90 <td>
91 </td>
92 <td align="left" valign="top">
93 <input class="form-element" type="submit" value="Change" i18n:attributes="value"/>
94 </td>
95 </tr>
96 </table>
97 </form>
98 </div>
99 <tal:footer tal:replace="structure here/manage_page_footer">footer</tal:footer>