update v1.0.7.9 R.C.

This is a Release Candidate. We are still testing.
This commit is contained in:
Sujit Prasad
2016-08-03 20:04:36 +05:30
parent 8b6b924d09
commit ffa56a43cb
3830 changed files with 181529 additions and 495353 deletions

View File

@@ -16,7 +16,10 @@ 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">
@@ -72,19 +75,29 @@ class="active"
<div class="form-group">
<div class="row">
<div class="col-md-6">
<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']) !!}
<!-- {!! Form::text('email',null,['class' => 'form-control'],['id' => 'email']) !!} -->
<input type="text" name="email" id="email" class="form-control">
</div>
</div>
<div class="col-md-6">
<div class="col-md-4">
<!-- email -->
<div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
{!! Form::label('email',Lang::get('lang.first_name')) !!} <span class="text-red"> *</span>
<!-- {!! Form::text('email',null,['class' => 'form-control'],['id' => 'email']) !!} -->
<input type="text" name="first_name" id="first_name" class="form-control">
</div>
</div>
<div class="col-md-4">
<!-- full name -->
<div class="form-group {{ $errors->has('fullname') ? 'has-error' : '' }}">
{!! Form::label('fullname',Lang::get('lang.full_name')) !!} <span class="text-red"> *</span>
{!! Form::text('fullname',null,['class' => 'form-control']) !!}
<div class="form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
{!! Form::label('fullname',Lang::get('lang.last_name')) !!} <span class="text-red"></span>
<input type="text" name="last_name" id="last_name" class="form-control">
</div>
</div>
</div>
@@ -92,13 +105,13 @@ class="active"
<div class="col-md-1 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}">
{!! Form::label('code',Lang::get('lang.country-code')) !!}
{!! Form::text('code',null,['class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
{!! Form::text('code',null,['class' => 'form-control', 'id' => 'country_code', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
</div>
<div class="col-md-5">
<!-- phone -->
<div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
<label>{!! Lang::get('lang.mobile_number') !!}:</label>
{!! Form::input('number','mobile',null,['class' => 'form-control']) !!}
{!! Form::input('number','mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
{!! $errors->first('mobile', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
@@ -106,7 +119,8 @@ class="active"
<!-- phone -->
<div class="form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
<label>{!! Lang::get('lang.phone') !!}:</label>
{!! Form::input('number','phone',null,['class' => 'form-control']) !!}
<input type="text" name="phone_number" id="phone_number" class="form-control">
<!-- {!! Form::input('number','phone',null,['class' => 'form-control']) !!} -->
{!! $errors->first('phone', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
@@ -132,7 +146,7 @@ class="active"
<div class="form-group">
<label>{!! Lang::get('lang.help_topic') !!}:</label>
<!-- helptopic -->
<?php $helptopic = App\Model\helpdesk\Manage\Help_topic::all(); ?>
<?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']) !!}
</div>
</div>
@@ -221,6 +235,24 @@ class="active"
$("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() {
var duedate = document.getElementById('datemask').value;
@@ -242,7 +274,9 @@ class="active"
$(function() {
$('#datemask').datepicker({changeMonth: true, changeYear: true}).mask('99/99/9999');
});
</script>
</script>
@stop