-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create component "filter by section" #286
Comments
Regarding this point:
We hope it's possible to "gray out" the "Filter By Date" component, rather than hide it. |
* update form markup * rename classnames and IDs in forms for filters, main search form, navigation search form and main search button * create sidebar markup * create reset filters button * add event listeners to all search buttons
* refactor code into template include file * remove „filter volumes“ code from search landing page and move into seperate include file „_filte-volumes.html“ * add styling to sections list: move sub-sections to the right like a nested list
* remove the main search button from section form * encapsule sections filters into seperate form and move it to the include * add event listener to main search button and trigger submission of section filters, when button is clicked
* add attribute checked to the input * add parameter $scope to map, to process a distinction of the search scope
as it is currently handled in search.xqm already.
* restructure markup: Un-nest the input from its wrapping label, which was not accessible and put it on the same level * connect label and input by adding „label for“ and „input id“ attributes * therefore, modularize and restructure template functions
* rename functions according to their updated tasks * delete markup entirely from template functions * move markup to template instead * update comment headers in functions * remove obsolete comments
* if entire search is checked, all other options are unchecked * if any of the sections is checked, entire search is unchecked * if all sections are selected, all will be unchecked and entire search will be checked again
Update: Changed the layout according to https://standards.usa.gov/components/form-controls/#checkboxes |
Looks like we're done here, we'll test it a bit more and then close if everything's okay |
Looks like I had some hiccups with my local instance yesterday. Closing. |
a. Option "Entire Office of The Historian Website"
b. Option Group with all Website Sections as a list
Component in search page:

Component in results page:

Update: from #284 (comment)
URL: https://history.state.gov/search
Template:
pages/search/index.html
Parent: #284
Dependent on: #287
The text was updated successfully, but these errors were encountered: