CSOL-site/views/auth/signup-next-child.html

73 строки
3.1 KiB
HTML

{% extends 'auth/layout.html' %}
{% set bodyClass = 'sign-up' %}
{% set pageTitle = 'Almost there' %}
{% set navItem = 'auth' %}
{% block content %}
<form class="form-horizontal row-fluid" method="post">
<input type="hidden" name="_csrf" value="{{ csrfToken }}">
<button class="btn btn-link pull-left" name="action" value="go-back" formnovalidate>&laquo; Go Back</button>
<button class="btn pull-right" name="action" value="restart" formnovalidate>Restart</button>
<br><br>
<fieldset class="span12 well">
<div class="control-group {{ _fields.first_name.state }} {{ _fields.last_name.state }}">
<label class="control-label" for="input-email">Your Name</label>
<div class="controls">
<input type="text" id="input-first-name" name="first_name" value="{{ first_name }}" class="input-small" required="required" placeholder="First">
<input type="text" id="input-last-name" name="last_name" value="{{ last_name }}" class="input-small" required="required" placeholder="Last">
{% if _fields.first_name.message -%}
<span class="help-block message"><strong><em>{{ _fields.first_name.message }}</em></strong></span>
{%- endif %}
{% if _fields.last_name.message -%}
<span class="help-block message"><strong><em>{{ _fields.last_name.message }}</em></strong></span>
{%- endif %}
</div>
</div>
<div class="control-group {{ _fields.parent_email.state }}">
<label class="control-label" for="input-email">Your parent's email</label>
<div class="controls">
<input type="email" id="input-email" name="parent_email" value="{{ parent_email }}" required="required" placeholder="e.g. user@example.com">
<span class="help-block">
{%- if _fields.parent_email.message -%}
<strong><em>{{ _fields.parent_email.message }}</em></strong>
{%- else -%}
We need to know you're not an robot!
{%- endif -%}
<br><strong><a href="/privacy">Please see our privacy policy.</a></strong>
</span>
</div>
</div>
<div class="control-group {{ _fields.password.state }}">
<label class="control-label" id="input-password-label" for="input-password">Your Password</label>
<div class="controls">
{% if passwordGenerated %}
<input type="text" readonly="readonly" id="input-password" value="{{ password }}">
{% else %}
<input type="password" id="input-password" name="password">
{% endif %}
{% if _fields.password.message -%}
<span class="help-block message"><strong><em>{{ _fields.password.message }}</em></strong></span>
{%- endif %}
<div class="alert help-block">Make sure to write your password somewhere so you won't forget it! You'll need it to log in again later.</div>
</div>
</div>
<div class="control-group">
<div class="controls">
<p><button type="submit" class="btn">Submit</button></p>
</div>
</div>
</fieldset>
</form>
{% endblock %}
{% block finally %}
{% if not passwordGenerated %}
<script>
(function() {
{% include 'includes/password-test.js' %}
setupPasswordStrengthTest();
})();
</script>
{% endif %}
{% endblock %}