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
2a7bbfa5
Commit
2a7bbfa5
authored
Sep 26, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing the iCheck plugin
parent
bbd05bdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
edit.blade.php
Resources/views/admin/roles/edit.blade.php
+2
-6
No files found.
Resources/views/admin/roles/edit.blade.php
View file @
2a7bbfa5
...
...
@@ -12,7 +12,7 @@
@stop
@section('styles')
<link href="
{{{
user_asset
(
'css/vendor/switchery.min
.css'
)
}}}
" rel="
stylesheet
" type="
text
/
css
" />
<link href="
{{{
core_asset
(
'css/vendor/iCheck/flat/red
.css'
)
}}}
" rel="
stylesheet
" type="
text
/
css
" />
@stop
@section('content')
...
...
@@ -61,8 +61,7 @@
<?php
foreach
(
$roleName
as
$rolePerm
)
:
?>
<div
class=
"checkbox"
>
<label
for=
"
<?php
echo
"
$subRoleTitle
.
$rolePerm
"
?>
"
>
{{ $rolePerm }}
<input
id=
"
<?php
echo
"
$subRoleTitle
.
$rolePerm
"
?>
"
name=
"permissions[
<?php
echo
"
$subRoleTitle
.
$rolePerm
"
?>
]"
type=
"checkbox"
class=
"simple"
<?php
echo
$role
->
hasAccess
(
"
$subRoleTitle
.
$rolePerm
"
)
?
'checked'
:
''
?>
value=
"true"
/>
<input
id=
"
<?php
echo
"
$subRoleTitle
.
$rolePerm
"
?>
"
name=
"permissions[
<?php
echo
"
$subRoleTitle
.
$rolePerm
"
?>
]"
type=
"checkbox"
class=
"flat-red"
<?php
echo
$role
->
hasAccess
(
"
$subRoleTitle
.
$rolePerm
"
)
?
'checked'
:
''
?>
value=
"true"
/>
{{ $rolePerm }}
</label>
</div>
<?php
endforeach
;
?>
...
...
@@ -82,7 +81,6 @@
@stop
@section('scripts')
<script
src=
"{{{ user_asset('js/vendor/switchery.min.js') }}}"
type=
"text/javascript"
></script>
<script>
$
(
document
).
ready
(
function
()
{
//Flat red color scheme for iCheck
...
...
@@ -90,8 +88,6 @@ $( document ).ready(function() {
checkboxClass
:
'
icheckbox_flat-red
'
,
radioClass
:
'
iradio_flat-red
'
});
var
elem
=
$
(
'
.js-switch
'
);
var
init
=
new
Switchery
(
elem
,
{
disabled
:
true
,
disabledOpacity
:
0.75
});
});
</script>
@stop
\ No newline at end of file
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