On va faire autrement pour le PUT, car passer par NullRessource ne résoudra pas le...
[Plinn.git] / skins / photo_theme / 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="realis"
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 </td>
45 </tr>
46 <tal:case tal:condition="not: options/validate_email">
47 <tr>
48 <th i18n:translate="">Password</th>
49 <td>
50 <input type="password" name="password" size="30" tal:attributes="value options/password" />
51 </td>
52 </tr>
53 <tr>
54 <th i18n:translate="">Password (confirm)</th>
55 <td>
56 <input type="password" name="confirm" size="30" tal:attributes="value options/confirm" />
57 </td>
58 </tr>
59 <tr>
60 <th i18n:translate="">Mail Password?</th>
61 <td>
62 <input type="checkbox" name="send_password" id="cb_send_password"
63 tal:attributes="checked options/send_password" />
64 <em><label for="cb_send_password" i18n:translate="">Check this box to
65 have the password mailed.</label></em>
66 </td>
67 </tr>
68 </tal:case>
69 <tr>
70 <td colspan="2"><hr/></td>
71 </tr>
72 <tr>
73 <td colspan="2" style="text-align:center">
74 <h3>Accès à des images privées</h3>
75 veuillez entrer le code d'accès pour accéder / acheter les images<br/>
76 d'un événement privé couvert par les photographes de notre agence.
77 </td>
78 </tr>
79 <tr>
80 <th>Identifiant collection privée</th>
81 <td>
82 <input type="text" name="wedding_id" tal:attributes="value options/wedding_id"/>
83 </td>
84 </tr>
85 <tr>
86 <th>Mot de passe associé</th>
87 <td>
88 <input type="password" name="wedding_password" tal:attributes="value options/wedding_password" />
89 </td>
90 </tr>
91 <tr>
92 <th>Confirmation du mot de passe</th>
93 <td>
94 <input type="password" name="wedding_password_confirm" tal:attributes="value options/wedding_password_confirm" />
95 </td>
96 </tr>
97 <tr>
98 <td colspan="2"><hr/></td>
99 </tr>
100 <tr>
101 <td colspan="2" style="text-align:center">
102 <h3 i18n:translate="">Billing informations</h3>
103 </td>
104 </tr>
105 <tr>
106 <th i18n:translate="">Address</th>
107 <td>
108 <textarea name="billing_address" tal:content="options/billing_address"
109 cols="30" rows="1" style="width:auto"></textarea>
110 </td>
111 </tr>
112 <tr>
113 <th i18n:translate="">City</th>
114 <td>
115 <input type="text" name="billing_city" size="35" tal:attributes="value options/billing_city"/>
116 </td>
117 </tr>
118 <tr>
119 <th i18n:translate="">Zip code</th>
120 <td>
121 <input type="text" name="billing_zipcode" size="5" tal:attributes="value options/billing_zipcode"/>
122 </td>
123 </tr>
124 <tr>
125 <th i18n:translate="">Country</th>
126 <td>
127 <select name="country"
128 tal:define="countries python:modules['Products.iso_3166_1'].fr.countries"
129 i18n:domain="iso_3166_1">
130 <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>
131 </select>
132 </td>
133 </tr>
134 <tr>
135 <th i18n:translate="">Phone</th>
136 <td>
137 <input type="text" name="phone" tal:attributes="value options/phone"/>
138 </td>
139 </tr>
140 <tr>
141 <th><br/></th>
142 <td>
143 <input type="checkbox" name="accept_gcs" tal:attributes="checked python:options['accept_gcs']" />
144 <a tal:attributes="href string:$portal_url/cgv" target="_blank" i18n:translate="">I accept general conditions of sales</a>
145 </td>
146 </tr>
147 <tr>
148 <td>&nbsp;</td>
149 <td>
150 <input type="hidden" name="noAjax" value="1"/>
151 <input type="hidden" name="came_from" tal:condition="options/came_from" tal:attributes="value options/came_from" />
152 <input type="submit" name="add" value="Register" i18n:attributes="value"/>
153 <input type="submit" name="cancle" value="Cancel" i18n:attributes="value" style="margin-left:15em"/>
154 </td>
155 </tr>
156 </table>
157 </form>
158 </body>
159 </html>