Commit 2a7bbfa5 authored by Nicolas Widart's avatar Nicolas Widart

Fixing the iCheck plugin

parent bbd05bdb
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
@stop @stop
@section('styles') @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 @stop
@section('content') @section('content')
...@@ -61,8 +61,7 @@ ...@@ -61,8 +61,7 @@
<?php foreach($roleName as $rolePerm): ?> <?php foreach($roleName as $rolePerm): ?>
<div class="checkbox"> <div class="checkbox">
<label for="<?php echo "$subRoleTitle.$rolePerm" ?>"> <label for="<?php echo "$subRoleTitle.$rolePerm" ?>">
{{ $rolePerm }} <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 }}
<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" />
</label> </label>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
...@@ -82,7 +81,6 @@ ...@@ -82,7 +81,6 @@
@stop @stop
@section('scripts') @section('scripts')
<script src="{{{ user_asset('js/vendor/switchery.min.js') }}}" type="text/javascript"></script>
<script> <script>
$( document ).ready(function() { $( document ).ready(function() {
//Flat red color scheme for iCheck //Flat red color scheme for iCheck
...@@ -90,8 +88,6 @@ $( document ).ready(function() { ...@@ -90,8 +88,6 @@ $( document ).ready(function() {
checkboxClass: 'icheckbox_flat-red', checkboxClass: 'icheckbox_flat-red',
radioClass: 'iradio_flat-red' radioClass: 'iradio_flat-red'
}); });
var elem = $('.js-switch');
var init = new Switchery(elem, { disabled: true, disabledOpacity: 0.75 });
}); });
</script> </script>
@stop @stop
\ No newline at end of file
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