Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Use Jinja blocks for flexible generic filters. #337

Merged
merged 4 commits into from
Jul 21, 2015

Conversation

jmcarp
Copy link
Contributor

@jmcarp jmcarp commented Jul 20, 2015

This is an implementation of reusable filter sidebars, as @msecret proposed, that doesn't require all filter fields to be template includes. This approach uses blocks, which are more flexible and easier to customize.

This will cause merge conflicts with #336, so if we merge this branch, I can cherry-pick the SCSS changes there, or we can resubmit #336.

@msecret
Copy link
Contributor

msecret commented Jul 20, 2015

This is great. How do you propose we deal with the merge conflict? I could remove all template changes from #336 and then commit just the CSS changes? It looks like none of the changes I made in the templates were related to the styles.

@jmcarp
Copy link
Contributor Author

jmcarp commented Jul 20, 2015

Agreed, I think reverting the non-CSS changes in #336 would work. Or we could make a new PR that only includes the CSS changes--whatever's easier.

@msecret
Copy link
Contributor

msecret commented Jul 20, 2015

I make a new PR here:

#338

There were some template changes, unfortunately. I had to create a new wrapping div with a new class.

This fixes the filter panel on mobile by creating a new component
element. It does not fix the template organization problem. This
was done to make the merge conflict in fecgov#337 easier as it's less code
that will be modified.
msecret pushed a commit to msecret/openFEC-web-app that referenced this pull request Jul 20, 2015
- Rename the UI of the pop-out from "modal" to "panel". This was renamed
because this UI will not be strictly a modal. It will act as a modal
on mobile and as a split 50% panel on tablet, up. @noahmanger, please
let me know if theres a better name.
- Change the columns around to have an arrow column at the end of the
rows.
- Make the whole row clickable to open the panel, if you click on a link
it will pass through and open the link.

This needs some of the work done in fecgov#337, fecgov#338 in order to get
expeditures working.
@msecret
Copy link
Contributor

msecret commented Jul 21, 2015

I have another fix to do on the filter panel but this looks good.

msecret pushed a commit that referenced this pull request Jul 21, 2015
Use Jinja blocks for flexible generic filters.
@msecret msecret merged commit 5cd291a into fecgov:develop Jul 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants