Existing bugs commits squashed
validation-bugsnag-email auto-update datatables adding-engine backup fixes Apply fixes from StyleCI duedate fixes Apply fixes from StyleCI style-changes changes Apply fixes from StyleCI changes-n Apply fixes from StyleCI manual-update database:sync issues bugfixes mail Apply fixes from StyleCI Apply fixes from StyleCI
This commit is contained in:

committed by
RafficMohammed

parent
2ae90d7fcb
commit
0654723809
@@ -15,12 +15,22 @@ class="nav-link active"
|
||||
@section('ticket')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
<style>
|
||||
.clear-input {
|
||||
position: absolute;
|
||||
top: 20%;
|
||||
right: 5%;
|
||||
bottom: 0;
|
||||
width: 30px;
|
||||
margin: auto;
|
||||
}
|
||||
</style>
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
<!-- Main content -->
|
||||
{!! Form::open(['route'=>'post.newticket','method'=>'post','id'=>'form']) !!}
|
||||
@if(Session::has('success'))
|
||||
@@ -191,6 +201,7 @@ class="active"
|
||||
<div class="form-group" id="duedate">
|
||||
<label>{!! Lang::get('lang.due_date') !!}:</label>
|
||||
{!! Form::text('duedate',null,['class' => 'form-control','id'=>'datemask']) !!}
|
||||
<button class="btn clear-input" id="duedates" style="display: none" type="button"><i class="fas fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
@@ -351,12 +362,26 @@ class="active"
|
||||
});
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$('#datemask').datetimepicker({
|
||||
format: 'DD/MM/YYYY'
|
||||
$(function () {
|
||||
var picker = $('#datemask').datetimepicker({
|
||||
format: 'DD/MM/YYYY',
|
||||
});
|
||||
picker.on('dp.change', function(e) {
|
||||
if (e.date) {
|
||||
$('.clear-input').show();
|
||||
} else {
|
||||
$('.clear-input').hide();
|
||||
}
|
||||
});
|
||||
|
||||
$('.clear-input').click(function() {
|
||||
$('#datemask').val('');
|
||||
$('.clear-input').hide();
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@stop
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user