6836348a9e9893e949bff0cbe3a1418f9703ca80
[Plinn.git] / skins / custom_generic / personalize_form.pt
1 <html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="here/main_template/macros/master">
2 <head>
3 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
4 </head>
5
6 <body>
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;
11 ">
12 <div tal:condition="python: not( mtool.checkPermission( 'Set own properties'
13 , here ) )">
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 )" />
18 </div>
19 <!-- not Set own properties -->
20 <div class="config">
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">
26 <tr>
27 <th i18n:translate="">Name</th>
28 <td>
29 <input type="text" name="name" value="" tal:attributes="value python:member.getProperty('name', None)" />
30 </td>
31 </tr>
32 <tr>
33 <th i18n:translate="">Given Name</th>
34 <td>
35 <input type="text" name="given_name" tal:attributes="value python:member.getProperty('given_name', None)" />
36 </td>
37 </tr>
38 <tr>
39 <th i18n:translate="">Email address</th>
40 <td>
41 <input type="text" name="email" value="" tal:attributes="value python:member.getProperty('email', None)" />
42 </td>
43 </tr>
44 <tr>
45 <td><br /></td>
46 <td>
47 <br />
48 <input type="submit" value="Change" i18n:attributes="value" />
49 </td>
50 </tr>
51 </table>
52 </form>
53 </div>
54 <!-- class="Desktop" -->
55 </div>
56 <!-- tal:define="mtool" -->
57 </div>
58 <!-- metal:fill-slot="main" -->
59 </body>
60
61 </html>