nopaque/app/templates/admin/edit_user.html.j2

65 lines
2.7 KiB
Plaintext
Raw Normal View History

2020-02-07 14:21:59 +00:00
{% extends "nopaque.html.j2" %}
{% 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>
<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() }}
<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>
{% 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>
{% 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>
{% endfor %}
</div>
<div class="switch">
<i class="material-icons prefix">check</i>
2019-11-15 13:01:36 +00:00
<label class="active" for="{{ edit_user_form.confirmed.name }}">
Confirmed status:
Off
2019-11-15 13:01:36 +00:00
{% if edit_user_form.confirmed.data == True %}
<input type="checkbox" id="{{ edit_user_form.confirmed.name }}" name="{{ edit_user_form.confirmed.name }}" checked="checked">
{% else %}
2019-11-15 13:01:36 +00:00
<input type="checkbox" id="{{ edit_user_form.confirmed.name }}" name="{{ edit_user_form.confirmed.name }}">
{% endif %}
<span class="lever"></span>
On
</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>
{% endfor %}
</div>
</div>
<div class="card-action right-align">
2019-11-15 10:45:04 +00:00
<button class="btn waves-effect waves-light" id="submit" name="submit" type="submit">Submit<i class="material-icons right">send</i></button>
</div>
</form>
</div>
</div>
{% endblock %}