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="photoprint">
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="">Given Name</th>
29 <input type="text" name="given_name" tal:attributes="value python:member.getProperty('given_name', '')" />
33 <th i18n:translate="">Name</th>
35 <input type="text" name="name" value="" tal:attributes="value python:member.getProperty('name', '')" />
39 <th i18n:translate="">Email address</th>
41 <input type="text" name="email" value="" tal:attributes="value python:member.getProperty('email', '')" />
45 <td colspan="2" style="text-align:center">
46 <h3 i18n:translate="">Billing informations</h3>
50 <th i18n:translate="">Address</th>
52 <textarea name="billing_address" tal:content="python:member.getProperty('billing_address', '')"
53 cols="30" rows="1" style="width:auto"></textarea>
57 <th i18n:translate="">City</th>
59 <input type="text" name="billing_city" size="35" tal:attributes="value python:member.getProperty('billing_city', '')"/>
63 <th i18n:translate="">Zip code</th>
65 <input type="text" name="billing_zipcode" size="5" tal:attributes="value python:member.getProperty('billing_zipcode', '')"/>
69 <th i18n:translate="">Country</th>
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>
79 <th i18n:translate="">Phone</th>
81 <input type="text" name="phone" tal:attributes="value python:member.getProperty('phone', '')"/>
88 <input type="submit" value="Change" i18n:attributes="value" />
94 <!-- class="Desktop" -->
96 <!-- tal:define="mtool" -->
98 <!-- metal:fill-slot="main" -->