-
-
Save slipstreamstudio/d8dd801d722c3f275b74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form method="post" action="" class="form" accept-charset="UTF-8"> | |
<input type="hidden" name="action" value="users/saveUser"> | |
<input type="hidden" name="redirect" value="/me/thanks"> | |
{% macro errorList(errors) %} | |
{% if errors %} | |
<ul class="errors"> | |
{% for error in errors %} | |
<li>{{ error }}</li> | |
{% endfor %} | |
</ul> | |
{% endif %} | |
{% endmacro %} | |
<p> | |
<label for="username"><abbr title="Required">*</abbr>First Name</label> | |
<input id="username" type="text" name="firstName" class="text" | |
{%- if account is defined %} value="{{ account.firstName }}"{% endif -%}> | |
{% if account is defined %} | |
{{ _self.errorList(account.getErrors('firstName')) }} | |
{% endif %} | |
</p> | |
<p> | |
<label for="username"><abbr title="Required">*</abbr>Last Name</label> | |
<input id="username" type="text" name="lastName" class="text" | |
{%- if account is defined %} value="{{ account.lastName }}"{% endif -%}> | |
{% if account is defined %} | |
{{ _self.errorList(account.getErrors('lastName')) }} | |
{% endif %} | |
</p> | |
<p><label for="userCountry"><abbr title="Required">*</abbr>Country</label> | |
<select id="userCountry" name="fields[userCountry]"> | |
<option value="gb" selected>United Kingdom</option> | |
<option value="--">----------------</option> | |
<option value="AF">Afghanistan</option> | |
<option value="AX">Åland Islands</option> | |
<option value="AL">Albania</option> | |
<option value="DZ">Algeria</option> | |
</select></p> | |
{% if account is defined %} | |
{{ _self.errorList(account.getErrors('userCountry')) }} | |
{% endif %} | |
</p> | |
<p> | |
<label for="Occupation"><abbr title="Required">*</abbr>Occupation</label> | |
<select id="occupation" name="fields[occupation]"> | |
{% for option in ["Please Select", "Academic", "Business", "Designer", "Educator", "Entrepreneur", "NGO", "Public sector", "Social enterprise", "Student", "Other"] %} | |
<option>{{ option }}</option> | |
{% endfor %} | |
</select> | |
{% if account is defined %} | |
{{ _self.errorList(account.getErrors('occupation')) }} | |
{% endif %} | |
</p> | |
<p> | |
<label for="username"><abbr title="Required">*</abbr>Username</label> | |
<input id="username" type="text" name="username" class="text" | |
{%- if account is defined %} value="{{ account.username }}"{% endif -%}> | |
{% if account is defined %} | |
{{ _self.errorList(account.getErrors('username')) }} | |
{% endif %} | |
</p> | |
<p> | |
<label for="email"><abbr title="Required">*</abbr>Email</label> | |
<input id="email" type="text" name="email" class="text" | |
{%- if account is defined %} value="{{ account.email }}"{% endif -%} | |
> | |
{% if account is defined %} | |
{{ _self.errorList(account.getErrors('email')) }} | |
{% endif %} | |
</p> | |
<p> | |
<label for="password"><abbr title="Required">*</abbr>Password</label> | |
<input id="password" type="password" name="password" class="text"> | |
{% if account is defined %} | |
{{ _self.errorList(account.getErrors('password')) }} | |
{% endif %} | |
</p> | |
<p class="buttons"><input type="submit" value="Register" class="btn"></a> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment