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

Inline filter forms #817

Merged
merged 21 commits into from
May 30, 2023
Merged

Inline filter forms #817

merged 21 commits into from
May 30, 2023

Conversation

caseyhans
Copy link
Collaborator

@caseyhans caseyhans commented Apr 26, 2023

Adds inline and expandable filter forms, lifted from previous work on LLR/HERO.

Before:

  • Collapsed
    image

  • Expanded
    image

After:

  • Collapsed
    image

  • Expanded
    image

@shapiromatron shapiromatron self-requested a review May 8, 2023 22:34
@shapiromatron
Copy link
Owner

shapiromatron commented May 25, 2023

@casey1173 I'll review today - would you like to make the edits to use the updated version beforehand?

@caseyhans
Copy link
Collaborator Author

@casey1173 I'll review today - would you like to make the edits to use the updated version beforehand?

yeah sure!

Copy link
Owner

@shapiromatron shapiromatron left a comment

Choose a reason for hiding this comment

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

A couple thoughts from looking through things, generally wondering if we can mirror the django CBV concepts

Copy link
Owner

@shapiromatron shapiromatron left a comment

Choose a reason for hiding this comment

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

A couple thoughts from looking through things, generally wondering if we can mirror the django CBV concepts

@caseyhans caseyhans requested a review from shapiromatron May 25, 2023 22:51
Copy link
Owner

@shapiromatron shapiromatron left a comment

Choose a reason for hiding this comment

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

Looks great! Excited to get this in and update our existing forms to these nice inline ones.

@@ -102,6 +102,16 @@ def get_queryset(self):
.order_by("study__short_citation", "type")
)

def get_filterset_form_kwargs(self):
Copy link
Owner

Choose a reason for hiding this comment

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

nice example of the benefits of they dynamic fields

@caseyhans caseyhans merged commit 5295f2c into main May 30, 2023
@caseyhans caseyhans deleted the inline-filter-forms branch May 30, 2023 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants