Project

General

Profile

Feature #5049

Add search capability to Multi-select for privileges and perhaps other places it makes sense.

Added by Jim Pingle almost 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
-
Target version:
Start date:
08/28/2015
Due date:
% Done:

100%

Estimated time:

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.

Associated revisions

History

#1 Updated by Renato Botelho almost 4 years ago

  • Project changed from Bootstrap to pfSense

#2 Updated by Steve Beaver over 3 years ago

  • Status changed from Assigned to Feedback
  • Assignee changed from Steve Beaver 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.

#3 Updated by Steve Beaver over 3 years ago

  • % Done changed from 0 to 100

#4 Updated by Jim Pingle over 3 years ago

  • 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)

#5 Updated by Jim Pingle over 3 years ago

  • Assignee changed from Jim Pingle to Steve Beaver

#6 Updated by Steve Beaver over 3 years ago

Done

#7 Updated by Steve Beaver over 3 years ago

  • Status changed from Assigned to Feedback
  • Assignee changed from Steve Beaver to Jim Pingle

#8 Updated by Jim Pingle over 3 years ago

  • Status changed from Feedback to Assigned
  • Assignee changed from Jim Pingle to Steve Beaver

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.

#9 Updated by Jim Pingle over 3 years ago

  • Status changed from Assigned to Resolved

Tested with the latest fixes and it works fine, closing, thanks!

Also available in: Atom PDF