]> _ Git - cubist_cms-back.git/commitdiff
#2810
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Jun 2019 13:41:03 +0000 (15:41 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 6 Jun 2019 13:41:03 +0000 (15:41 +0200)
src/app/Magic/Controllers/CubistMagicControllerTrait.php

index d90ccc37828535d7f93d11e60c50f06083a1f9c2..52d656405787da1d4a21a41d744f0e159e89a87c 100644 (file)
@@ -29,8 +29,13 @@ trait CubistMagicControllerTrait
         */
         $this->crud->setModel($this->_modelNamespace);
         $this->_postSetModel();
-        if($this->_bulk) {
+        if ($this->_bulk) {
             $this->crud->enableBulkActions();
+            $this->crud->allowAccess('show');
+            if ($this->_clonable) {
+                $this->crud->addButton('bottom', 'bulk_clone', 'view', 'crud::buttons.bulk_clone', 'beginning');
+            }
+            $this->crud->addBulkDeleteButton();
         }
         $this->crud->setRoute(config('backpack.base.route_prefix') . '/' . $this->_routeURL);
         $this->crud->setEntityNameStrings($this->_singular, $this->_plural);