From: Vincent Vanwaelscappel Date: Thu, 6 Jun 2019 13:41:03 +0000 (+0200) Subject: #2810 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=eaae628675894f6a9485faa4beaa6cbfc0ef5276;p=cubist_cms-back.git #2810 --- diff --git a/src/app/Magic/Controllers/CubistMagicControllerTrait.php b/src/app/Magic/Controllers/CubistMagicControllerTrait.php index d90ccc3..52d6564 100644 --- a/src/app/Magic/Controllers/CubistMagicControllerTrait.php +++ b/src/app/Magic/Controllers/CubistMagicControllerTrait.php @@ -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);