added enable option

This commit is contained in:
denisdulici
2017-10-07 23:52:34 +03:00
parent 495ba7eb70
commit cd909d909e
11 changed files with 106 additions and 30 deletions

View File

@ -27,6 +27,8 @@
@permission('read-auth-roles')
{{ Form::checkboxGroup('roles', trans_choice('general.roles', 2), $roles, 'display_name') }}
@endpermission
{{ Form::radioGroup('enabled', trans('general.enabled')) }}
</div>
<!-- /.box-body -->
@ -50,6 +52,9 @@
@section('scripts')
<script type="text/javascript">
var text_yes = '{{ trans('general.yes') }}';
var text_no = '{{ trans('general.no') }}';
$(document).ready(function(){
$("#locale").select2({
placeholder: "{{ trans('general.form.select.field', ['field' => trans_choice('general.languages', 1)]) }}"
@ -61,7 +66,7 @@
placeholder : '{{ trans('general.form.no_file_selected') }}'
});
$('input').iCheck({
$('input[type=checkbox]').iCheck({
checkboxClass: 'icheckbox_square-green',
radioClass: 'iradio_square-green',
increaseArea: '20%' // optional