9cbfa8cdf89177ff9a42ed065490b3c9b91edd15
[photoprint.git] / skins / 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="photoprint">
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="">Given Name</th>
28 <td>
29 <input type="text" name="given_name" tal:attributes="value python:member.getProperty('given_name', '')" />
30 </td>
31 </tr>
32 <tr>
33 <th i18n:translate="">Name</th>
34 <td>
35 <input type="text" name="name" value="" tal:attributes="value python:member.getProperty('name', '')" />
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', '')" />
42 </td>
43 </tr>
44 <tr>
45 <td colspan="2" style="text-align:center">
46 <h3 i18n:translate="">Billing informations</h3>
47 </td>
48 </tr>
49 <tr>
50 <th i18n:translate="">Address</th>
51 <td>
52 <textarea name="billing_address" tal:content="python:member.getProperty('billing_address', '')"
53 cols="30" rows="1" style="width:auto"></textarea>
54 </td>
55 </tr>
56 <tr>
57 <th i18n:translate="">City</th>
58 <td>
59 <input type="text" name="billing_city" size="35" tal:attributes="value python:member.getProperty('billing_city', '')"/>
60 </td>
61 </tr>
62 <tr>
63 <th i18n:translate="">Zip code</th>
64 <td>
65 <input type="text" name="billing_zipcode" size="5" tal:attributes="value python:member.getProperty('billing_zipcode', '')"/>
66 </td>
67 </tr>
68 <tr>
69 <th i18n:translate="">Country</th>
70 <td>
71 <select name="country"
72 tal:define="countries python:modules['Products.iso_3166_1'].fr.countries"
73 i18n:domain="iso_3166_1">
74 <option tal:repeat="c countries" tal:attributes="value python:c[0]; selected python:c[0]==member.getProperty('country', '')" tal:content="python:c[0]" i18n:translate=""></option>
75 </select>
76 </td>
77 </tr>
78 <tr>
79 <th i18n:translate="">Phone</th>
80 <td>
81 <input type="text" name="phone" tal:attributes="value python:member.getProperty('phone', '')"/>
82 </td>
83 </tr>
84 <tr>
85 <td><br /></td>
86 <td>
87 <br />
88 <input type="submit" value="Change" i18n:attributes="value" />
89 </td>
90 </tr>
91 </table>
92 </form>
93 </div>
94 <!-- class="Desktop" -->
95 </div>
96 <!-- tal:define="mtool" -->
97 </div>
98 <!-- metal:fill-slot="main" -->
99 </body>
100
101 </html>