Bootstrap4 :: Kb category module UI updates

This commit is contained in:
Sakthi002
2020-12-29 18:40:01 +05:30
committed by Manish Verma
parent 84aa8f803d
commit 66439f8d1c
13 changed files with 725 additions and 544 deletions

View File

@@ -1,17 +1,21 @@
@extends('themes.default1.agent.layout.agent')
@section('Tools')
class="active"
class="nav-link active"
@stop
@section('tools-bar')
active
@stop
@section('tools')
@section('tool')
class="active"
@stop
@section('tools')
class="nav-link active"
@stop
@section('PageHeader')
<h1>{{Lang::get('lang.canned_response')}}</h1>
@stop
@@ -20,15 +24,15 @@ class="active"
@section('content')
<!-- open a form -->
{!! Form::open(['route'=>'canned.store','method' => 'patch']) !!}
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">{!! Lang::get('lang.create') !!} </h3>
<div class="card card-light">
<div class="card-header">
<h3 class="card-title">{!! Lang::get('lang.create') !!} </h3>
</div>
<div class="box-body">
<div class="card-body">
@if(Session::has('errors'))
<?php //dd($errors); ?>
<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">&times;</button>
<br/>
@@ -42,25 +46,36 @@ class="active"
@endif
<div class="row">
<!-- username -->
<div class="col-xs-6 form-group {{ $errors->has('title') ? 'has-error' : '' }}">
<div class="col-sm-6 form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title',Lang::get('lang.title')) !!} <span class="text-red"> *</span>
{!! Form::text('title',null,['class' => 'form-control']) !!}
</div>
<!-- firstname -->
<div class="col-xs-12 form-group {{ $errors->has('message') ? 'has-error' : '' }}">
<div class="col-sm-12 form-group {{ $errors->has('message') ? 'has-error' : '' }}">
{!! Form::label('message',Lang::get('lang.message')) !!}<span class="text-red"> *</span>
{!! Form::textarea('message',null,['class' => 'form-control']) !!}
</div>
</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() {
//Add text editor
$("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']]
]
});
});
</script>
@stop

View File

@@ -2,17 +2,21 @@
@extends('themes.default1.agent.layout.agent')
@section('Tools')
class="active"
class="nav-link active"
@stop
@section('tools-bar')
active
@stop
@section('tools')
@section('tool')
class="active"
@stop
@section('tools')
class="nav-link active"
@stop
@section('PageHeader')
<h1>{{Lang::get('lang.canned_response')}}</h1>
@stop
@@ -20,16 +24,10 @@ class="active"
@section('content')
<!-- open a form -->
{!! Form::model($canned, ['url' => 'canned/update/'.$canned->id,'method' => 'PATCH'] )!!}
<!-- <section class="content"> -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">{!! Lang::get('lang.edit') !!}</h3>
</div>
<div class="box-body">
@if(Session::has('errors'))
@if(Session::has('errors'))
<?php //dd($errors); ?>
<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">&times;</button>
<br/>
@@ -41,27 +39,45 @@ class="active"
@endif
</div>
@endif
<!-- <section class="content"> -->
<div class="card card-light">
<div class="card-header">
<h3 class="card-title">{!! Lang::get('lang.edit') !!}</h3>
</div>
<div class="card-body">
<div class="row">
<!-- username -->
<div class="col-xs-6 form-group {{ $errors->has('title') ? 'has-error' : '' }}">
<div class="col-sm-6 form-group {{ $errors->has('title') ? 'has-error' : '' }}">
{!! Form::label('title',Lang::get('lang.title')) !!} <span class="text-red"> *</span>
{!! Form::text('title',null,['class' => 'form-control']) !!}
</div>
<!-- firstname -->
<div class="col-xs-12 form-group {{ $errors->has('message') ? 'has-error' : '' }}">
<div class="col-sm-12 form-group {{ $errors->has('message') ? 'has-error' : '' }}">
{!! Form::label('message',Lang::get('lang.message')) !!} <span class="text-red"> *</span>
{!! Form::textarea('message',null,['class' => 'form-control']) !!}
</div>
</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() {
//Add text editor
$("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']]
]
});
});
</script>
@stop

View File

@@ -1,35 +1,32 @@
@extends('themes.default1.agent.layout.agent')
@section('Tools')
class="active"
class="nav-link active"
@stop
@section('tools-bar')
active
@stop
@section('tools')
@section('tool')
class="active"
@stop
@section('tools')
class="nav-link active"
@stop
@section('PageHeader')
<h1>{{Lang::get('lang.tools')}}</h1>
@stop
<!-- content -->
@section('content')
<div class="box box-primary">
<div class="box-header with-border">
<h2 class="box-title">{!! Lang::get('lang.canned_response') !!}</h2><a href="{{route('canned.create')}}" class="btn btn-primary pull-right">{!! Lang::get('lang.create_canned_response') !!}</a></div>
<div class="box-body table-responsive">
<?php
$Canneds = App\Model\helpdesk\Agent_panel\Canned::where('user_id', '=', Auth::user()->id)->paginate(20);
?>
<!-- check whether success or not -->
<!-- check whether success or not -->
{{-- Success message --}}
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"></i>
<i class="fas fa-check-circle"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@@ -37,12 +34,24 @@ class="active"
{{-- failure message --}}
@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">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="card card-light">
<div class="card-header">
<h3 class="card-title">{!! Lang::get('lang.canned_response') !!}</h3>
<div class="card-tools">
<a href="{{route('canned.create')}}" class="btn btn-default btn-tool"><i class="fas fa-plus"> </i>
{!! Lang::get('lang.create_canned_response') !!}</a>
</div>
</div>
<div class="card-body">
<?php
$Canneds = App\Model\helpdesk\Agent_panel\Canned::where('user_id', '=', Auth::user()->id)->paginate(20);
?>
<!-- Agent table -->
<table class="table table-bordered table-hover" id="example1" >
<tr>
@@ -54,11 +63,11 @@ class="active"
<td>{{$Canned->title }}</td>
<td>
{!! Form::open(['route'=>['canned.destroy', $Canned->id],'method'=>'DELETE']) !!}
<a data-toggle="modal" data-target="#view{!! $Canned->id !!}" href="#" class="btn btn-info btn-xs btn-flat" onClick="updateModelTitle('{{$Canned->title}}')">{!! Lang::get('lang.view') !!}</a>
<a href="{!! URL::route('canned.edit',$Canned->id) !!}" class="btn btn-primary btn-xs btn-flat">{!! Lang::get('lang.edit') !!}</a>
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> '.Lang::get('lang.delete'),
<a data-toggle="modal" data-target="#view{!! $Canned->id !!}" href="#" class="btn btn-info btn-xs" onClick="updateModelTitle('{{$Canned->title}}')">{!! Lang::get('lang.view') !!}</a>
<a href="{!! URL::route('canned.edit',$Canned->id) !!}" class="btn btn-primary btn-xs">{!! Lang::get('lang.edit') !!}</a>
{!! Form::button(' '.Lang::get('lang.delete'),
['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'class'=> 'btn btn-warning btn-xs',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{!! Form::close() !!}
@@ -69,14 +78,16 @@ class="active"
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"></h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
</div>
<div class="modal-body">
<p><pre>{!! $Canned->message !!}</pre></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal" id="dismis6">{!! Lang::get('lang.close') !!}</button>
<button type="button" class="btn btn-default" data-dismiss="modal" id="dismis6">{!! Lang::get('lang.close') !!}</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->