fixmystreet
fixmystreet copied to clipboard
Allow selection of all a group's categories
The filter on a map page (around or all reports) lists all the categories, now grouped by group if groups are in use, but there's no way to select all the categories in a particular group at once. Perhaps using jquery-multi-select group options (they'd all appear at the top, which might be nice?)
I have a related, but easier issue I'd like to solve (commenting here because I'm not sure if I should create a separate issue or try to tackle this one).
We would like to more easily select all categories except one (or a few). So it would be nice if by clicking "All", all checkboxes were selected, and then the user can deselect a few (like how the status selection works).
I have a naïve fix for this by just setting the data-all-options attribute in the select for categories, similar to how it's done for the status filter.
However seeing this issue I'm thinking maybe you wouldn't want that patch? I could try to implement a more complete fix with presets both for all and groups. I guess from your description above it's still not decided how it should work though..?
By the way, I'm not sure how to easily test category groups. I didn't see any way to configure category groups in the admin interface, is it only for groups configured through Open 311?
Thanks!
Nevermind the last question about testing category groups, I found an explanation on the mailing list, I'll try that!
Created a PR for just my (simpler) problem for now, in case you want it.