mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 13:29:48 -04:00
Merge pull request #2856 from alphagov/edit-members-who-see-folder
Edit members who see folder
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{% from "components/select-input.html" import select_nested %}
|
||||
{% from "components/select-input.html" import select_nested, select %}
|
||||
|
||||
{% macro checkbox(
|
||||
field,
|
||||
@@ -20,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 %}
|
||||
|
||||
|
||||
@@ -39,17 +44,3 @@
|
||||
<label></label>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro checkbox_group(
|
||||
legend,
|
||||
fields
|
||||
) %}
|
||||
<fieldset class="form-group">
|
||||
<legend class="form-label">
|
||||
{{ legend }}
|
||||
</legend>
|
||||
{% for field in fields %}
|
||||
{{ checkbox(field) }}
|
||||
{% endfor %}
|
||||
</fieldset>
|
||||
{% endmacro %}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{% extends "withnav_template.html" %}
|
||||
{% from "components/folder-path.html" import folder_path, page_title_folder_path %}
|
||||
{% from "components/textbox.html" import textbox %}
|
||||
{% from "components/checkbox.html" import checkbox, checkboxes %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/form.html" import form_wrapper %}
|
||||
|
||||
@@ -23,6 +24,10 @@
|
||||
|
||||
{% call form_wrapper(action=url_for('main.manage_template_folder', service_id=current_service.id, template_folder_id=template_folder_id)) %}
|
||||
{{ textbox(form.name) }}
|
||||
{% if current_service.has_permission("edit_folder_permissions") %}
|
||||
{{ checkboxes(form.users_with_permission) }}
|
||||
{% endif %}
|
||||
|
||||
{{ page_footer(
|
||||
'Save',
|
||||
delete_link=url_for(
|
||||
|
||||
Reference in New Issue
Block a user