diff --git a/app/lang/de/dashboard.php b/app/lang/de/dashboard.php index 11d0dac7..facb5500 100644 --- a/app/lang/de/dashboard.php +++ b/app/lang/de/dashboard.php @@ -54,6 +54,11 @@ return [ 'success' => 'Komponenten-Gruppe hinzugefügt.', 'failure' => 'Es ist ein Fehler bei der Erstellung einer Komponenten-Gruppe aufgetreten.', ], + 'edit' => [ + 'title' => 'Edit a component group', + 'success' => 'Component group updated.', + 'failure' => 'Something went wrong with the component group.', + ], ], ], diff --git a/app/lang/en/dashboard.php b/app/lang/en/dashboard.php index b40247a6..1edb459a 100644 --- a/app/lang/en/dashboard.php +++ b/app/lang/en/dashboard.php @@ -61,6 +61,11 @@ return [ 'success' => 'Component group added.', 'failure' => 'Something went wrong with the component group.', ], + 'edit' => [ + 'title' => 'Edit a component group', + 'success' => 'Component group updated.', + 'failure' => 'Something went wrong with the component group.', + ], ], ], diff --git a/app/lang/es/dashboard.php b/app/lang/es/dashboard.php index f05edb6a..d9c29d81 100644 --- a/app/lang/es/dashboard.php +++ b/app/lang/es/dashboard.php @@ -61,6 +61,11 @@ return [ 'success' => 'Grupo componente agregado.', 'failure' => 'Algo salió mal con el grupo del componente.', ], + 'edit' => [ + 'title' => 'Edit a component group', + 'success' => 'Component group updated.', + 'failure' => 'Something went wrong with the component group.', + ], ], ], diff --git a/app/lang/fr/dashboard.php b/app/lang/fr/dashboard.php index e7778c79..5d433386 100644 --- a/app/lang/fr/dashboard.php +++ b/app/lang/fr/dashboard.php @@ -60,6 +60,11 @@ return [ 'success' => 'Groupe de composants ajouté.', 'failure' => 'Il s\'est passé quelque chose avec ce composantgroupe de composants.', ], + 'edit' => [ + 'title' => 'Edit a component group', + 'success' => 'Component group updated.', + 'failure' => 'Something went wrong with the component group.', + ], ], ], diff --git a/app/routes/dashboard.php b/app/routes/dashboard.php index 71d59ccb..6ad56ad6 100644 --- a/app/routes/dashboard.php +++ b/app/routes/dashboard.php @@ -26,6 +26,12 @@ Route::group(['before' => 'auth', 'prefix' => 'dashboard', 'namespace' => 'Cache 'as' => 'dashboard.components.groups.add', 'uses' => 'DashComponentController@showAddComponentGroup', ]); + Route::get('groups/edit/{component_group}', [ + 'as' => 'dashboard.components.groups.edit', + 'uses' => 'DashComponentController@showEditComponentGroup', + ]); + Route::post('groups/edit/{component_group}', 'DashComponentController@updateComponentGroupAction'); + Route::delete('groups/{component_group}/delete', 'DashComponentController@deleteComponentGroupAction'); Route::post('groups/add', 'DashComponentController@postAddComponentGroup'); Route::delete('{component}/delete', 'DashComponentController@deleteComponentAction'); diff --git a/app/views/dashboard/components/groups/edit.blade.php b/app/views/dashboard/components/groups/edit.blade.php new file mode 100644 index 00000000..ed0bbd51 --- /dev/null +++ b/app/views/dashboard/components/groups/edit.blade.php @@ -0,0 +1,34 @@ +@extends('layout.dashboard') + +@section('content') +