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
public function getModuleSettings($module)
{
dd($module . ' settings');
return View::make('setting::admin.module-settings', compact('module'));
}
public function postModuleSettings($module)
......
......@@ -5,8 +5,10 @@ return [
'settings' => 'Settings',
'general settings' => 'General settings',
'module settings' => 'Module settings',
'module settings' => ':module module settings',
],
'breadcrumb' => [
'settings' => 'Settings'
'settings' => 'Settings',
'module settings' => ':module module settings',
]
];
......@@ -5,8 +5,10 @@ return [
'settings' => 'Configurations',
'general settings' => 'Configuration générale',
'module settings' => 'Configuration des modules',
'module settings' => 'Configuration du module :module',
],
'breadcrumb' => [
'settings' => 'Configurations'
'settings' => 'Configurations',
'module settings' => 'Configuration du :module',
]
];
......@@ -2,22 +2,21 @@
@section('content-header')
<h1>
{{ trans('setting::settings.title.module settings') }}
{{ trans('setting::settings.title.module settings', ['module' => ucfirst($module)]) }}
</h1>
<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>
@stop
@section('content')
@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="col-md-8">
<div class="col-md-12">
<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="nav-tabs-custom">
<ul class="nav nav-tabs">
......@@ -40,18 +39,6 @@
</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>
{!! Form::close() !!}
@stop
......@@ -47,7 +47,7 @@
<div class="box-body">
<ul>
<?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; ?>
</ul>
</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