Project

General

Profile

Actions

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 over 8 years ago.

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

100%

Estimated time:
Plus Target Version:
Release Notes:

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.

Actions #1

Updated by Renato Botelho almost 9 years ago

  • Project changed from Bootstrap to pfSense
Actions #2

Updated by Anonymous over 8 years ago

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

Actions #3

Updated by Anonymous over 8 years ago

  • % Done changed from 0 to 100
Actions #4

Updated by Jim Pingle over 8 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)

Actions #5

Updated by Jim Pingle over 8 years ago

  • Assignee changed from Jim Pingle to Anonymous
Actions #6

Updated by Anonymous over 8 years ago

Done

Actions #7

Updated by Anonymous over 8 years ago

  • Status changed from Assigned to Feedback
  • Assignee changed from Anonymous to Jim Pingle
Actions #8

Updated by Jim Pingle over 8 years ago

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

Actions #9

Updated by Jim Pingle over 8 years ago

  • Status changed from Assigned to Resolved

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

Actions

Also available in: Atom PDF