2020-12-04 23:05:10 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("Register") }}
|
2020-12-04 23:05:10 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% from "macros/forms.html" import render_field, render_checkbox_field, render_submit_field %}
|
|
|
|
|
2023-08-22 20:58:43 +02:00
|
|
|
<div class="card w-50 text-start" style="margin: 2em auto;">
|
2022-01-08 00:27:00 +01:00
|
|
|
<h2 class="card-header">{{ self.title() }}</h2>
|
2020-12-04 23:05:10 +01:00
|
|
|
|
|
|
|
<form action="" method="POST" class="form card-body" role="form">
|
|
|
|
{{ form.hidden_tag() }}
|
|
|
|
|
2021-03-02 23:36:21 +01:00
|
|
|
{{ render_field(form.username, pattern="[a-zA-Z0-9._-]+", title=_("Only a-zA-Z0-9._ allowed"),
|
2021-02-27 20:03:52 +01:00
|
|
|
hint=_("Only alphanumeric characters, periods, underscores, and minuses are allowed (a-zA-Z0-9._)")) }}
|
|
|
|
|
|
|
|
{{ render_field(form.display_name,
|
|
|
|
hint=_("Human readable name, defaults to username if not specified. This can be changed later."),
|
|
|
|
placeholder=_("Same as username")) }}
|
|
|
|
|
|
|
|
{{ render_field(form.email,
|
|
|
|
hint=_("Your email is needed to recover your account if you forget your password and to send (configurable) notifications. ") +
|
|
|
|
_("Your email will never be shared with a third-party.")) }}
|
|
|
|
|
2023-08-26 15:54:58 +02:00
|
|
|
{{ render_field(form.password, hint=_("Must be at least 12 characters long.")) }}
|
2020-12-04 23:05:10 +01:00
|
|
|
|
2021-04-17 03:08:54 +02:00
|
|
|
<p>
|
|
|
|
<img src="/static/puzzle.png" />
|
|
|
|
</p>
|
|
|
|
{{ render_field(form.question, hint=_("Please prove that you are human")) }}
|
|
|
|
|
2021-02-27 20:03:52 +01:00
|
|
|
{% set label %}
|
|
|
|
{{ _("I agree to the ") }}
|
|
|
|
<a href="{{ url_for('flatpage', path='privacy_policy') }} ">
|
|
|
|
{{ _("Privacy Policy") }}
|
|
|
|
</a>
|
|
|
|
{% endset %}
|
|
|
|
{{ render_checkbox_field(form.agree, label=label, class_="my-4") }}
|
2020-12-05 19:47:26 +01:00
|
|
|
|
2020-12-04 23:05:10 +01:00
|
|
|
{# Submit button #}
|
|
|
|
<p>
|
|
|
|
{{ render_submit_field(form.submit, tabindex=180) }}
|
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|