Commit b10193c0 authored by Nicolas Widart's avatar Nicolas Widart

Adding one more title translation

parent a5e9386b
...@@ -48,4 +48,9 @@ class SettingController extends AdminBaseController ...@@ -48,4 +48,9 @@ class SettingController extends AdminBaseController
{ {
dd($module . ' settings'); dd($module . ' settings');
} }
public function postModuleSettings($module)
{
dd('Module settings posted');
}
} }
...@@ -4,6 +4,7 @@ $router->group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'Larav ...@@ -4,6 +4,7 @@ $router->group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'Larav
$router->group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Setting\Http\Controllers'], function($router) $router->group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Setting\Http\Controllers'], function($router)
{ {
$router->get('settings/{module}', ['as' => 'dashboard.module.settings', 'uses' => 'Admin\SettingController@getModuleSettings']); $router->get('settings/{module}', ['as' => 'dashboard.module.settings', 'uses' => 'Admin\SettingController@getModuleSettings']);
$router->post('settings/{module}', ['as' => 'dashboard.module.settings.post', 'uses' => 'Admin\SettingController@postModuleSettings']);
$router->resource('settings', 'Admin\SettingController', ['except' => ['show', 'edit', 'update', 'destroy', 'create'], 'names' => [ $router->resource('settings', 'Admin\SettingController', ['except' => ['show', 'edit', 'update', 'destroy', 'create'], 'names' => [
'index' => 'dashboard.setting.index', 'index' => 'dashboard.setting.index',
'store' => 'dashboard.setting.store' 'store' => 'dashboard.setting.store'
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
return [ return [
'title' => [ 'title' => [
'settings' => 'Settings',
'general settings' => 'General settings', 'general settings' => 'General settings',
'module settings' => 'Module settings', 'module settings' => 'Module settings',
] ]
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
return [ return [
'title' => [ 'title' => [
'settings' => 'Configurations',
'general settings' => 'Configuration générale', 'general settings' => 'Configuration générale',
'module settings' => 'Configuration des modules', 'module settings' => 'Configuration des modules',
] ]
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
@section('content-header') @section('content-header')
<h1> <h1>
Settings {{ trans('setting::settings.title.settings') }}
</h1> </h1>
<ol class="breadcrumb"> <ol class="breadcrumb">
<li><a href="#"><i class="fa fa-cog"></i> {{ trans('core::core.breadcrumb.home') }}</a></li> <li><a href="#"><i class="fa fa-cog"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment