Bootstrap4 :: User module updates

This commit is contained in:
Sakthi002
2020-12-28 18:33:17 +05:30
committed by Manish Verma
parent b78e03e349
commit fddad53e60
15 changed files with 1699 additions and 14347 deletions

View File

@@ -2,17 +2,21 @@
@section('Users')
class="active"
class="nav-link active"
@stop
@section('user-bar')
active
class="nav-link active"
@stop
@section('user')
class="active"
@stop
@section('user-directory')
class="nav-link active"
@stop
<!-- header -->
@section('PageHeader')
<h1>{!! Lang::get('lang.edit_user') !!}</h1>
@@ -29,71 +33,72 @@ class="active"
{{Session::get('fails')}}
</div>
@endif
@if(Session::has('errors'))
<div class="alert alert-danger alert-dismissable">
<i class="fas fa-ban"></i>
<b>{!! Lang::get('lang.alert') !!}!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<br/>
@if($errors->first('first_name'))
<li class="error-message-padding">{!! $errors->first('first_name', ':message') !!}</li>
@endif
@if($errors->first('last_name'))
<li class="error-message-padding">{!! $errors->first('last_name', ':message') !!}</li>
@endif
@if($errors->first('user_name'))
<li class="error-message-padding">{!! $errors->first('user_name', ':message') !!}</li>
@endif
@if($errors->first('email'))
<li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li>
@endif
@if($errors->first('mobile'))
<li class="error-message-padding">{!! $errors->first('mobile', ':message') !!}</li>
@endif
@if($errors->first('ext'))
<li class="error-message-padding">{!! $errors->first('ext', ':message') !!}</li>
@endif
@if($errors->first('phone_number'))
<li class="error-message-padding">{!! $errors->first('phone_number', ':message') !!}</li>
@endif
@if($errors->first('active'))
<li class="error-message-padding">{!! $errors->first('active', ':message') !!}</li>
@endif
</div>
@endif
<!-- open a form -->
{!! Form::model($users,['url'=>'user/'.$users->id,'method'=>'PATCH']) !!}
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">
<div class="card card-light">
<div class="card-header">
<h3 class="card-title">
{!! Lang::get('lang.user_credentials') !!}
</h3>
</div>
<div class="box-body">
@if(Session::has('errors'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>{!! Lang::get('lang.alert') !!}!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<br/>
@if($errors->first('first_name'))
<li class="error-message-padding">{!! $errors->first('first_name', ':message') !!}</li>
@endif
@if($errors->first('last_name'))
<li class="error-message-padding">{!! $errors->first('last_name', ':message') !!}</li>
@endif
@if($errors->first('user_name'))
<li class="error-message-padding">{!! $errors->first('user_name', ':message') !!}</li>
@endif
@if($errors->first('email'))
<li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li>
@endif
@if($errors->first('mobile'))
<li class="error-message-padding">{!! $errors->first('mobile', ':message') !!}</li>
@endif
@if($errors->first('ext'))
<li class="error-message-padding">{!! $errors->first('ext', ':message') !!}</li>
@endif
@if($errors->first('phone_number'))
<li class="error-message-padding">{!! $errors->first('phone_number', ':message') !!}</li>
@endif
@if($errors->first('active'))
<li class="error-message-padding">{!! $errors->first('active', ':message') !!}</li>
@endif
</div>
@endif
<div class="card-body">
<div class="row">
<!-- First name : first name : Required -->
<div class="col-xs-4 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
<div class="col-sm-4 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}<span class="text-red"> *</span>
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
</div>
<!-- Last name : last name : Required -->
<div class="col-xs-4 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
<div class="col-sm-4 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
</div>
<!-- User Name : Text : Required-->
<div class="col-xs-4 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
<div class="col-sm-4 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
{!! Form::label('user_name',Lang::get('lang.user_name')) !!}<span class="text-red"> *</span>
{!! Form::text('user_name',null,['class' => 'form-control']) !!}
</div>
</div>
<div class="row">
<!-- Email Address : Email : Required -->
<div class="col-xs-6 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
<div class="col-sm-6 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::label('email',Lang::get('lang.email')) !!}<span class="text-red"> *</span>
{!! Form::email('email',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-6 form-group {{ $errors->has('organization') ? 'has-error' : '' }}">
<div class="col-sm-6 form-group {{ $errors->has('organization') ? 'has-error' : '' }}">
{!! Form::label('organization',Lang::get('lang.organization')) !!}
@@ -110,7 +115,7 @@ class="active"
</div>
</div>
<div class="row">
<div class="col-xs-1 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}">
<div class="col-sm-1 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}">
{!! Form::label('country_code',Lang::get('lang.country-code')) !!}
{!! $errors->first('country_code', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('country_code',null,['class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
@@ -120,32 +125,32 @@ class="active"
{!! Form::label('mobile',Lang::get('lang.mobile')) !!}
{!! Form::input('number', 'mobile',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
<div class="col-sm-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
<label for="ext">{!! Lang::get('lang.ext') !!}</label>
{!! Form::text('ext',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
<div class="col-sm-3 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
<label for="phone_number">{!! Lang::get('lang.phone') !!}</label>
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-2 form-group {{ $errors->has('active') ? 'has-error' : '' }}">
<div class="col-sm-2 form-group {{ $errors->has('active') ? 'has-error' : '' }}">
{!! Form::label('active',Lang::get('lang.status')) !!}
<div class="row">
<div class="col-xs-12">
<div class="col-sm-12">
{!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}}
</div>
<div class="col-xs-12">
<div class="col-sm-12">
{!! Form::radio('active','0') !!} {{Lang::get('lang.inactive')}}
</div>
</div>
</div>
<div class="col-xs-2 form-group {{ $errors->has('ban') ? 'has-error' : '' }}">
<div class="col-sm-2 form-group {{ $errors->has('ban') ? 'has-error' : '' }}">
{!! Form::label('ban',Lang::get('lang.ban')) !!}
<div class="row">
<div class="col-xs-12">
<div class="col-sm-12">
{!! Form::radio('ban','1',true) !!} {{Lang::get('lang.enable')}}
</div>
<div class="col-xs-12">
<div class="col-sm-12">
{!! Form::radio('ban','0') !!} {{Lang::get('lang.disable')}}
</div>
</div>
@@ -157,14 +162,25 @@ class="active"
{!! Form::textarea('internal_note',null,['class' => 'form-control', 'size' => '30x5']) !!}
</div>
</div>
<div class="box-footer">
{!! Form::submit(Lang::get('lang.update'),['class'=>'form-group btn btn-primary'])!!}
<div class="card-footer">
{!! Form::submit(Lang::get('lang.update'),['class'=>'btn btn-primary'])!!}
</div>
</div>
<script>
$(function() {
$("textarea").wysihtml5();
$("textarea").summernote({
height: 300,
tabsize: 2,
toolbar: [
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']],
['height', ['height']]
]
});
$('input[type="checkbox"]').iCheck({
checkboxClass: 'icheckbox_flat-blue'
});