2023-02-09 17:08:07 +01:00
|
|
|
{% extends "base" %}
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<table class="u-full-width">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Name</th>
|
2023-02-16 11:26:41 +01:00
|
|
|
<th>Pw</th>
|
2023-03-23 11:13:19 +01:00
|
|
|
<th>Add Different User</th>
|
2023-02-09 17:08:07 +01:00
|
|
|
<th>Cox</th>
|
|
|
|
<th>Admin</th>
|
|
|
|
<th>Action</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for user in users %}
|
|
|
|
<tr>
|
|
|
|
<form action="/user/{{ user.id }}" method="post">
|
|
|
|
<input type="hidden" name="_method" value="put" />
|
|
|
|
<td>{{user.name}}</td>
|
2023-02-16 11:26:41 +01:00
|
|
|
<td>
|
|
|
|
{% if user.pw %}
|
|
|
|
<input type="checkbox" checked disabled>
|
|
|
|
{% endif %}
|
|
|
|
<input type="password" name="pw" />
|
|
|
|
</td>
|
2023-03-23 11:13:19 +01:00
|
|
|
<td>
|
|
|
|
<input type="checkbox" name="add_different_user" {% if user.add_different_user %} checked="true"{% endif %}
|
|
|
|
</td>
|
2023-02-09 17:08:07 +01:00
|
|
|
<td>
|
|
|
|
<input type="checkbox" name="is_cox" {% if user.is_cox %} checked="true"{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" name="is_admin" {% if user.is_admin %} checked="true"{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input class="button-primary" type="submit" value="Speichern">
|
|
|
|
</td>
|
|
|
|
</form>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{% endblock content %}
|
|
|
|
|