mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-27 11:54:19 +00:00
65 lines
2.7 KiB
Django/Jinja
65 lines
2.7 KiB
Django/Jinja
{% extends "limited_width.html.j2" %}
|
|
|
|
{% block page_content %}
|
|
<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">
|
|
{{ edit_user_form.hidden_tag() }}
|
|
<div class="input-field ">
|
|
<i class="material-icons prefix">account_circle</i>
|
|
{{ edit_user_form.username() }}
|
|
{{ edit_user_form.username.label }}
|
|
{% for error in edit_user_form.username.errors %}
|
|
<span class="helper-text red-text">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
<div class="input-field">
|
|
<i class="material-icons prefix">mail</i>
|
|
{{ edit_user_form.email() }}
|
|
{{ edit_user_form.email.label }}
|
|
{% for error in edit_user_form.email.errors %}
|
|
<span class="helper-text red-text">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
<div class="input-field">
|
|
<i class="material-icons prefix">swap_vert</i>
|
|
{{ edit_user_form.role() }}
|
|
{{ edit_user_form.role.label }}
|
|
{% for error in edit_user_form.role.errors %}
|
|
<span class="helper-text red-text">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
<div class="switch">
|
|
<i class="material-icons prefix">check</i>
|
|
<label class="active" for="{{ edit_user_form.confirmed.name }}">
|
|
Confirmed status:
|
|
Off
|
|
{% 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 %}
|
|
<input type="checkbox" id="{{ edit_user_form.confirmed.name }}" name="{{ edit_user_form.confirmed.name }}">
|
|
{% endif %}
|
|
<span class="lever"></span>
|
|
On
|
|
</label>
|
|
{% for error in edit_user_form.confirmed.errors %}
|
|
<span class="helper-text red-text">{{ error }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<div class="card-action right-align">
|
|
<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 %}
|