misuzu/templates/manage/forum/listing.twig
2023-08-28 01:17:34 +00:00

27 lines
896 B
Twig

{% 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">
{{ container_title('<i class="fas fa-calculator fa-fw"></i> Permission Calculator') }}
Remove this when the permission manager exists.
{% if calculated_perms is defined %}
<table border="1">
{% for key, value in calculated_perms %}
<tr>
<th>{{ key }}</th>
<td><code>{{ value }}</code></td>
</tr>
{% endfor %}
</table>
{% endif %}
<form method="post" action="">
{{ permissions_table(perms) }}
<button class="input__button">Calculate</button>
</form>
</div>
{% endblock %}