Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
94b69af3
Commit
94b69af3
authored
Oct 19, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further preparing the module settings view
parent
cce5c569
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
23 deletions
+14
-23
SettingController.php
Http/Controllers/Admin/SettingController.php
+1
-1
settings.php
Resources/lang/en/settings.php
+3
-1
settings.php
Resources/lang/fr/settings.php
+3
-1
module-settings.blade.php
Resources/views/admin/module-settings.blade.php
+6
-19
settings.blade.php
Resources/views/admin/settings.blade.php
+1
-1
No files found.
Http/Controllers/Admin/SettingController.php
View file @
94b69af3
...
...
@@ -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
)
...
...
Resources/lang/en/settings.php
View file @
94b69af3
...
...
@@ -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'
,
]
];
Resources/lang/fr/settings.php
View file @
94b69af3
...
...
@@ -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'
,
]
];
Resources/views/admin/module-settings.blade.php
View file @
94b69af3
...
...
@@ -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
Resources/views/admin/settings.blade.php
View file @
94b69af3
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment