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">
|
|
|
|
{% 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 %}
|