Commit 94b69af3 authored by Nicolas Widart's avatar Nicolas Widart

Further preparing the module settings view

parent cce5c569
...@@ -46,7 +46,7 @@ class SettingController extends AdminBaseController ...@@ -46,7 +46,7 @@ class SettingController extends AdminBaseController
public function getModuleSettings($module) public function getModuleSettings($module)
{ {
dd($module . ' settings'); return View::make('setting::admin.module-settings', compact('module'));
} }
public function postModuleSettings($module) public function postModuleSettings($module)
......
...@@ -5,8 +5,10 @@ return [ ...@@ -5,8 +5,10 @@ return [
'settings' => 'Settings', 'settings' => 'Settings',
'general settings' => 'General settings', 'general settings' => 'General settings',
'module settings' => 'Module settings', 'module settings' => 'Module settings',
'module settings' => ':module module settings',
], ],
'breadcrumb' => [ 'breadcrumb' => [
'settings' => 'Settings' 'settings' => 'Settings',
'module settings' => ':module module settings',
] ]
]; ];
...@@ -5,8 +5,10 @@ return [ ...@@ -5,8 +5,10 @@ return [
'settings' => 'Configurations', 'settings' => 'Configurations',
'general settings' => 'Configuration générale', 'general settings' => 'Configuration générale',
'module settings' => 'Configuration des modules', 'module settings' => 'Configuration des modules',
'module settings' => 'Configuration du module :module',
], ],
'breadcrumb' => [ 'breadcrumb' => [
'settings' => 'Configurations' 'settings' => 'Configurations',
'module settings' => 'Configuration du :module',
] ]
]; ];
...@@ -2,22 +2,21 @@ ...@@ -2,22 +2,21 @@
@section('content-header') @section('content-header')
<h1> <h1>
{{ trans('setting::settings.title.module settings') }} {{ trans('setting::settings.title.module settings', ['module' => ucfirst($module)]) }}
</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-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li><a href="{{ URL::route('dashboard.setting.index') }}"><i class="fa fa-cog"></i> {{ trans('setting::settings.breadcrumb.settings') }}</a></li>
<li class="active"><i class="fa fa-cog"></i> {{ trans('setting::settings.breadcrumb.module settings', ['module' => ucfirst($module)]) }}</li>
</ol> </ol>
@stop @stop
@section('content') @section('content')
@include('flash::message') @include('flash::message')
{!! Form::open(['route' => ['dashboard.setting.store'], 'method' => 'post']) !!} {!! Form::open(['route' => ['dashboard.module.settings.post', $module], 'method' => 'post']) !!}
<div class="row"> <div class="row">
<div class="col-md-8"> <div class="col-md-12">
<div class="box box-info"> <div class="box box-info">
<div class="box-header">
<h3 class="box-title">{{ trans('setting::settings.title.general settings') }}</h3>
</div>
<div class="box-body"> <div class="box-body">
<div class="nav-tabs-custom"> <div class="nav-tabs-custom">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
...@@ -40,18 +39,6 @@ ...@@ -40,18 +39,6 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col-md-4">
<div class="box box-info">
<div class="box-header"><h3 class="box-title">{{ trans('setting::settings.title.module settings') }}</h3></div>
<div class="box-body">
<ul>
<?php foreach($modulesWithSettings as $module => $settings): ?>
<li><a href="{{ URL::route('dashboard.module.settings', [$module]) }}">{{ $module }}</a></li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
</div> </div>
{!! Form::close() !!} {!! Form::close() !!}
@stop @stop
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<div class="box-body"> <div class="box-body">
<ul> <ul>
<?php foreach($modulesWithSettings as $module => $settings): ?> <?php foreach($modulesWithSettings as $module => $settings): ?>
<li><a href="{{ URL::route('dashboard.module.settings', [$module]) }}">{{ $module }}</a></li> <li><a href="{{ URL::route('dashboard.module.settings', [strtolower($module)]) }}">{{ $module }}</a></li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
</div> </div>
......
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