bugfix : on vérifie que le parent implémente bien l'interface d'ordonancement.
[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 member/name|nothing" />
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 member/given_name|nothing" />
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 member/email|nothing" />
42 </td>
43 </tr>
44 <tr>
45 <th i18n:translate="">Text editor</th>
46 <td>
47 <select name="wysiwyg_editor" size="1">
48 <option value="plain text" tal:repeat="editor python:portal_object.getProperty('available_editors')" tal:attributes="value editor ; selected python:member.getProperty('wysiwyg_editor', '') == editor" tal:content="editor" i18n:translate="">plain</option>
49 </select>
50 </td>
51 </tr>
52 <!--
53 <tr>
54 <th valign="top" i18n:translate="">Photos width</th>
55 <td>
56 <input type="text" name="photo_width" size="3" tal:attributes="value member/photo_width|nothing" />&nbsp;pixels
57 </td>
58 </tr>
59 <tr>
60 <th valign="top" i18n:translate="">Listed status</th>
61 <td tal:define="listed member/listed|nothing">
62 <input id="cb_listed" type="radio" name="listed" value="on" tal:attributes="checked listed" /><label for="cb_listed" i18n:translate="">Listed</label>
63 <dl class="FieldHelp">
64 <dd i18n:translate="">You will show up on the public membership roster.</dd>
65 </dl>
66 <input id="cb_unlisted" type="radio" name="listed" value="" tal:attributes="checked python:( hasattr(member,'listed')
67 and not(member.getProperty( 'listed' ) ) )" /><label for="cb_unlisted" i18n:translate="">Unlisted</label>
68 <dl class="FieldHelp">
69 <dd i18n:translate="">You will <i>not</i> show up on the public membership roster. Your Member folder will still be publicly accessible unless you change its security settings.</dd>
70 </dl>
71 </td>
72 </tr>
73 <tr tal:define="s_tool here/portal_skins" tal:condition="python:len(s_tool.getSkinSelections()) > 1">
74 <th i18n:translate="">Skin</th>
75 <td tal:define="current request/portal_skin|nothing;">
76 <select name="portal_skin">
77 <option value="" tal:attributes="value skin;
78 selected python:current == skin" tal:define="skins python:s_tool.getSkinSelections()" tal:content="skin" tal:repeat="skin skins">skin</option>
79 </select>
80 </td>
81 </tr>
82 -->
83 <tr>
84 <td><br /></td>
85 <td>
86 <br />
87 <input type="submit" value="Change" i18n:attributes="value" />
88 </td>
89 </tr>
90 </table>
91 </form>
92 </div>
93 <!-- class="Desktop" -->
94 </div>
95 <!-- tal:define="mtool" -->
96 </div>
97 <!-- metal:fill-slot="main" -->
98 </body>
99
100 </html>