Added an checkbox to change all operations of a permission.

This commit is contained in:
Jan Böhmer 2019-09-11 16:46:59 +02:00
parent ac302ab16a
commit 35dd1fabc0
3 changed files with 36 additions and 1 deletions

View file

@ -1,7 +1,21 @@
{% block permission_row %}
<tr>
<td>
<b>{{ form.vars.label | trans }}</b>
{% if multi_checkbox %}
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input tristate permission_multicheckbox" id="mulit_check_{{ form.vars.label }}">
<label class="custom-control-label" for="mulit_check_{{ form.vars.label }}">
<b>{{ form.vars.label | trans }}</b>
</label>
</div>
{% else %}
<b>{{ form.vars.label | trans }}</b>
{% endif %}
{# #}
{{ form_errors(form) }}
</td>
<td>