You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.9 KiB
69 lines
1.9 KiB
7 months ago
|
{% extends "base/base.html" %}
|
||
3 years ago
|
{% block main %}
|
||
|
<div id="buttons">
|
||
3 years ago
|
<div class="overview">
|
||
|
<a href="/">
|
||
|
<input type="button" name="button" value="Overview"></input>
|
||
3 years ago
|
</a>
|
||
|
</div>
|
||
|
<div class="logout">
|
||
|
<a href="/logout">
|
||
|
<input type="button" name="button" value="Logout"></input>
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="maincontent">
|
||
3 years ago
|
<h2>Admin Page</h2>
|
||
|
<p>Here you can bulk delete distribusis and users or make users into tutors
|
||
|
<strong> These actions cannot be undone! </strong>
|
||
|
</p>
|
||
3 years ago
|
<div id="distribusiverse" class="maincontent">
|
||
|
<h2>List of distribusis</h2>
|
||
3 years ago
|
<form method="POST" enctype="multipart/form-data" action="{{ url_for('admin') }}">
|
||
3 years ago
|
{{ admindistribusiform.csrf_token }}
|
||
3 years ago
|
{% for distribusiform in admindistribusiform %}
|
||
|
{% if "distribusi" in distribusiform.id %}
|
||
|
<fieldset class="required">
|
||
|
{{ distribusiform }}
|
||
|
{{ distribusiform.label }}
|
||
|
{% for message in distribusiform.errors %}
|
||
|
<div class="error">{{ message }}</div>
|
||
|
{% endfor %}
|
||
|
</fieldset>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
<fieldset class="button required delete">
|
||
|
{{ admindistribusiform.delete }}
|
||
|
</fieldset>
|
||
3 years ago
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<div id="distribusiverse" class="maincontent">
|
||
|
<h2>List of users</h2>
|
||
3 years ago
|
<form method="POST" enctype="multipart/form-data" action="{{ url_for('admin') }}">
|
||
3 years ago
|
{{ adminuserform.csrf_token }}
|
||
3 years ago
|
{% for userform in adminuserform %}
|
||
|
{% if "user" in userform.id %}
|
||
|
<fieldset class="required">
|
||
|
{{ userform }}
|
||
|
{{ userform.label }}
|
||
|
{% for message in userform.errors %}
|
||
|
<div class="error">{{ message }}</div>
|
||
|
{% endfor %}
|
||
|
</fieldset>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
<fieldset class="button required">
|
||
|
{{ adminuserform.tutors }}
|
||
3 years ago
|
</fieldset>
|
||
3 years ago
|
<fieldset class="button required">
|
||
|
{{ adminuserform.nottutors }}
|
||
|
</fieldset>
|
||
3 years ago
|
<fieldset class="button required">
|
||
3 years ago
|
{{ adminuserform.delete }}
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
{% endblock %}
|