Show all users in folder viewing permissions, correct users checked

This commit is contained in:
Pea Tyczynska
2019-03-18 16:12:12 +00:00
parent e85969f6fa
commit 86d8464fa2
4 changed files with 21 additions and 35 deletions

View File

@@ -1,13 +1,12 @@
{% from "components/select-input.html" import select_nested %}
{% from "components/select-input.html" import select_nested, select %}
{% macro checkbox(
field,
hint=False,
width='2-3',
value='y'
width='2-3'
) %}
<div class="multiple-choice">
{{ checkbox_input(field.id, field.name, field.data, value) }}
{{ checkbox_input(field.id, field.name, field.data) }}
<label for="{{ field.id }}">
{{ field.label.text }}
{% if hint %}
@@ -21,7 +20,12 @@
{% macro checkboxes_nested(field, child_map, hint=None, disable=[], option_hints={}, hide_legend=False) %}
{{ select_nested(field, child_map, hint=None, disable=[], option_hints={}, hide_legend=False, input="checkbox") }}
{{ select_nested(field, child_map, hint, disable, option_hints, hide_legend, input="checkbox") }}
{% endmacro %}
{% macro checkboxes(field, hint=None, disable=[], option_hints={}, hide_legend=False) %}
{{ select(field, hint, disable, option_hints, hide_legend, input="checkbox") }}
{% endmacro %}
@@ -40,20 +44,3 @@
<label></label>
</div>
{% endmacro %}
{% macro checkbox_group(
legend,
fields,
set_value=False
) %}
<fieldset class="form-group">
<legend class="form-label">
{{ legend }}
</legend>
{% if set_value %}
{% for field in fields %}
{{ checkbox(field, value=field.data) }}
{% endfor %}
{% endif %}
</fieldset>
{% endmacro %}