Closed AnthonMS closed 5 years ago
I have fixed this by creating my own filter function. The list that is displayed is the filtered list. When search term is empty all users are in the filtered list. You can then search by name, email or phone number. It will display. I am thinking maybe making it so it seperated the search string at spaces and checks the three fields for any, so the user can search both name and phone.
I tried making it so it split the string at spaces and went throught them. But it gave all sort of bugs. Like when you just hit space, it is an empty string, so everyone is displayed. If you search for Anthon S, everyone with the name Anthon AND everyone with the letter S in either name or email, would show up in the list. And for some reason if you searched specific names, it would show two of them in the list.
Time Estimate: 6 Hours We want the search bar in the userlist to be on top of the list. Maybe put a page selection at the top as well as the bottom.
With this, we also want an advanced search. This is going to be a collapsable div, it is going to be a button next to the search button. This will expand a container, which holds input fields for phone and email.