misuzu/templates/manage/forum/listing.twig

34 lines
1.3 KiB
Twig
Raw Normal View History

2022-09-13 13:14:49 +00:00
{% extends 'manage/users/master.twig' %}
{% from 'macros.twig' import container_title %}
{% from 'manage/macros.twig' import permissions_table %}
{% block manage_content %}
<div class="container container--lazy">
2023-08-28 01:17:34 +00:00
{{ container_title('<i class="fas fa-calculator fa-fw"></i> Permission Calculator') }}
2022-09-13 13:14:49 +00:00
Remove this when the permission manager exists.
{% if calculated_perms is defined %}
<table border="1">
2023-08-30 22:37:21 +00:00
<tr>
<th style="padding: 2px 5px;">Category</th>
<th style="padding: 2px 5px;">Allow</th>
<th style="padding: 2px 5px;">Deny</th>
</tr>
2022-09-13 13:14:49 +00:00
{% for key, value in calculated_perms %}
<tr>
2023-08-30 22:37:21 +00:00
<th style="padding: 2px 5px;">{{ key }}</th>
<td style="padding: 2px 5px;"><code>{{ value.allow }}</code></td>
<td style="padding: 2px 5px;"><code>{{ value.deny }}</code></td>
2022-09-13 13:14:49 +00:00
</tr>
{% endfor %}
</table>
{% endif %}
<form method="post" action="">
2023-08-30 22:37:21 +00:00
{{ permissions_table(perms_lists, perms_infos) }}
2022-09-13 13:14:49 +00:00
<button class="input__button">Calculate</button>
</form>
</div>
{% endblock %}