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
e9151977
Commit
e9151977
authored
Oct 20, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding checkout view
parent
694dc01f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
8 deletions
+26
-8
module-settings.blade.php
Resources/views/admin/module-settings.blade.php
+16
-1
module-checkbox-field.blade.php
...rces/views/admin/partials/module-checkbox-field.blade.php
+10
-7
No files found.
Resources/views/admin/module-settings.blade.php
View file @
e9151977
...
...
@@ -11,9 +11,13 @@
</ol>
@stop
@section('styles')
<link href="
{{{
Module
::
asset
(
'core'
,
'css/vendor/iCheck/flat/blue.css'
)
}}}
" rel="
stylesheet
" type="
text
/
css
" />
@stop
@section('content')
@include('flash::message')
{!! Form::open(['route' => ['dashboard.
module.settings.post
'], 'method' => 'post']) !!}
{!! Form::open(['route' => ['dashboard.
setting.store
'], 'method' => 'post']) !!}
<div class="
row
">
<div class="
col
-
md
-
12
">
<div class="
box
box
-
info
">
...
...
@@ -60,3 +64,14 @@
</div>
{!! Form::close() !!}
@stop
@section('scripts')
<script>
$( document ).ready(function() {
$('input[type="
checkbox
"].flat-blue, input[type="
radio
"].flat-blue').iCheck({
checkboxClass: 'icheckbox_flat-blue',
radioClass: 'iradio_flat-blue'
});
});
</script>
@stop
Resources/views/admin/partials/module-checkbox-field.blade.php
View file @
e9151977
<?php
$settingName
=
$module
.
'_'
.
$setting
;
?>
<div
class=
'form-group'
>
{!! Form::label($settingName . "[$lang]", $moduleInfo['description']) !!}
<?php
if
(
isset
(
$settings
[
$settingName
]))
:
?>
{!! Form::text($settingName . "[$lang]", Input::old($settingName . "[$lang]", $settings[$settingName]->translate($lang)->value), ['class' => 'form-control', 'placeholder' => $moduleInfo['description']]) !!}
<?php
else
:
?>
{!! Form::text($settingName . "[$lang]", Input::old($settingName . "[$lang]"), ['class' => 'form-control', 'placeholder' => $moduleInfo['description']]) !!}
<?php
endif
;
?>
<div
class=
"checkbox"
>
<label
for=
"{{ $settingName . "
[$
lang
]"
}}"
>
<input
id=
"{{ $settingName . "
[$
lang
]"
}}"
name=
"{{ $settingName . "
[$
lang
]"
}}"
type=
"checkbox"
class=
"flat-blue"
{{
isset
($
settings
[$
settingName
])
&&
(
bool
)$
settings
[$
settingName
]
-
>
translate($lang)->value == true ? 'checked' : '' }}
value="true" />
{{ $moduleInfo['description'] }}
</label>
</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