Skip to content
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

Add center and station filters for filtering final results by center and station. #360

Closed
6 tasks done
JohnMwashuma opened this issue Apr 4, 2023 · 0 comments · Fixed by #376
Closed
6 tasks done

Comments

@JohnMwashuma
Copy link
Member

JohnMwashuma commented Apr 4, 2023

Task check list


  • Add a filtering section on the form results template for filtering results by center and station. Inside the filtering section create the following components:
    • A multiple select drop-down list of centers and stations.
    • An Apply button with some guidance text that says Filter results by center(s) and station(s).
  • Create an on-change event listener for the centers select list similar to this that will be used to auto select the stations id's that belong to the selected centers. The on-change listener makes an Ajax request to this get_centers_stations function that retrieves a center's station id's.
  • Create an on-click event listener for the Apply button similar to this that will be used to send an Ajax request to this django view for filtering the results by the selected center and station id. Ignore the else block in this implementation.
  • Update the Django view filter_queryset method that filters results, to also filter results by selected center and station when available.

Related to


#357

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants