Files
baroness/app/templates/manage_users.html
2016-05-28 17:10:07 +02:00

36 lines
1.1 KiB
HTML

{% extends "base.html"%}
{% set title = "Konsumentenverwaltung" %}
{% block content %}
<h1> Konsumentenverwaltung </h1>
<table>
<tr>
<th>ID</th>
<th>Username</th>
<th>Name</th>
<th>E-mail</th>
<th>RFID-ID</th>
<th>Geschwärzt</th>
<th>Baron</th>
<th>Angezeigt</th>
<th>Auto-Schwärzen</th>
<th></th>
</tr>
{% for user in users %}
<tr>
<td>{{user.id}}</td>
<td>{{user.name}}</td>
<td>{{user.longname}}</td>
<td>{{user.email}}</td>
<td>{% if user.rfid_id %} {% for rfid_id in user.rfid_id %} {{rfid_id}};{% endfor %} {% endif %}</td>
<td>{% if user.isblack %} &#9745; {% else %} &#9744; {% endif %} </td>
<td>{% if user.isbaron %} &#9745; {% else %} &#9744; {% endif %} </td>
<td>{% if user.isshown %} &#9745; {% else %} &#9744; {% endif %} </td>
<td>{% if user.autoblack %} &#9745; {% else %} &#9744; {% endif %} </td>
<td> <a href="/manage_users/edit/{{user.name}}">bearbeiten</a></td>
</tr>
{% endfor %}
</table>
<br />
<a href=/manage_users/add><div class="item">User Hinzufügen</div></a>
{% endblock %}