2020-02-07 14:21:59 +00:00
{% extends "nopaque.html.j2" %}
2019-09-10 11:49:01 +00:00
{% block page_content %}
2019-11-15 10:45:04 +00:00
<div class="col s12 m4">
<h3 id="title">{{ user.username }}</h3>
<p id="description">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,</p>
<a class="waves-effect waves-light btn" href="{{ url_for('admin.user', user_id=user.id) }}"><i class="material-icons left">arrow_back</i>Back to user administration</a>
</div>
2019-09-10 11:49:01 +00:00
<div class="col s12 m8">
<div class="card">
<form method="POST">
<div class="card-content">
2019-11-15 13:01:36 +00:00
{{ edit_user_form.hidden_tag() }}
2019-09-10 11:49:01 +00:00
<div class="input-field ">
<i class="material-icons prefix">account_circle</i>
2019-11-15 13:01:36 +00:00
{{ edit_user_form.username() }}
{{ edit_user_form.username.label }}
{% for error in edit_user_form.username.errors %}
2019-11-15 10:45:04 +00:00
<span class="helper-text red-text">{{ error }}</span>
2019-09-10 11:49:01 +00:00
{% endfor %}
</div>
<div class="input-field">
<i class="material-icons prefix">mail</i>
2019-11-15 13:01:36 +00:00
{{ edit_user_form.email() }}
{{ edit_user_form.email.label }}
{% for error in edit_user_form.email.errors %}
2019-11-15 10:45:04 +00:00
<span class="helper-text red-text">{{ error }}</span>
2019-09-10 11:49:01 +00:00
{% endfor %}
</div>
<div class="input-field">
<i class="material-icons prefix">swap_vert</i>
2019-11-15 13:01:36 +00:00
{{ edit_user_form.role() }}
{{ edit_user_form.role.label }}
{% for error in edit_user_form.role.errors %}
2019-11-15 10:45:04 +00:00
<span class="helper-text red-text">{{ error }}</span>
2019-09-10 11:49:01 +00:00
{% endfor %}
</div>
<div class="switch">
<i class="material-icons prefix">check</i>
2020-02-24 08:18:49 +00:00
<label>
Confirmed
{{ edit_user_form.confirmed() }}
2019-09-10 11:49:01 +00:00
<span class="lever"></span>
</label>
2019-11-15 13:01:36 +00:00
{% for error in edit_user_form.confirmed.errors %}
2019-11-15 10:45:04 +00:00
<span class="helper-text red-text">{{ error }}</span>
2019-09-10 11:49:01 +00:00
{% endfor %}
</div>
</div>
<div class="card-action right-align">
2020-02-24 08:27:02 +00:00
{{ macros.submit_button(edit_user_form.submit) }}
2019-09-10 11:49:01 +00:00
</div>
</form>
</div>
</div>
{% endblock %}