I currently have a search field on a map to search for the address. We would like to keep that, but then also have a toggle button on it that would allow searching for name..So basically,
Default is that it searches for the address just like it currently does, then when a toggle button is pressed the search field now is for name and looks in the database for names. (working on a design mock, but basically it will be a button that can toggle the search field between address/name.)
If a full name (John Jones) is searched for and there is a name found it will open the lender modal with all the standard info, same as if a location is picked with only one lender.
If a single name is searched for (Steve) and there are more than 1 entry in the database, then it will open the lenderlist modal, with all the names in a list...(steve jones, steve smith, steve grant, etc....) that were found, the rest of the functionality will remain the same, scroll, click to see detailed, etc...
The top of the modal list should have something like "Search results for: Steve", instead of the address it shows right now.
This needs to be done within the next 5 days. I have attached a few mocks showing how it should look and work.
Current dev site can be viewed on.....[url removed, login to view]