cheesy/moku/templates/moku/signup.jinja

48 lines
No EOL
2.5 KiB
Django/Jinja

{% extends "moku/base.jinja" %}
{% block content %}
<div class="content">
<form action="" method="POST" class="auth">
{% include "moku/snippets/form_errors.jinja" %}
{% csrf_token %}
<div class="field">
<label for="id_username">{{ form.username.label }}</label>
<input type="text" name="username" id="id_username" value="{{ form.username.value() or "" }}" required>
<span class="help">{{ form.username.help_text }}</span>
</div>
<div class="field">
<label for="id_email">{{ form.email.label }}</label>
<input type="email" name="email" id="id_email" value="{{ form.email.value() or "" }}" required>
<span class="help">{{ form.email.help_text }}</span>
</div>
<div class="field">
<label for="id_password1">{% trans %}password{% endtrans %}</label>
<input type="password" name="password1" id="id_password1" required>
<span class="help">{% trans %}make a secure password that you've never used before!{% endtrans %}</span>
</div>
<div class="field">
<label for="id_password2">{% trans %}password (again){% endtrans %}</label>
<input type="password" name="password2" id="id_password2" required>
<span class="help">{% trans %}just type the password again to confirm.{% endtrans %}</span>
</div>
<div class="field">
<label for="id_captcha">captcha</label>
{{ form.captcha }}
<span class="help">{% trans %}please let us know you're not a robot. i'm scared of robots!{% endtrans %}</span>
</div>
<div class="field">
<div class="checkbox">
{{ form.check }}
<label for="id_check">
{% with terms_url=url('terms'), privacy_url=url('privacy') %}
{% trans %}
i agree to the <a href="{{ terms_url }}" target="_blank" rel="noreferrer">terms of use</a> and <a href="{{ privacy_url }}" target="_blank" rel="noreferrer">privacy policy</a>.
{% endtrans %}
{% endwith %}
</label>
</div>
</div>
<button type="submit">{% trans %}sign up!{% endtrans %}</button>
</form>
</div>
{% endblock content %}