1 <html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="here/main_template/macros/master">
3 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
7 <div metal:fill-slot="main_no_tabs" i18n:domain="cmf_default">
8 <div tal:define="purl here/portal_url;
9 mtool here/portal_membership;
10 member mtool/getAuthenticatedMember;
12 <div tal:condition="python: not( mtool.checkPermission( 'Set own properties'
14 <span id="dummy_for_redirect" tal:define="aurl here/absolute_url;
15 rurl string:${purl}/login_form?came_from=${aurl};
16 response request/RESPONSE;
17 redirect python:response.redirect( rurl )" />
19 <!-- not Set own properties -->
21 <h1 i18n:translate="">Member Preferences</h1>
22 <span tal:condition="request/msg|nothing" tal:replace="request/msg" />
23 <p i18n:translate=""><span i18n:name="link"><a href="password_form" i18n:translate="">Click here</a></span> to change your password.</p>
24 <form action="personalize" method="post" tal:attributes="action string:${purl}/personalize">
25 <table class="TwoColumnForm" cellspacing="0">
27 <th i18n:translate="">Name</th>
29 <input type="text" name="name" value="" tal:attributes="value python:member.getProperty('name', None)" />
33 <th i18n:translate="">Given Name</th>
35 <input type="text" name="given_name" tal:attributes="value python:member.getProperty('given_name', None)" />
39 <th i18n:translate="">Email address</th>
41 <input type="text" name="email" value="" tal:attributes="value python:member.getProperty('email', None)" />
45 <th i18n:translate="">Preferred languages</th>
47 <input type="text" name="preferred_languages:tokens"
48 tal:attributes="value python:' '.join(member.getProperty('preferred_languages', []))"/>
49 <dl class="FieldHelp">
50 <dd i18n:translate="">Please enter language codes separated by spaces.</dd>
58 <input type="submit" value="Change" i18n:attributes="value" />
64 <!-- class="Desktop" -->
66 <!-- tal:define="mtool" -->
68 <!-- metal:fill-slot="main" -->