wagtail / wagtail

A Django content management system focused on flexibility and user experience
https://wagtail.org
BSD 3-Clause "New" or "Revised" License
18.36k stars 3.88k forks source link

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

Open lb- opened 2 years ago

lb- commented 2 years ago

Is your proposal related to a problem?

Describe the solution you'd like

Describe alternatives you've considered

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- commented 2 years ago

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 https://github.com/wagtail/wagtail/issues/8183 there is no need to work out how to deal with the other buttons on hover.

PaarthAgarwal commented 2 years ago

I'll give it a shot

PaarthAgarwal commented 2 years ago

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

zerolab commented 2 years ago

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

lb- commented 2 years ago

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 commented 2 years ago

We will have to create only the deleting action?

lb- commented 2 years ago

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 - https://github.com/wagtail/wagtail/issues/8180 ) but that would not be in scope of this issue, just good to be aware of.

vibhuti019 commented 2 years ago

I am working on this one