Aide + localisation.
[photoprint.git] / skins / customer_join_template.pt
1 <html metal:use-macro="context/main_template/macros/master">
2 <head>
3 <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
4 </head>
5 <body metal:fill-slot="main_no_tabs" i18n:domain="photoprint"
6 tal:omit-tag="">
7 <div tal:condition="python:options.get('came_from', '').endswith('/my_cart')"
8 tal:define="step_authentication python:True" tal:omit-tag="">
9 <div metal:use-macro="here/sell_macros/macros/sell_steps"></div>
10 </div>
11 <h1 i18n:translate="">New customer account</h1>
12
13 <form tal:attributes="action string:portal_url/customer_join_form" method="post">
14 <table class="TwoColumnForm">
15 <tr>
16 <td colspan="2" style="text-align:center">
17 <h3 i18n:translate="">Customer informations</h3>
18 </td>
19 </tr>
20 <tr>
21 <th i18n:translate="">First name</th>
22 <td>
23 <input type="text" name="given_name" size="30" value="" tal:attributes="value options/given_name" />
24 </td>
25 </tr>
26 <tr>
27 <th i18n:translate="">Last name</th>
28 <td>
29 <input type="text" name="name" size="30" value="" tal:attributes="value options/name" />
30 </td>
31 </tr>
32 <tr>
33 <th i18n:translate="">Email Address</th>
34 <td>
35 <input type="text" name="member_email" size="30"
36 tal:attributes="value options/member_email" />
37 </td>
38 </tr>
39 <tr>
40 <th i18n:translate="">Member ID</th>
41 <td>
42 <input type="text" name="member_id" size="30" value=""
43 tal:attributes="value options/member_id" />
44 <dl class="FieldHelp">
45 <dd i18n:translate="">
46 Your login must starts with a letter, followed only by <br/>
47 letters, numbers or _ (underscore).<br/>
48 No accent, nopunctuation or special chars.<br/>
49 Those restrictions are only for this login field.
50 </dd>
51 </dl>
52 </td>
53 </tr>
54 <tal:case tal:condition="not: options/validate_email">
55 <tr>
56 <th i18n:translate="">Password</th>
57 <td>
58 <input type="password" name="password" size="30" tal:attributes="value options/password" />
59 </td>
60 </tr>
61 <tr>
62 <th i18n:translate="">Password (confirm)</th>
63 <td>
64 <input type="password" name="confirm" size="30" tal:attributes="value options/confirm" />
65 </td>
66 </tr>
67 </tal:case>
68 <tr>
69 <td colspan="2"><hr/></td>
70 </tr>
71 <tr>
72 <td colspan="2" style="text-align:center">
73 <h3 i18n:translate="">Access to private Images</h3>
74 <dl class="FieldHelp">
75 <dd i18n:translate="">
76 Please enter the access code to view / purchase private images.
77 </dd>
78 </dl>
79 </td>
80 </tr>
81 <tr>
82 <th>Identifiant collection privée</th>
83 <td>
84 <input type="text" name="collection_id" tal:attributes="value options/collection_id"/>
85 </td>
86 </tr>
87 <tr>
88 <th>Mot de passe associé</th>
89 <td>
90 <input type="password" name="collection_password" tal:attributes="value options/collection_password" />
91 </td>
92 </tr>
93 <tr>
94 <th>Confirmation du mot de passe</th>
95 <td>
96 <input type="password" name="collection_password_confirm" tal:attributes="value options/collection_password_confirm" />
97 </td>
98 </tr>
99 <tr>
100 <td colspan="2"><hr/></td>
101 </tr>
102 <tr>
103 <td colspan="2" style="text-align:center">
104 <h3 i18n:translate="">Billing informations</h3>
105 </td>
106 </tr>
107 <tr>
108 <th i18n:translate="">Address</th>
109 <td>
110 <textarea name="billing_address" tal:content="options/billing_address"
111 cols="30" rows="1" style="width:auto"></textarea>
112 </td>
113 </tr>
114 <tr>
115 <th i18n:translate="">City</th>
116 <td>
117 <input type="text" name="billing_city" size="35" tal:attributes="value options/billing_city"/>
118 </td>
119 </tr>
120 <tr>
121 <th i18n:translate="">Zip code</th>
122 <td>
123 <input type="text" name="billing_zipcode" size="5" tal:attributes="value options/billing_zipcode"/>
124 </td>
125 </tr>
126 <tr>
127 <th i18n:translate="">Country</th>
128 <td>
129 <select name="country"
130 tal:define="countries python:modules['Products.iso_3166_1'].fr.countries"
131 i18n:domain="iso_3166_1">
132 <option tal:repeat="c countries" tal:attributes="value python:c[0]; selected python:c[0]==options['country']" tal:content="python:c[0]" i18n:translate=""></option>
133 </select>
134 </td>
135 </tr>
136 <tr>
137 <th i18n:translate="">Phone</th>
138 <td>
139 <input type="text" name="phone" tal:attributes="value options/phone"/>
140 </td>
141 </tr>
142 <tr>
143 <td>&nbsp;</td>
144 <td>
145 <input type="hidden" name="noAjax" value="1"/>
146 <input type="hidden" name="came_from" tal:condition="options/came_from" tal:attributes="value options/came_from" />
147 <input type="submit" name="add" value="Register" i18n:attributes="value"/>
148 <input type="submit" name="cancle" value="Cancel" i18n:attributes="value" style="margin-left:15em"/>
149 </td>
150 </tr>
151 </table>
152 </form>
153 </body>
154 </html>