Bootstrap4 :: Organization module UI updates
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
@extends('themes.default1.agent.layout.agent')
|
||||
|
||||
@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.create_user') !!}</h1>
|
||||
@@ -21,64 +25,66 @@ class="active"
|
||||
@section('content')
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<i class="fas fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@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">×</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('country_code'))
|
||||
<li class="error-message-padding">{!! $errors->first('country_code', ':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::open(['action'=>'Agent\helpdesk\UserController@store','method'=>'post']) !!}
|
||||
<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">
|
||||
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">×</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('country_code'))
|
||||
<li class="error-message-padding">{!! $errors->first('country_code', ':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-6 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
|
||||
<div class="col-sm-6 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-6 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
|
||||
<div class="col-sm-6 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>
|
||||
@@ -86,7 +92,7 @@ class="active"
|
||||
</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')) !!}
|
||||
@if ($email_mandatory->status == 1 || $email_mandatory->status == '1')
|
||||
<span class="text-red"> *</span>
|
||||
@@ -94,20 +100,20 @@ class="active"
|
||||
{!! Form::email('email',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
|
||||
<div class="col-xs-6 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}">
|
||||
<div class="col-sm-6 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">
|
||||
<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')) !!}
|
||||
{!! Form::select('org_id',[''=>'Select','Organization'=>$org],null,['class' => 'form-control','id'=>'org']) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-1 form-group {{ $errors->has('country_code') ? 'has-error' : '' }}">
|
||||
<div class="col-sm-1 form-group {{ $errors->has('country_code') ? 'has-error' : '' }}">
|
||||
{!! Form::label('country_code',Lang::get('lang.country-code')) !!}
|
||||
@if ($email_mandatory->status == 0 || $settings->status == 1)
|
||||
<span class="text-red"> *</span>
|
||||
@@ -123,21 +129,21 @@ class="active"
|
||||
@endif
|
||||
{!! 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-md-3 form-group {{ $errors->has('active') ? 'has-error' : '' }}">
|
||||
{!! Form::label('active',Lang::get('lang.status')) !!}
|
||||
<div class="row">
|
||||
<div class="col-xs-4">
|
||||
<div class="col-sm-4">
|
||||
{!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}}
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<div class="col-sm-6">
|
||||
{!! Form::radio('active','0') !!} {{Lang::get('lang.inactive')}}
|
||||
</div>
|
||||
</div>
|
||||
@@ -149,25 +155,28 @@ class="active"
|
||||
{!! Form::textarea('internal_note',null,['class' => 'form-control', 'size' => '30x5']) !!}
|
||||
</div>
|
||||
<!-- Send email to user about registration password -->
|
||||
<div class="form-group">
|
||||
<div>
|
||||
<input type="checkbox" name="send_email" checked> <label> {{ Lang::get('lang.send_password_via_email')}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'form-group btn btn-primary'])!!}
|
||||
<div class="card-footer">
|
||||
{!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!}
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(function () {
|
||||
$("textarea").wysihtml5();
|
||||
|
||||
$('input[type="checkbox"]').iCheck({
|
||||
checkboxClass: 'icheckbox_flat-blue'
|
||||
});
|
||||
$('input[type="radio"]').iCheck({
|
||||
radioClass: 'iradio_flat-blue'
|
||||
});
|
||||
|
||||
$("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']]
|
||||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@stop
|
||||
|
||||
Reference in New Issue
Block a user