From 44dd863b58e09521f13698c402e0216970d7ceaf Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 21 May 2019 17:40:36 +0200 Subject: [PATCH] #2783 --- .../Http/Controllers/CubistModelCrudController.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/app/Http/Controllers/CubistModelCrudController.php b/src/app/Http/Controllers/CubistModelCrudController.php index a417642..ac06050 100644 --- a/src/app/Http/Controllers/CubistModelCrudController.php +++ b/src/app/Http/Controllers/CubistModelCrudController.php @@ -33,20 +33,9 @@ class CubistModelCrudController extends CrudController |-------------------------------------------------------------------------- */ - // TODO: remove setFromDb() and manually define Fields and Columns $this->crud->addField(['type' => 'text', 'name' => 'name', 'label' => 'Template table name'], 'create'); $this->crud->addField(['type' => 'text', 'name' => 'label', 'label' => 'Tamplate label'], 'both'); - $this->crud->addField([ // Table - 'name' => 'attributes', - 'label' => 'Fields definitions', - 'type' => 'table', - 'entity_singular' => 'field', // used on the "Add X" button - 'columns' => [ - 'name' => 'Name', - 'desc' => 'Label', - 'price' => 'Attributes' - ], - ], 'both'); + $this->crud->addField(['type' => 'textarea', 'name' => 'attributes', 'label' => 'Fields definitions'], 'both'); // add asterisk for fields that are required in ModelRequest $this->crud->setRequiredFields(StoreRequest::class, 'create'); -- 2.39.5