mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Add govukCollapsibleNestedCheckboxesField
Includes:
1. changes to make NestedFieldMixin work
with new fields and CSS for nested checkboxes
2. adds custom version of GOVUK checkboxes
component to allow us to:
- add classes to elements currently inaccessible
- wrap the checkboxes in a list
- add child checkboxes to each checkbox (making
tree structures possible through recursion
Change 2. should be pushed upstream to the GOVUK
Design System as a proposal for changes to the
GOVUK Checkboxes component.
This commit is contained in:
4
app/templates/forms/fields/checkboxes/macro.njk
Normal file
4
app/templates/forms/fields/checkboxes/macro.njk
Normal file
@@ -0,0 +1,4 @@
|
||||
{%- macro govukCheckboxes(params) %}
|
||||
{%- include "./template.njk" -%}
|
||||
{%- endmacro %}
|
||||
{{ govukCheckboxes(params) }}
|
||||
Reference in New Issue
Block a user