elfinder configs, application on edit fields fixed
This commit is contained in:
parent
0176a43bdd
commit
26583c0ce1
|
|
@ -119,17 +119,6 @@ protected function setupCreateOperation()
|
|||
{
|
||||
CRUD::setValidation(ApplicationRequest::class);
|
||||
$this->crud->addFields([
|
||||
// [
|
||||
// 'name' => 'account_id',
|
||||
// 'type' => 'custom_select_account',
|
||||
// 'label' => 'Account',
|
||||
// 'entity' => 'account',
|
||||
// 'model' => "App\Models\Business",
|
||||
// 'model_2' => "App\Models\Company",
|
||||
// 'attribute_business_1' => 'name',
|
||||
// 'attribute_business_2' => 'surname',
|
||||
// 'attribute_2' => 'name'
|
||||
// ],
|
||||
[ // SelectMultiple = n-n relationship (with pivot table)
|
||||
'label' => "Account",
|
||||
'type' => 'custom_select_account',
|
||||
|
|
@ -161,6 +150,19 @@ protected function setupCreateOperation()
|
|||
*/
|
||||
protected function setupUpdateOperation()
|
||||
{
|
||||
$this->setupCreateOperation();
|
||||
CRUD::setValidation(ApplicationRequest::class);
|
||||
$this->crud->addFields([
|
||||
[
|
||||
'name' => 'state',
|
||||
'label' => 'State',
|
||||
'type' => 'select_from_array',
|
||||
'options' => [
|
||||
'new' => 'new',
|
||||
'applied' => 'applied',
|
||||
'approved' => 'approved',
|
||||
'archive' => 'archive'
|
||||
]
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
| The dir where to store the images (relative from public).
|
||||
|
|
||||
*/
|
||||
'dir' => ['uploads'],
|
||||
'dir' => ['app/public'],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
| ]
|
||||
*/
|
||||
'disks' => [
|
||||
// 'uploads',
|
||||
'local',
|
||||
],
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue