Plume/templates/users/new.html.tera

23 lines
1006 B
Plaintext
Raw Normal View History

2018-05-09 17:53:12 +00:00
{% extends "base" %}
{% import "macros" as macros %}
2018-04-22 18:13:12 +00:00
2018-05-09 17:53:12 +00:00
{% block title %}
2018-06-17 15:26:15 +00:00
{{ "New Account" | _ }}
2018-05-09 17:53:12 +00:00
{% endblock title %}
2018-04-22 18:13:12 +00:00
2018-05-09 17:53:12 +00:00
{% block content %}
{% if enabled %}
<h1>{{ "Create an account" | _ }}</h1>
<form method="post">
{{ macros::input(name="username", label="Username", errors=errors, form=form, props='minlenght="1"') }}
{{ macros::input(name="email", label="Email", errors=errors, form=form, type="email") }}
{{ macros::input(name="password", label="Password", errors=errors, form=form, type="password", props='minlenght="8"') }}
{{ macros::input(name="password_confirmation", label="Password confirmation", errors=errors, form=form, type="password", props='minlenght="8"') }}
2018-05-09 17:53:12 +00:00
<input type="submit" value="{{ "Create account" | _ }}" />
</form>
{% else %}
<p class="center">{{ "Sorry, but registrations are closed on this instance. Try to find another one" | _ }}</p>
{% endif %}
2018-05-09 17:53:12 +00:00
{% endblock content %}