Feature #5049
closed
Add search capability to Multi-select for privileges and perhaps other places it makes sense.
Added by Jim Pingle about 9 years ago.
Updated almost 9 years ago.
Description
Adding a search capability to privilege selection would be a huge gain. Currently the list is extremely long and the user may not know the section/prefix under which the desired page is filed.
Good examples of similar controls at http://harvesthq.github.io/chosen/ ("Multi-Select" control) and https://select2.github.io/examples.html ("Multiple select boxes" control) though ideally the results would show in a box one per line rather than in a continuous list if possible.
If Bootstrap has a similar one built-in that would be even better.
- Project changed from Bootstrap to pfSense
- Status changed from Assigned to Feedback
- Assignee changed from Anonymous to Jim Pingle
Adding select/search capability via chosen or select2 gave formatting issues and would no longer allow dynamic help text to be provided.
I have added a simple filter box/button instead and allowed it to respond to the Enter key.
Type "Desktop" then <Enter> to see only those options containing the word Desktop. (Case insensitive)
Its not exactly what you asked for, but it is the best compromise I could come up with for a low priority wish.
- % Done changed from 0 to 100
- Status changed from Feedback to Assigned
That looks and works great, thanks!
Can that get put on the privilege editor for the Groups as well? (system_groupmanager_addprivs.php)
- Assignee changed from Jim Pingle to Anonymous
- Status changed from Assigned to Feedback
- Assignee changed from Anonymous to Jim Pingle
- Status changed from Feedback to Assigned
- Assignee changed from Jim Pingle to Anonymous
Looks good there too, though I hit a snag.
It works fine if you select just one thing, but if you select multiple it actually selects everything between the filtered options, even hidden items.
For example, make a user or group, then try to add privileges, enter "ipsec" and filter, then highlight everything, when you save, it added just about everything in the list, not just what was selected.
- Status changed from Assigned to Resolved
Tested with the latest fixes and it works fine, closing, thanks!
Also available in: Atom
PDF