Commit 3d625a2e authored by Nicolas Widart's avatar Nicolas Widart

Squashed 'Modules/Setting/' changes from 6946310..0f32e1e

0f32e1e Adding a better sidebar nav

git-subtree-dir: Modules/Setting
git-subtree-split: 0f32e1ede34798f7ed1910339b6eaff1b361ed9f
parent 743dcb2c
...@@ -19,17 +19,28 @@ ...@@ -19,17 +19,28 @@
@include('flash::message') @include('flash::message')
{!! Form::open(['route' => ['dashboard.setting.store'], 'method' => 'post']) !!} {!! Form::open(['route' => ['dashboard.setting.store'], 'method' => 'post']) !!}
<div class="row"> <div class="row">
<div class="col-md-2"> <div class="sidebar-nav col-sm-2">
<div class="box box-info"> <div class="box box-info">
<div class="box-header"><h3 class="box-title">{{ trans('setting::settings.title.module settings') }}</h3></div> <div class="box-header">
<div class="box-body"> <h3 class="box-title">{{ trans('setting::settings.title.module settings') }}</h3>
<ul>
<?php foreach($modulesWithSettings as $module => $settings): ?>
<li style="margin-bottom: 15px"><a href="{{ URL::route('dashboard.module.settings', [$module]) }}" class="btn btn-default btn-flat {{ $module == ucfirst($currentModule) ? 'disabled' : '' }}">{{ $module }}</a></li>
<?php endforeach; ?>
</ul>
</div> </div>
</div> <style>
a.active {
text-decoration: none;
background-color: #eee;
}
</style>
<ul class="nav nav-list">
<?php foreach($modulesWithSettings as $module => $settings): ?>
<li>
<a href="{{ URL::route('dashboard.module.settings', [$module]) }}" class="{{ $module == ucfirst($currentModule) ? 'active' : '' }}">
{{ $module }}
<small class="badge pull-right bg-blue">{{ count($settings) }}</small>
</a>
</li>
<?php endforeach; ?>
</ul>
</div>
</div> </div>
<div class="col-md-10"> <div class="col-md-10">
<div class="box box-info"> <div class="box box-info">
......
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