update 1.0.8.0
Commits for version update
This commit is contained in:
@@ -16,10 +16,7 @@ class="active"
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
@stop
|
||||
|
||||
|
||||
@section('content')
|
||||
|
||||
|
||||
<!-- Main content -->
|
||||
{!! Form::open(['route'=>'post.newticket','method'=>'post','id'=>'form']) !!}
|
||||
<div class="box box-primary">
|
||||
@@ -84,12 +81,15 @@ class="active"
|
||||
<div class="col-md-4">
|
||||
<!-- email -->
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.email')) !!} <span class="text-red"> *</span>
|
||||
<!-- {!! Form::text('email',null,['class' => 'form-control'],['id' => 'email']) !!} -->
|
||||
<input type="text" name="email" id="email" class="form-control">
|
||||
{!! Form::label('email',Lang::get('lang.email')) !!}
|
||||
@if ($email_mandatory->status == 1)
|
||||
<span class="text-red"> *</span>
|
||||
@endif
|
||||
|
||||
{!! Form::text('email',null,['class' => 'form-control', 'id' => 'email']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4">
|
||||
<!-- email -->
|
||||
<div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
|
||||
@@ -109,16 +109,23 @@ class="active"
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-1 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}">
|
||||
|
||||
<div class="form-group {{ $errors->has('code') ? 'has-error' : '' }}">
|
||||
{!! Form::label('code',Lang::get('lang.country-code')) !!}
|
||||
@if ($email_mandatory->status == 0 || $settings->status == 1)
|
||||
<span class="text-red"> *</span>
|
||||
@endif
|
||||
|
||||
{!! Form::text('code',null,['class' => 'form-control', 'id' => 'country_code', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<!-- phone -->
|
||||
<div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
<label>{!! Lang::get('lang.mobile_number') !!}:</label>
|
||||
@if ($email_mandatory->status == 0 || $settings->status == 1)
|
||||
<span class="text-red"> *</span>
|
||||
@endif
|
||||
{!! Form::input('number','mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
{!! $errors->first('mobile', '<spam class="help-block text-red">:message</spam>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
@@ -151,8 +158,8 @@ class="active"
|
||||
<div class="form-group">
|
||||
<label>{!! Lang::get('lang.help_topic') !!}:</label>
|
||||
<!-- helptopic -->
|
||||
<?php $helptopic = App\Model\helpdesk\Manage\Help_topic::where('status','=',1)->get(); ?>
|
||||
{!! Form::select('helptopic', ['Helptopic'=>$helptopic->lists('topic','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
<?php $helptopic = App\Model\helpdesk\Manage\Help_topic::where('status', '=', 1)->get(); ?>
|
||||
{!! Form::select('helptopic', ['Helptopic'=>$helptopic->lists('topic','id')->toArray()],null,['class' => 'form-control select','id'=>'selectid']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
@@ -178,6 +185,7 @@ class="active"
|
||||
{!! Form::select('assignto', [''=>'Select an Agent','Agents'=>$agents->lists('first_name','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div id="response" class="col-md-6 form-group"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -217,11 +225,13 @@ class="active"
|
||||
<label>{!! Lang::get('lang.priority') !!}:</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php $Priority = App\Model\helpdesk\Ticket\Ticket_Priority::all(); ?>
|
||||
<?php $Priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('status','=',1)->get(); ?>
|
||||
{!! Form::select('priority', ['Priority'=>$Priority->lists('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
@@ -236,30 +246,34 @@ class="active"
|
||||
</div><!-- /. box -->
|
||||
{!! Form::close() !!}
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$(document).ready(function () {
|
||||
var helpTopic = $("#selectid").val();
|
||||
send(helpTopic);
|
||||
$("#selectid").on("change", function () {
|
||||
helpTopic = $("#selectid").val();
|
||||
send(helpTopic);
|
||||
});
|
||||
function send(helpTopic) {
|
||||
$.ajax({
|
||||
url: "{{url('/get-helptopic-form')}}",
|
||||
data: {'helptopic': helpTopic},
|
||||
type: "GET",
|
||||
dataType: "html",
|
||||
success: function (response) {
|
||||
$("#response").html(response);
|
||||
},
|
||||
error: function (response) {
|
||||
$("#response").html(response);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
$(function () {
|
||||
$("textarea").wysihtml5();
|
||||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
$("#email").autocomplete({
|
||||
source:"{!!URL::route('post.newticket.autofill')!!}",
|
||||
minLength:1,
|
||||
select:function(evt, ui) {
|
||||
// this.form.phone_number.value = ui.item.phone_number;
|
||||
// this.form.user_name.value = ui.item.user_name;
|
||||
this.form.first_name.value = ui.item.first_name;
|
||||
this.form.last_name.value = ui.item.last_name;
|
||||
this.form.country_code.value = ui.item.country_code;
|
||||
this.form.phone_number.value = ui.item.phone_number;
|
||||
this.form.mobile.value = ui.item.mobile;
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#form').submit(function() {
|
||||
$(document).ready(function () {
|
||||
$('#form').submit(function () {
|
||||
var duedate = document.getElementById('datemask').value;
|
||||
if (duedate) {
|
||||
var pattern = /^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/;
|
||||
@@ -275,12 +289,39 @@ class="active"
|
||||
}
|
||||
});
|
||||
});
|
||||
$(document).ready(function(){
|
||||
$("#email").autocomplete({
|
||||
source:"{!!URL::route('post.newticket.autofill')!!}",
|
||||
minLength:1,
|
||||
select:function(evt, ui) {
|
||||
// this.form.phone_number.value = ui.item.phone_number;
|
||||
// this.form.user_name.value = ui.item.user_name;
|
||||
if(ui.item.first_name) {
|
||||
this.form.first_name.value = ui.item.first_name;
|
||||
}
|
||||
if(ui.item.last_name) {
|
||||
this.form.last_name.value = ui.item.last_name;
|
||||
}
|
||||
if(ui.item.country_code) {
|
||||
this.form.country_code.value = ui.item.country_code;
|
||||
}
|
||||
if(ui.item.phone_number) {
|
||||
this.form.phone_number.value = ui.item.phone_number;
|
||||
}
|
||||
if(ui.item.mobile) {
|
||||
this.form.mobile.value = ui.item.mobile;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$(function () {
|
||||
$('#datemask').datepicker({changeMonth: true, changeYear: true}).mask('99/99/9999');
|
||||
});
|
||||
</script>
|
||||
|
||||
@stop
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@stop
|
||||
Reference in New Issue
Block a user