The signup template contains a form for a customer to signup and become a customer.
signup
Term | Data Type | Typical Output | Description |
---|---|---|---|
signup.form_method | varchar | post | Plain text post |
signup.form_action | varchar | signup | Plain text action |
signup.form_field.first_name | html | <input type=“text.. | Html Form field First name text |
signup.form_field.last_name | html | <input type=“text.. | Html Form field Last name text |
signup.form_field.phone | html | <input type=“text.. | Html Form field Phone text |
signup.form_field.mobile | html | <input type=“text.. | Html Form field Mobile name text |
signup.form_field.email | html | <input type=“text.. | Html Form field Email name text |
signup.form_field.newsletter | html | <input type=“checkbox.. | Html Form field newsletter name text |
signup.form_field.address_company | html | <input type=“text.. | Html Form field company text |
signup.form_field.tax_number | html | <input type=“text.. | Html Form field tax number text |
signup.form_field.address_line_1 | html | <input type=“text.. | Html Form field text |
signup.form_field.address_line_2 | html | <input type=“text.. | Html Form field text |
signup.form_field.address_city | html | <input type=“text.. | Html Form field text |
signup.form_field.address_postcode | html | <input type=“text.. | Html Form field text |
signup.form_field.address_county | html | <input type=“text.. | Html Form field text |
signup.form_field.address_country | html | <input type=“text.. | Html Form field text |
signup.form_field.submit | html | <input type=“text.. | Html Form field text |
signup.error
Error messages can be accessed from the following references directly via the signup.error array.
Term | Data Type | Typical Output | Description |
---|---|---|---|
signup.error.first_name | varchar | Sorry your is missing.. | Text output with field is missing message |
signup.error.last_name | varchar | Sorry your is missing.. | Text output with field is missing message |
signup.error.phone | varchar | Sorry your is missing.. | Text output with field is missing message |
signup.error.mobile | varchar | Sorry your is missing.. | Text output with field is missing message |
signup.error.email | varchar | Sorry your is missing.. | Text output with field is missing message |
signup.error.address_company | varchar | Sorry your is missing.. | Text output with field is missing message |
signup.error.address_line_1 | varchar | Sorry your is missing.. | Text output with field is missing message |
signup.error.address_line_2 | varchar | Sorry your is missing.. | Text output with field is missing message |
signup.error.address_city | varchar | Sorry your is missing.. | Text output with field is missing message |
signup.error.address_postcode | varchar | Sorry your is missing.. | Text output with field is missing message |
signup.error.address_county | varchar | Sorry your is missing.. | Text output with field is missing message |
signup.error.address_country | varchar | Sorry your is missing.. | Text output with field is missing message |
Usage
<form name="signup" method="{{ signup.form_method|raw }}" action="{{ signup.form_action|raw }}"> {{ signup.form_field.action|raw }} <label>First Name</label>{{ signup.form_field.first_name|raw }}{% if signup.error.first_name %} <span class="form_error">* Please include your firstname</span>{% endif %}<br /> <label>Last Name</label>{{ signup.form_field.last_name|raw }}{% if signup.error.last_name %} <span class="form_error">* Please include your lastname</span>{% endif %}<br /> <label>Phone</label>{{ signup.form_field.phone|raw }}{% if signup.error.phone %} <span class="form_error">* Please include your Phone Number</span>{% endif %}<br /> <label>Mobile</label>{{ signup.form_field.mobile|raw }}{% if signup.error.email %} <span class="form_error">* Please include your Mobile Number</span>{% endif %}<br /> <label>Email</label>{{ signup.form_field.email|raw }}{% if signup.error.email %} <span class="form_error">* {{ signup.error.email }}{% endif %}</span><br /> <hr /> <p>Do you wish to subscribe to our twice monthly newsletter?</p> <label>Newsletter</label>{{ signup.form_field.newsletter|raw }}<br /> <hr /> <p>Please choose a password that is at least 6 characters long</p> <label>Password</label>{{ signup.form_field.password|raw }}<br /> <label>Retype Password</label>{{ signup.form_field.password2|raw }}{% if signup.error.password %} <span class="form_error">* {{ signup.error.password|raw }}</span>{% endif %}<br /> <hr /> <p>Optional, for business customers</p> <label>Company Name</label>{{ signup.form_field.address_company|raw }}{% if signup.error.address_company %}"> <span class="form_error">* This is an optional field</span>{% endif %}<br /> <label>VAT Number</label>{{ signup.form_field.tax_number|raw }}<br /> <hr /> <p>Please type in your primary address, usually your billing address</p> <label>Number + Street</label>{{ signup.form_field.address_line_1|raw }}{% if signup.error.address_line_1 %} <span class="form_error">* Please check that your House and Street number have been specified</span>{% endif %}<br /> <label>Address Line 2</label>{{ signup.form_field.address_line_2|raw }}{% if signup.error.address_city %} <span class="form_error">* Please double check your City</span>{% endif %}<br /> <label>City</label>{{ signup.form_field.address_city|raw }}<br /> <label>Postcode</label>{{ signup.form_field.address_postcode|raw }}{% if signup.error.address_postcode %} <span class="form_error">* Check your postcode is correct</span>{% endif %}<br /> <label>County</label>{{ signup.form_field.address_county|raw }}{% if signup.error.address_county %} <span class="form_error">* Please make sure you have specified your County</span>{% endif %}<br /> <label>Country</label>{{ signup.form_select.country|raw }}<br /> <label>Agree to Terms?</label>{{ signup.form_field.agree_terms|raw }}{% if signup.error.agree_terms %} <span class="form_error">* You need to agree to our terms and conditions to proceed</span>{% endif %}<br /> <hr /> {{ signup.form_field.submit|raw }} </form>
Comments
0 comments
Please sign in to leave a comment.