2017-09-14 22:21:00 +03:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title', trans('general.title.new', ['type' => trans_choice('general.users', 1)]))
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<!-- Default box -->
|
|
|
|
<div class="box box-success">
|
2018-09-17 13:57:03 +03:00
|
|
|
{!! Form::open(['url' => 'auth/users', 'files' => true, 'role' => 'form', 'class' => 'form-loading-button']) !!}
|
2017-09-14 22:21:00 +03:00
|
|
|
|
|
|
|
<div class="box-body">
|
|
|
|
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
|
|
|
|
|
|
|
{{ Form::emailGroup('email', trans('general.email'), 'envelope') }}
|
|
|
|
|
|
|
|
{{ Form::passwordGroup('password', trans('auth.password.current'), 'key') }}
|
|
|
|
|
|
|
|
{{ Form::passwordGroup('password_confirmation', trans('auth.password.current_confirm'), 'key') }}
|
|
|
|
|
|
|
|
{{ Form::selectGroup('locale', trans_choice('general.languages', 1), 'flag', language()->allowed(), setting('general.default_locale')) }}
|
|
|
|
|
2018-05-01 14:12:22 +03:00
|
|
|
@if (setting('general.use_gravatar', '0') == '1')
|
2018-08-07 17:35:45 +03:00
|
|
|
@stack('picture_input_start')
|
2018-05-01 14:12:22 +03:00
|
|
|
<div class="form-group col-md-6">
|
|
|
|
{!! Form::label('picture', trans_choice('general.pictures', 1), ['class' => 'control-label']) !!}
|
|
|
|
<div class="input-group">
|
|
|
|
<div class="input-group-addon"><i class="fa fa-picture-o"></i></div>
|
|
|
|
{!! Form::text('fake_picture', null, ['id' => 'fake_picture', 'class' => 'form-control', 'disabled' => 'disabled', 'placeholder' => trans('settings.appearance.use_gravatar')]) !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-08-07 17:35:45 +03:00
|
|
|
@stack('picture_input_end')
|
2018-05-01 14:12:22 +03:00
|
|
|
@else
|
|
|
|
{{ Form::fileGroup('picture', trans_choice('general.pictures', 1)) }}
|
|
|
|
@endif
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2018-06-20 10:51:28 +03:00
|
|
|
@permission('read-common-companies')
|
2017-09-14 22:21:00 +03:00
|
|
|
{{ Form::checkboxGroup('companies', trans_choice('general.companies', 2), $companies, 'company_name') }}
|
|
|
|
@endpermission
|
|
|
|
|
|
|
|
@permission('read-auth-roles')
|
|
|
|
{{ Form::checkboxGroup('roles', trans_choice('general.roles', 2), $roles, 'display_name') }}
|
|
|
|
@endpermission
|
2017-10-07 23:52:34 +03:00
|
|
|
|
|
|
|
{{ Form::radioGroup('enabled', trans('general.enabled')) }}
|
2017-09-14 22:21:00 +03:00
|
|
|
</div>
|
|
|
|
<!-- /.box-body -->
|
|
|
|
|
|
|
|
<div class="box-footer">
|
|
|
|
{{ Form::saveButtons('auth/users') }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{!! Form::close() !!}
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
2017-11-13 21:55:15 +03:00
|
|
|
@push('js')
|
2017-09-14 22:21:00 +03:00
|
|
|
<script src="{{ asset('public/js/bootstrap-fancyfile.js') }}"></script>
|
|
|
|
<script src="{{ asset('vendor/almasaeed2010/adminlte/plugins/iCheck/icheck.min.js') }}"></script>
|
2017-11-13 21:55:15 +03:00
|
|
|
@endpush
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2017-11-13 21:55:15 +03:00
|
|
|
@push('css')
|
2017-09-14 22:21:00 +03:00
|
|
|
<link rel="stylesheet" href="{{ asset('public/css/bootstrap-fancyfile.css') }}">
|
|
|
|
<link rel="stylesheet" href="{{ asset('vendor/almasaeed2010/adminlte/plugins/iCheck/square/green.css') }}">
|
2017-11-13 21:55:15 +03:00
|
|
|
@endpush
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2017-11-13 21:55:15 +03:00
|
|
|
@push('scripts')
|
2017-09-14 22:21:00 +03:00
|
|
|
<script type="text/javascript">
|
2017-10-07 23:52:34 +03:00
|
|
|
var text_yes = '{{ trans('general.yes') }}';
|
|
|
|
var text_no = '{{ trans('general.no') }}';
|
|
|
|
|
2017-09-14 22:21:00 +03:00
|
|
|
$(document).ready(function(){
|
|
|
|
$("#locale").select2({
|
|
|
|
placeholder: "{{ trans('general.form.select.field', ['field' => trans_choice('general.languages', 1)]) }}"
|
|
|
|
});
|
|
|
|
|
2018-05-01 14:12:22 +03:00
|
|
|
@if (setting('general.use_gravatar', '0') != '1')
|
2017-09-14 22:21:00 +03:00
|
|
|
$('#picture').fancyfile({
|
|
|
|
text : '{{ trans('general.form.select.file') }}',
|
|
|
|
style : 'btn-default',
|
|
|
|
placeholder : '{{ trans('general.form.no_file_selected') }}'
|
|
|
|
});
|
2018-05-01 14:12:22 +03:00
|
|
|
@endif
|
2017-09-14 22:21:00 +03:00
|
|
|
|
2017-10-07 23:52:34 +03:00
|
|
|
$('input[type=checkbox]').iCheck({
|
2017-09-14 22:21:00 +03:00
|
|
|
checkboxClass: 'icheckbox_square-green',
|
|
|
|
radioClass: 'iradio_square-green',
|
|
|
|
increaseArea: '20%' // optional
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2017-11-13 21:55:15 +03:00
|
|
|
@endpush
|