Skip to content

[Feature] Quick Button with Bulk Action. 😎 - #5883

Merged
pxpm merged 9 commits into
mainfrom
bulk-quick-button
Dec 23, 2025
Merged

pxpm merged 9 commits into
mainfrom
bulk-quick-button

Conversation

@karandatwani92

Copy link
Copy Markdown
Contributor

WHY

BEFORE - What was wrong? What was happening before this PR?

Quick button is very quick and useful to setup single action buttons.

AFTER - What is happening after this PR?

Now, it also lets you setup bulk action buttons. It helps me setup bulk operation smoothly without getting me into messy view file.😎

HOW

+ CRUD::enableBulkActions();
CRUD::button('send_invoices')->stack('bottom')->view('crud::buttons.quick')->meta([
    'label' => 'Send Invoices (Bulk)',
    'icon' => 'la la-envelope',
    'access' => true,
    'wrapper' => [
        'href' => function ($entry, $crud) {
            return url($crud->route) . "/bulk-send-invoice";
        },
    ],
    'ajax' => [
        'method' => 'POST',
        'success_title' => 'Send Invoices Job Queued',
        'success_message' => 'Send invoices operation has been queued and will be processed in the background. Check logs for progress updates.',
        'error_title' => 'Queue Operation Failed',
        'error_message' => 'Failed to queue send invoices operation.',
    ],
    //'bulk' => true,
+    'bulk' => [
+        'no_entries_title' => 'No Invoices Selected',
+        'no_entries_message' => 'Please select at least one invoice to send.',
+        'confirm_title' => 'Confirm Send Invoices Operation',
+        'confirm_message' => 'Are you sure you want to queue send invoices operation for :number selected invoices? This will be processed in the background and may take some time to complete.',
+    ],
]);

How did you achieve that, in technical terms?

  • Basic config keys
  • A Modal
  • Existing Ajax setup

Is it a breaking change?

No

@karandatwani92 karandatwani92 moved this to In Review in Backpack v7.0 Nov 13, 2025
@karandatwani92 karandatwani92 moved this to Needs Testing, Review or Docs in Triage Nov 13, 2025
@karandatwani92
karandatwani92 changed the base branch from main to next November 13, 2025 10:05
@pxpm
pxpm force-pushed the next branch 2 times, most recently from d052101 to 943e1f2 Compare November 21, 2025 12:08
pxpm and others added 7 commits December 23, 2025 12:27
Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Cristian Tabacitu <cristian.tabacitu@digitallyhappy.com>
Co-authored-by: StyleCI Bot <bot@styleci.io>
Co-authored-by: Cristian Tabacitu <cristian.tabacitu@digitallyhappy.com>
Co-authored-by: Cristian Tăbăcitu <cristitabacitu@gmail.com>
@pxpm
pxpm force-pushed the bulk-quick-button branch from 7d37484 to 3da0d1d Compare December 23, 2025 12:31
@pxpm
pxpm changed the base branch from next to main December 23, 2025 12:31
Comment thread src/app/Console/Commands/Install.php Resolved
@pxpm

pxpm commented Dec 23, 2025

Copy link
Copy Markdown
Contributor

Thanks @karandatwani92

I did a little bit cleanup on that file, and some changes to make it properly work with the new datatable component.

Cheers 🙏

@pxpm
pxpm merged commit 0c199f2 into main Dec 23, 2025
9 checks passed
@pxpm
pxpm deleted the bulk-quick-button branch December 23, 2025 14:15
@github-project-automation github-project-automation Bot moved this from In Review to Done in Backpack v7.0 Dec 23, 2025
@github-project-automation github-project-automation Bot moved this to Done in Triage Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants