Déplacement pour eggification.
[Plinn.git] / Products / Plinn / 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="plinn">
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 <th i18n:translate="">Preferred languages</th>
46 <td>
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>
51 </dl>
52 </td>
53 </tr>
54 <tr>
55 <td><br /></td>
56 <td>
57 <br />
58 <input type="submit" value="Change" i18n:attributes="value" />
59 </td>
60 </tr>
61 </table>
62 </form>
63 </div>
64 <!-- class="Desktop" -->
65 </div>
66 <!-- tal:define="mtool" -->
67 </div>
68 <!-- metal:fill-slot="main" -->
69 </body>
70
71 </html>