max/max/templates/user/create.html
2022-03-06 09:34:23 +01:00

55 lines
2.4 KiB
HTML

{% extends "base.html" %}
{% block content %}
<h1>{{ t("Create new user") }}</h1>
{% include "alerts.html" %}
<form id="form" class="pure-form pure-form-aligned" action="{{ url_for('user-create') }}" method="post">
<div class="pure-control-group">
<label for="email">{{ t("Email") }}</label>
<input id="email" type="email" name="email" {% if email is defined %}value="{{ email }}"{% endif %} placeholder="{{ t("Email") }}">
</div>
<div class="pure-control-group">
<label for="password1">{{ t("Password") }}</label>
<input id="password1" type="password" name="password1" {% if password is defined %}value="{{ password }}"{% endif %} placeholder="{{ t("Password") }}">
</div>
<div class="pure-control-group">
<label for="password2">{{ t("Reenter Password") }}</label>
<input id="password2" type="password" name="password2" {% if password is defined %}value="{{ password }}"{% endif %} placeholder="{{ t("Reenter Password") }}">
</div>
<div class="pure-controls checkbox">
<label for="enabled">
<input id="enabled" type="checkbox" name="enabled" {% if enabled %}checked{% endif %}>
{{ t("Enabled") }}
</label>
</div>
<div class="pure-controls checkbox">
<label for="can_receive">
<input id="can_receive" type="checkbox" name="can_receive" {% if can_receive %}checked{% endif %}>
{{ t("Can receive emails") }}
</label>
</div>
<div class="pure-controls checkbox">
<label for="is_admin">
<input id="is_admin" type="checkbox" name="is_admin" {% if is_admin %}checked{% endif %}>
{{ t("Admin") }}
</label>
</div>
<div class="pure-control-group">
<label for="note">{{ t("Note") }}</label>
<textarea id="note" name="note" form="form">{% if note is defined %}{{ note }}{% endif %}</textarea>
</div>
<div class="pure-controls">
<button type="submit" class="pure-button pure-button-primary">{{ t("Create") }}</button>
<a href="{{ url_for('user-list') }}" class="button-small pure-button">{{ t("Cancel") }}</a>
</div>
{% include "csrf.html" %}
</form>
{% endblock %}