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

Implement bulk actions for form submissions / responses - form builder #8182

Open
lb- opened this issue Mar 21, 2022 · 8 comments · May be fixed by #11847
Open

Implement bulk actions for form submissions / responses - form builder #8182

lb- opened this issue Mar 21, 2022 · 8 comments · May be fixed by #11847

Comments

@lb-
Copy link
Member

lb- commented Mar 21, 2022

Is your proposal related to a problem?

  • Bulk actions was released in Wagtail 2.15
  • This supports Page, User, Image and Document models
  • However, it would be great to have this also support Form Responses
  • Initially this would be a layout change to match other content, however the main benefit is extending behaviour through custom bulk actions.

Describe the solution you'd like

Describe alternatives you've considered

  • Advising users to be aware that the UI is different in form builder.
  • Building additional custom actions or buttons through customisations.

Additional context

Screenshot of form responses checkbox (2.16)

Screen Shot 2022-03-21 at 8 01 42 pm

Screenshot of document listing bulk actions for comparison

What’s New in Wagtail 5 - 2 15 Features (DRAFT)

@lb-
Copy link
Member Author

lb- commented Mar 21, 2022

Flagging as a good first issue as this should hopefully be a matter of investigating existing code (documents listing would be best) and seeing how to implement the same in the form submissions listing.

Unlike #8183 there is no need to work out how to deal with the other buttons on hover.

@PaarthAgarwal
Copy link
Member

I'll give it a shot

@PaarthAgarwal
Copy link
Member

@lb- help to get started on it, please.

@zerolab
Copy link
Contributor

zerolab commented Mar 24, 2022

@PaarthAgarwal I suggest starting with https://docs.wagtail.org/en/stable/extending/custom_bulk_actions.html

@lb-
Copy link
Member Author

lb- commented Mar 24, 2022

Have a look at how the bulk actions is built for documents, read through all the files in wagtail/documents/views/bulk_actions and wagtail/admin/templates/wagtailadmin/bulk_actions to get a feel for the code and the templates used.

@vibhuti019
Copy link

vibhuti019 commented Apr 3, 2022

We will have to create only the deleting action?

@lb-
Copy link
Member Author

lb- commented Apr 3, 2022

We will have to create only the deleting action?

Currently form submissions only support deletion, so that is all that would be needed for resolving this issue.

There are discussions about adding other actions (such as archive - #8180 ) but that would not be in scope of this issue, just good to be aware of.

@vibhuti019
Copy link

I am working on this one

lb- pushed a commit to KIRA009/wagtail that referenced this issue May 25, 2022
docs(snippet_bulk_actions): Add docs for creating new bulk actions for snippets
resolves wagtail#8182
lb- pushed a commit to KIRA009/wagtail that referenced this issue May 25, 2022
docs(snippet_bulk_actions): Add docs for creating new bulk actions for snippets
resolves wagtail#8182
laymonage pushed a commit to laymonage/wagtail that referenced this issue Jun 6, 2022
docs(snippet_bulk_actions): Add docs for creating new bulk actions for snippets
resolves wagtail#8182
KIRA009 added a commit to KIRA009/wagtail that referenced this issue Jun 7, 2022
docs(snippet_bulk_actions): Add docs for creating new bulk actions for snippets
resolves wagtail#8182
laymonage pushed a commit to laymonage/wagtail that referenced this issue Jun 9, 2022
docs(snippet_bulk_actions): Add docs for creating new bulk actions for snippets
resolves wagtail#8182
laymonage pushed a commit to laymonage/wagtail that referenced this issue Jun 10, 2022
docs(snippet_bulk_actions): Add docs for creating new bulk actions for snippets
resolves wagtail#8182
laymonage pushed a commit to laymonage/wagtail that referenced this issue Jun 22, 2022
docs(snippet_bulk_actions): Add docs for creating new bulk actions for snippets
resolves wagtail#8182
laymonage pushed a commit to laymonage/wagtail that referenced this issue Jun 23, 2022
docs(snippet_bulk_actions): Add docs for creating new bulk actions for snippets
resolves wagtail#8182
laymonage pushed a commit to laymonage/wagtail that referenced this issue Jun 27, 2022
docs(snippet_bulk_actions): Add docs for creating new bulk actions for snippets
resolves wagtail#8182
laymonage pushed a commit to laymonage/wagtail that referenced this issue Jun 28, 2022
docs(snippet_bulk_actions): Add docs for creating new bulk actions for snippets
resolves wagtail#8182
laymonage pushed a commit to laymonage/wagtail that referenced this issue Jun 29, 2022
docs(snippet_bulk_actions): Add docs for creating new bulk actions for snippets
resolves wagtail#8182
KIRA009 added a commit to KIRA009/wagtail that referenced this issue Jul 7, 2022
docs(snippet_bulk_actions): Add docs for creating new bulk actions for snippets
resolves wagtail#8182
@rohitsrma rohitsrma linked a pull request Apr 13, 2024 that will close this issue
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.

4 participants