mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-03 13:18:57 -04:00
Show all users in folder viewing permissions, correct users checked
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user