Ticket Patch
This commit is contained in:
parent
915d5e9854
commit
51d3d94ddd
4 changed files with 30 additions and 8 deletions
|
@ -88,11 +88,13 @@
|
|||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
@if($tickets->hasPages())
|
||||
<div class="card-footer">
|
||||
{{ $tickets->links() }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<!-- END CUSTOM CONTENT -->
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<!-- MAIN CONTENT -->
|
||||
<section class="content">
|
||||
<div class="container-fluid">
|
||||
<form action="{{route('ticket.new.store')}}" method="POST">
|
||||
<form action="{{route('ticket.new.store')}}" method="POST" class="ticket-form">
|
||||
@csrf
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
|
@ -92,7 +92,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
<button type="submit" class="btn btn-primary ticket-once">
|
||||
{{__('Open Ticket')}}
|
||||
</button>
|
||||
</div>
|
||||
|
@ -123,5 +123,13 @@
|
|||
</div>
|
||||
</section>
|
||||
<!-- END CONTENT -->
|
||||
<script type="text/javascript">
|
||||
$(".ticket-form").submit(function (e) {
|
||||
|
||||
$(".ticket-once").attr("disabled", true);
|
||||
return true;
|
||||
})
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
|
|
|
@ -72,8 +72,12 @@
|
|||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
@if($tickets->hasPages())
|
||||
<div class="card-footer">
|
||||
{{ $tickets->links() }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
|
|
|
@ -110,7 +110,7 @@
|
|||
</div>
|
||||
@endforeach
|
||||
<div class="comment-form">
|
||||
<form action="{{ route('ticket.reply')}}" method="POST" class="form">
|
||||
<form action="{{ route('ticket.reply')}}" method="POST" class="form reply-form">
|
||||
{!! csrf_field() !!}
|
||||
<input type="hidden" name="ticket_id" value="{{ $ticket->id }}">
|
||||
<div class="form-group{{ $errors->has('ticketcomment') ? ' has-error' : '' }}">
|
||||
|
@ -122,7 +122,7 @@
|
|||
@endif
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<button type="submit" class="btn btn-primary reply-once">Submit</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -133,5 +133,13 @@
|
|||
</div>
|
||||
</section>
|
||||
<!-- END CONTENT -->
|
||||
<script type="text/javascript">
|
||||
$(".reply-form").submit(function (e) {
|
||||
|
||||
$(".reply-once").attr("disabled", true);
|
||||
return true;
|
||||
})
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
|
|
Loading…
Reference in a new issue