prev work

This commit is contained in:
2025-12-25 22:29:59 +01:00
parent bced226cbd
commit d09a875488
6 changed files with 69 additions and 2 deletions

View File

@@ -74,6 +74,57 @@
{% endfor %}
</tbody>
</table>
<h3>User Permissions:</h3>
<table>
<thead>
<tr class="table-header">
<th>Username</th>
<th>Room</th>
<th>View</th>
<th>Control</th>
<th>Administer</th>
<th></th>
</tr>
<tr class="searchbar">
<td colspan="255">
<input type="text" id="permSearch" placeholder="Search by username..." onkeyup="tableSearch('permSearch', 'permlist',0)">
</td>
</tr>
</thead>
<tbody id="permlist">
{% for perm in permlist %}
<tr>
<form method="POST" action="/users">
<td> {{ perm[0] }} </td>
<td> {{ perm[1] }} </td>
<td>
<input type="checkbox" name="change-view"
{% if perm[2] %}
checked
{% else %}
{% endif %}
>
</td>
<td>
<input type="checkbox" name="change-purge"
{% if perm[3] %}
checked
{% else %}
{% endif %}
>
</td>
<td>
<input type="checkbox" name="change-administer"
{% if perm[2] %}
checked
{% else %}
{% endif %}
>
</td>
</form>
</tr>
{% endfor %}
</tbody>
{% else %}
{% endif %}