create user from customer page
This commit is contained in:
@ -1,9 +0,0 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'all' => 'All Customers',
|
||||
|
||||
'error' => [
|
||||
'email' => 'The email has already been taken.'
|
||||
]
|
||||
];
|
11
resources/lang/en-GB/customers.php
Normal file
11
resources/lang/en-GB/customers.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'allow_login' => 'Allow Login?',
|
||||
'user_created' => 'User Created',
|
||||
|
||||
'error' => [
|
||||
'email' => 'The email has already been taken.'
|
||||
]
|
||||
];
|
@ -83,8 +83,6 @@ return [
|
||||
'search' => 'Search',
|
||||
'search_placeholder' => 'Type to search..',
|
||||
'filter' => 'Filter',
|
||||
'create_user' => 'Create User',
|
||||
'created_user' => 'Created User',
|
||||
'help' => 'Help',
|
||||
'all' => 'All',
|
||||
'all_type' => 'All :type',
|
||||
|
@ -24,18 +24,13 @@
|
||||
|
||||
{{ Form::radioGroup('enabled', trans('general.enabled')) }}
|
||||
|
||||
<div class="form-group col-md-12">
|
||||
{!! Form::label('create_user', trans('general.create_user'), ['class' => 'control-label']) !!}
|
||||
<br/>
|
||||
<div class="col-md-12">
|
||||
{{ Form::checkbox('create_user', '1') }} {{ trans('general.create_user') }}
|
||||
</div>
|
||||
<div class="form-group col-md-12 margin-top">
|
||||
<strong>{{ trans('customers.allow_login') }}</strong> {{ Form::checkbox('create_user', '1', null, ['id' => 'create_user']) }}
|
||||
</div>
|
||||
|
||||
{{ Form::passwordGroup('password', trans('auth.password.current'), 'key', [], null, 'col-md-6 password hidden') }}
|
||||
|
||||
{{ Form::passwordGroup('password_confirmation', trans('auth.password.current_confirm'), 'key', [], null, 'col-md-6 password hidden') }}
|
||||
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
|
||||
|
@ -28,16 +28,12 @@
|
||||
|
||||
{{ Form::radioGroup('enabled', trans('general.enabled')) }}
|
||||
|
||||
<div class="form-group col-md-12">
|
||||
{!! Form::label('create_user', trans('general.create_user'), ['class' => 'control-label']) !!}
|
||||
<br/>
|
||||
<div class="col-md-12">
|
||||
@if ($customer->user_id)
|
||||
{{ Form::checkbox('create_user', '1', 1, array('disabled')) }} {{ trans('general.created_user') }}
|
||||
@else
|
||||
{{ Form::checkbox('create_user', '1') }} {{ trans('general.create_user') }}
|
||||
@endif
|
||||
</div>
|
||||
<div class="form-group col-md-12 margin-top">
|
||||
@if ($customer->user_id)
|
||||
<strong>{{ trans('customers.user_created') }}</strong> {{ Form::checkbox('create_user', '1', 1, ['id' => 'create_user', 'disabled' => 'disabled']) }}
|
||||
@else
|
||||
<strong>{{ trans('customers.allow_login') }}</strong> {{ Form::checkbox('create_user', '1', null, ['id' => 'create_user']) }}
|
||||
@endif
|
||||
</div>
|
||||
|
||||
{{ Form::passwordGroup('password', trans('auth.password.current'), 'key', [], null, 'col-md-6 password hidden') }}
|
||||
|
Reference in New Issue
Block a user