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 bulk actions to POIs and events #1105

Merged
merged 1 commit into from
Jan 20, 2022
Merged

Add bulk actions to POIs and events #1105

merged 1 commit into from
Jan 20, 2022

Conversation

JoeyStk
Copy link
Contributor

@JoeyStk JoeyStk commented Jan 18, 2022

Short description

Add checkboxes to pois and events, add option to auto translate

Proposed changes

Add the dropdown from posts to events and pois using the existing bulk action template.

  • add the bulk action template
  • add the dropdown to select multiple events
  • add an option to auto translate the selected events

Resolved issues

Fixes: #1103

Addition information

This is part of the project for Johannes' final exam.

@JoeyStk JoeyStk added this to the Version 1.1 milestone Jan 18, 2022
@JoeyStk JoeyStk requested a review from a team January 18, 2022 14:16
Copy link
Member

@ulliholtgrave ulliholtgrave left a comment

Choose a reason for hiding this comment

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

grafik
I like the first steps regarding your solution, but besides my direct code comment, I would like you to align the checkboxes and align the selection of displayed items to the right :)

integreat_cms/cms/views/pois/poi_actions.py Outdated Show resolved Hide resolved
@JoeyStk JoeyStk force-pushed the feature/bulk_action branch 2 times, most recently from 3c582b4 to 9a2e8f3 Compare January 19, 2022 14:17
Copy link
Member

@timobrembeck timobrembeck left a comment

Choose a reason for hiding this comment

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

Thanks! 🚀
See my comments below for a few minor improvements.
One additional problem I noticed: The bulk action form interferes with the duplication forms for events, I'm afraid we have to find some workaround for this. In theory, I don't think nested forms are allowed in HTML 😒

integreat_cms/cms/templates/events/event_list.html Outdated Show resolved Hide resolved
integreat_cms/cms/templates/events/event_list_row.html Outdated Show resolved Hide resolved
integreat_cms/cms/templates/events/event_list.html Outdated Show resolved Hide resolved
integreat_cms/cms/templates/events/event_list_row.html Outdated Show resolved Hide resolved
integreat_cms/cms/templates/pois/poi_list_row.html Outdated Show resolved Hide resolved
integreat_cms/cms/templates/events/event_list_row.html Outdated Show resolved Hide resolved
@JoeyStk JoeyStk force-pushed the feature/bulk_action branch 3 times, most recently from f5a55c3 to 0ad4aa2 Compare January 19, 2022 14:44
@digitalfabrik digitalfabrik deleted a comment from timobrembeck Jan 19, 2022
Copy link
Member

@timobrembeck timobrembeck left a comment

Choose a reason for hiding this comment

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

Thanks! I still don't think the spacing looks consistent yet, so I added a few more suggestions.

integreat_cms/cms/templates/events/event_list_row.html Outdated Show resolved Hide resolved
integreat_cms/cms/templates/events/event_list_row.html Outdated Show resolved Hide resolved
integreat_cms/cms/templates/events/event_list.html Outdated Show resolved Hide resolved
integreat_cms/cms/templates/events/event_list.html Outdated Show resolved Hide resolved
integreat_cms/cms/templates/events/event_list.html Outdated Show resolved Hide resolved
integreat_cms/cms/templates/pois/poi_list.html Outdated Show resolved Hide resolved
integreat_cms/cms/templates/pois/poi_list.html Outdated Show resolved Hide resolved
integreat_cms/cms/templates/events/event_list.html Outdated Show resolved Hide resolved
integreat_cms/cms/templates/events/event_list.html Outdated Show resolved Hide resolved
integreat_cms/cms/templates/events/event_list_row.html Outdated Show resolved Hide resolved
Co-authored-by: Timo Ludwig <ludwig@integreat-app.de>
Copy link
Member

@timobrembeck timobrembeck left a comment

Choose a reason for hiding this comment

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

Thanks a lot, I think this is ready to be merged now! 🎉

@timobrembeck timobrembeck changed the title Add checkboxes to pois and events, add option to auto translate Add bulk actions to POIs and events Jan 20, 2022
@timobrembeck
Copy link
Member

@ulliholtgrave I think you have to approve as well, or at least somehow delete your "changes requested" status in order for this PR to be merged ;)

Copy link
Member

@ulliholtgrave ulliholtgrave left a comment

Choose a reason for hiding this comment

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

Looks fine now! :)

@JoeyStk JoeyStk merged commit 39aa355 into develop Jan 20, 2022
@JoeyStk JoeyStk deleted the feature/bulk_action branch January 20, 2022 11:42
@timobrembeck timobrembeck modified the milestones: Version 1.1, Version 1.0 Feb 11, 2022
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.

Add dropdown in order to execute bulk actions in events
3 participants