ventilaar
/
twitter_zuil
Archived
1
Fork 0
This repository has been archived on 2021-06-10. You can view files and clone it, but cannot push or open issues or pull requests.
twitter_zuil/templates/moderators.html

64 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Moderators</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"/>
</head>
<body>
{% include 'navbar_template.html' %}
{% include 'flash_template.html' %}
<h1>List of moderators</h1>
<p>Er zijn momenteel {{ moderatorcount }} moderators in het systeem</p>
<table style="width:100%">
<tr>
<th>Moderator ID</th>
<th>Username</th>
<th>Hashed Password</th>
<th>May login</th>
<th>Last seen</th>
</tr>
{% for row in moderators %}
<tr style="text-align: center;">
<td>{{ row[0] }}</td>
<td>{{ row[1] }}</td>
<td>{{ row[2] }}</td>
<td>{{ row[3] }}</td>
<td>{{ row[4] }}</td>
<td>
<form method="POST" action="/moderators/removemoderator">
<button type="submit" name="delete" value="{{ row[0] }}">Delete</button>
</form>
</td>
</tr>
{% endfor %}
</table>
<form>
<label for="maxitems">Max items in table:</label>
<select name="maxitems" id="maxitems">
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
<label for="pagenum">Table page:</label>
<select name="pagenum" id="pagenum">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<button type="submit">Refresh table</button>
</form>
<h3>Add new moderator</h3>
<form method="POST" action="/moderators/addmoderator">
<input type="text" placeholder="Username" name="uname" required>
<input type="password" placeholder="Password" name="pword" required>
<input type="password" placeholder="Password again" name="pword2" required>
<button type="submit">Add</button>
</form>
</body>
</html>