Allow nested checkboxes to be collapsible

Expands the API of the macro to allow nested
checkboxes to have a summary tracking the current
selection, the fieldset to expand/collapse and
buttons to be added to allow jumping between
states.

Includes making 'Done' button inline on mobile.
Helps differentiate it form the form submit.
This commit is contained in:
Tom Byers
2019-05-07 16:08:17 +01:00
parent 20a94910cb
commit 33d074c00a
7 changed files with 210 additions and 14 deletions

View File

@@ -95,6 +95,7 @@ const javascripts = () => {
paths.src + 'javascripts/previewPane.js',
paths.src + 'javascripts/colourPreview.js',
paths.src + 'javascripts/templateFolderForm.js',
paths.src + 'javascripts/collapsibleCheckboxes.js',
paths.src + 'javascripts/main.js'
])
.pipe(plugins.prettyerror())