prev work
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user