Development

#2100 ([PATCH] Batch action in admin generator list)

You must first sign up to be able to contribute.

Ticket #2100 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 year ago

[PATCH] Batch action in admin generator list

Reported by: francois Assigned to: fabien
Priority: minor Milestone: 1.1.0
Component: generator Version: 1.0.0
Keywords: Cc:
Qualification: Accepted

Description

It is already possible to add action buttons to each line in the list view of the admin generator - for instance a delete button. But when several records have to be deleted, clicking on the delete button several times can be painful.

A good solution would be to add a checkbox at the beginning of every line, and then a dropdown list at the end of the table would allow to perform one of the actions defined in the generator.yml in the following way:

batch_actions:
  _deleteSelected: -
  myAction:        { name: My Action, action: myAction }

Attached is a patch that implements this feature, together with unit tests.

Attachments

batch_actions.patch (10.1 kB) - added by francois on 08/15/07 20:13:05.
PrintScreen014.gif (5.2 kB) - added by francois on 08/15/07 20:14:18.

Change History

08/15/07 20:13:05 changed by francois

  • attachment batch_actions.patch added.

08/15/07 20:14:18 changed by francois

  • attachment PrintScreen014.gif added.

09/12/07 08:50:59 changed by fabien

  • status changed from new to assigned.
  • qualification set to Accepted.

Just need to add some functional tests to actually test that it does the right thing when launching an action. With proper functional tests in place, it will be in 1.1 ;-)

09/15/07 09:50:01 changed by fabien

  • status changed from assigned to closed.
  • resolution set to fixed.
  • milestone set to 1.1.0.

in r5102