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

Refactor filtering by attorney role #129

Merged

Conversation

Zoe7
Copy link
Contributor

@Zoe7 Zoe7 commented Oct 4, 2020

Same PR as #125, but the routing to the attorney page should be fixed!

The filter now works without having showing different tabs depending on the filter type. This means we can easily add new filters on top of the role, without having to add a new tab for each possible combination of the filters. 

It also allows to filter by more than one role at the time and reduce code duplication quite a bit.
<ul>
{{#each attorney in attorneys}}
<li class="col-sm-6 col-md-4 col-lg-3 single-attorney">
<a class="card" href="{{pathFor 'attorneyView' data=attorney}}">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data=attorney is the part that was missing in the previous PR

@billimarie
Copy link
Owner

Brilliant, thank you @Zoe7. Merging.

@billimarie billimarie merged commit 9e8f05b into billimarie:master Oct 4, 2020
@billimarie
Copy link
Owner

Just a quick note: I am waiting to see if anyone can help with the design of the filter (#128) before deploying to Heroku. The changes will not be live, but will be committed to the repo for eventual deployment.

@billimarie billimarie added the hacktoberfest-accepted To count toward Hacktoberfest 2020 credit label Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted To count toward Hacktoberfest 2020 credit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants