2024-04-28 13:04:07 +02:00
|
|
|
{% extends "base/base.html" %}
|
2022-03-20 11:24:33 +01:00
|
|
|
{% block main %}
|
|
|
|
<div id="buttons">
|
2022-03-20 19:23:39 +01:00
|
|
|
<div class="overview">
|
|
|
|
<a href="/">
|
|
|
|
<input type="button" name="button" value="Overview"></input>
|
2022-03-20 11:24:33 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="logout">
|
|
|
|
<a href="/logout">
|
|
|
|
<input type="button" name="button" value="Logout"></input>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="maincontent">
|
2022-03-20 19:23:39 +01:00
|
|
|
<h2>Admin Page</h2>
|
2022-03-20 11:24:33 +01:00
|
|
|
<div id="distribusiverse" class="maincontent">
|
|
|
|
<h2>List of distribusis</h2>
|
2022-03-20 19:23:39 +01:00
|
|
|
<form method="POST" enctype="multipart/form-data" action="{{ url_for('admin') }}">
|
2022-03-20 11:24:33 +01:00
|
|
|
{{ admindistribusiform.csrf_token }}
|
2022-03-20 19:23:39 +01:00
|
|
|
{% 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>
|
2022-03-20 11:24:33 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="distribusiverse" class="maincontent">
|
|
|
|
<h2>List of users</h2>
|
2022-03-20 19:23:39 +01:00
|
|
|
<form method="POST" enctype="multipart/form-data" action="{{ url_for('admin') }}">
|
2022-03-20 11:24:33 +01:00
|
|
|
{{ adminuserform.csrf_token }}
|
2022-03-20 19:23:39 +01:00
|
|
|
{% 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">
|
2022-03-20 11:24:33 +01:00
|
|
|
{{ adminuserform.delete }}
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|