2020-12-04 23:05:10 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
Register
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% from "macros/forms.html" import render_field, render_checkbox_field, render_submit_field %}
|
|
|
|
|
2021-02-23 00:45:20 +01:00
|
|
|
<div class="card w-50 text-left" style="margin: 2em auto;">
|
2020-12-04 23:05:10 +01:00
|
|
|
<h2 class="card-header">{{ _("Register") }}</h2>
|
|
|
|
|
|
|
|
<form action="" method="POST" class="form card-body" role="form">
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
|
2021-02-23 00:45:20 +01:00
|
|
|
{{ render_field(form.username, pattern="[a-zA-Z0-9._ -]+", title="Only a-zA-Z0-9._ allowed") }}
|
2020-12-04 23:05:10 +01:00
|
|
|
{{ render_field(form.email) }}
|
|
|
|
{{ render_field(form.password) }}
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Must be at least 8 characters long.
|
|
|
|
</p>
|
2020-12-05 01:01:36 +01:00
|
|
|
<p>
|
|
|
|
Password suggestion
|
|
|
|
(<a href="https://xkcd.com/936/">Why?</a>):
|
|
|
|
<code>{{ suggested_password }}</code>
|
|
|
|
</p>
|
2020-12-04 23:05:10 +01:00
|
|
|
|
2020-12-05 19:47:26 +01:00
|
|
|
<p>
|
|
|
|
Please read the <a href="{{ url_for('flatpage', path='privacy_policy') }}">{{ _("Privacy Policy") }}</a>.
|
|
|
|
</p>
|
|
|
|
|
2020-12-04 23:05:10 +01:00
|
|
|
{# Submit button #}
|
|
|
|
<p>
|
|
|
|
{{ render_submit_field(form.submit, tabindex=180) }}
|
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|