eggification
[photoprint.git] / Products / photoprint / skins / customer_join_template.pt
diff --git a/Products/photoprint/skins/customer_join_template.pt b/Products/photoprint/skins/customer_join_template.pt
new file mode 100644 (file)
index 0000000..92680ff
--- /dev/null
@@ -0,0 +1,154 @@
+<html metal:use-macro="context/main_template/macros/master">
+  <head>
+    <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
+  </head>
+  <body metal:fill-slot="main_no_tabs" i18n:domain="photoprint"
+        tal:omit-tag="">
+    <div tal:condition="python:options.get('came_from', '').endswith('/my_cart')"
+         tal:define="step_authentication python:True" tal:omit-tag="">
+      <div metal:use-macro="here/sell_macros/macros/sell_steps"></div>
+    </div>
+    <h1 i18n:translate="">New customer account</h1>
+    
+    <form tal:attributes="action string:portal_url/customer_join_form" method="post">
+      <table class="TwoColumnForm">
+        <tr>
+          <td colspan="2" style="text-align:center">
+            <h3 i18n:translate="">Customer informations</h3>
+          </td>
+        </tr>
+        <tr>
+          <th i18n:translate="">First name</th>
+          <td>
+            <input type="text" name="given_name" size="30" value="" tal:attributes="value options/given_name" />
+          </td>
+        </tr>
+        <tr>
+          <th i18n:translate="">Last name</th>
+          <td>
+            <input type="text" name="name" size="30" value="" tal:attributes="value options/name" />
+          </td>
+        </tr>
+        <tr>
+          <th i18n:translate="">Email Address</th>
+          <td>
+            <input type="text" name="member_email" size="30"
+                   tal:attributes="value options/member_email" />
+          </td>
+        </tr>
+        <tr>
+         <th i18n:translate="">Member ID</th>
+         <td>
+          <input type="text" name="member_id" size="30" value=""
+                 tal:attributes="value options/member_id" />
+           <dl class="FieldHelp">
+             <dd i18n:translate="">
+               Your login must starts with a letter, followed only by <br/>
+               letters, numbers or _ (underscore).<br/>
+               No accent, nopunctuation or special chars.<br/>
+               Those restrictions are only for this login field.
+             </dd>
+           </dl>
+         </td>
+        </tr>
+        <tal:case tal:condition="not: options/validate_email">
+          <tr>
+            <th i18n:translate="">Password</th>
+            <td>
+              <input type="password" name="password" size="30" tal:attributes="value options/password" />
+            </td>
+          </tr>
+          <tr>
+            <th i18n:translate="">Password (confirm)</th>
+            <td>
+              <input type="password" name="confirm" size="30" tal:attributes="value options/confirm" />
+            </td>
+          </tr>
+        </tal:case>
+        <tr>
+          <td colspan="2"><hr/></td>
+        </tr>
+        <tr>
+          <td colspan="2" style="text-align:center">
+            <h3 i18n:translate="">Access to private Images</h3>
+            <dl class="FieldHelp">
+              <dd i18n:translate="">
+                Please enter the access code to view / purchase private images.
+              </dd>
+            </dl>
+          </td>
+        </tr>
+        <tr>
+          <th>Identifiant collection privée</th>
+          <td>
+            <input type="text" name="collection_id" tal:attributes="value options/collection_id"/>
+          </td>
+        </tr>
+        <tr>
+          <th>Mot de passe associé</th>
+          <td>
+            <input type="password" name="collection_password" tal:attributes="value options/collection_password" />
+          </td>
+        </tr>
+        <tr>
+          <th>Confirmation du mot de passe</th>
+          <td>
+            <input type="password" name="collection_password_confirm" tal:attributes="value options/collection_password_confirm" />
+          </td>
+        </tr>
+        <tr>
+          <td colspan="2"><hr/></td>
+        </tr>
+        <tr>
+          <td colspan="2" style="text-align:center">
+            <h3 i18n:translate="">Billing informations</h3>
+          </td>
+        </tr>
+        <tr>
+          <th i18n:translate="">Address</th>
+          <td>
+            <textarea name="billing_address" tal:content="options/billing_address"
+                      cols="30" rows="1" style="width:auto"></textarea>
+          </td>
+        </tr>
+        <tr>
+          <th i18n:translate="">City</th>
+          <td>
+            <input type="text" name="billing_city" size="35" tal:attributes="value options/billing_city"/>
+          </td>
+        </tr>
+        <tr>
+          <th i18n:translate="">Zip code</th>
+          <td>
+            <input type="text" name="billing_zipcode" size="5" tal:attributes="value options/billing_zipcode"/>
+          </td>
+        </tr>
+        <tr>
+          <th i18n:translate="">Country</th>
+          <td>
+            <select name="country"
+                    tal:define="countries python:modules['Products.iso_3166_1'].fr.countries"
+                    i18n:domain="iso_3166_1">
+              <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>
+            </select>
+          </td>
+        </tr>
+        <tr>
+          <th i18n:translate="">Phone</th>
+          <td>
+            <input type="text" name="phone" tal:attributes="value options/phone"/>
+          </td>
+        </tr>
+        <tr>
+          <td>&nbsp;</td>
+          <td>
+            <input type="hidden" name="noAjax" value="1"/>
+            <input type="hidden" name="came_from" tal:condition="options/came_from" tal:attributes="value options/came_from" />
+            <input type="submit" name="add" value="Register" i18n:attributes="value"/>
+            <input type="submit" name="cancle" value="Cancel" i18n:attributes="value" style="margin-left:15em"/>
+          </td>
+        </tr>
+      </table>
+    </form>
+  </body>
+</html>