vendor/CMF/1.6.3/CMFCore

diff dtml/membershipRolemapping.dtml @ 0:587011552858

import CMF 1.6.3
author bdelbosc
date Mon, 23 Apr 2007 13:58:01 +0000
parents
children
line diff
     1.1 new file mode 100644
     1.2 --- /dev/null
     1.3 +++ b/dtml/membershipRolemapping.dtml
     1.4 @@ -0,0 +1,66 @@
     1.5 +<dtml-let form_title="'Membership Tool Role Mappings'">
     1.6 +<dtml-if manage_page_header>
     1.7 + <dtml-var manage_page_header>
     1.8 +<dtml-else>
     1.9 + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    1.10 + <html lang="en">
    1.11 + <head>
    1.12 + <title>&dtml-form_title;</title>
    1.13 + </head>
    1.14 + <body bgcolor="#FFFFFF" link="#000099" vlink="#555555">
    1.15 + <h3>&dtml-form_title;</h3>
    1.16 +</dtml-if>
    1.17 +</dtml-let>
    1.18 +
    1.19 +<dtml-var name="manage_tabs">
    1.20 +  
    1.21 +<h2>Membership role mappings</h2>
    1.22 +
    1.23 +<p>Use this screen if you are using a userfolder other than the built-in folder to map 
    1.24 +existing role names to roles understood by the CMF.</p>
    1.25 +
    1.26 +<dtml-in expr="getPortalRoles()">
    1.27 +  <dtml-if name="sequence-start">
    1.28 +    <table border="1" cellpadding="3">
    1.29 +      <tr>
    1.30 +        <td class="form-label"><b>Portal Role</b></td>
    1.31 +        <td class="form-label"><b>User Folder-defined Role</b></td>
    1.32 +        <td>&nbsp;</td>
    1.33 +      </tr>
    1.34 +  </dtml-if>
    1.35 +
    1.36 +  <tr>
    1.37 +    <form method="post" action="setRoleMapping">
    1.38 +    <td class="form-label"><dtml-var name="sequence-item"><input type="hidden" name="portal_role" value="&dtml-sequence-item;"></td>
    1.39 +    <td class="form-element"><input type="text" size="30" name="userfolder_role" 
    1.40 +              value="<dtml-var expr="getMappedRole(_['sequence-item'])">"></td>
    1.41 +    <td><input type="submit" value="Set Mapping"></td>
    1.42 +    </form>
    1.43 +  </tr>
    1.44 +
    1.45 +  <dtml-if name="sequence-end">
    1.46 +    </table>
    1.47 +  </dtml-if>
    1.48 +</dtml-in>
    1.49 +
    1.50 +<p><hr></p>
    1.51 +
    1.52 +<h2>Control creation of member areas</h2>
    1.53 +
    1.54 +<p>This feature controls whether users coming from an outside user source (such as an underlying 
    1.55 +user folder) will have their own folder created upon first login or not</p>
    1.56 +
    1.57 +<form method="post" action="setMemberareaCreationFlag">
    1.58 +
    1.59 +<dtml-if expr="getMemberareaCreationFlag() == 1">
    1.60 +  <p><b>Folders are created upon first login.</b> 
    1.61 +  <input type="submit" value=" Turn folder creation off ">
    1.62 +<dtml-else>
    1.63 +  <p><b>No Folders are created.</b> 
    1.64 +  <input type="submit" value=" Turn folder creation on ">
    1.65 +</dtml-if>
    1.66 +
    1.67 +</form>
    1.68 +
    1.69 +</body>
    1.70 +</html>