update pending order
This commit is contained in:
@@ -66,17 +66,26 @@
|
||||
<i class="material-icons">reply</i>
|
||||
Back
|
||||
</button>
|
||||
<% if type %>
|
||||
<button type="button" class="btn btn-block btn-primary waves-effect" id='pending_order'>
|
||||
Pending Order
|
||||
</button>
|
||||
<% end%>
|
||||
<br>
|
||||
<div class="card-header" style="padding: 0.5rem 0.25rem">
|
||||
<% if type %>
|
||||
<div class="row clearfix">
|
||||
<div class="col-md-6 ">
|
||||
<div class="col-md-6 col-lg-6 col-sm-12">
|
||||
<strong id="order-title" class="font-14">ORDER DETAILS </strong>
|
||||
</div>
|
||||
<div class="col-md-3">Select</div>
|
||||
<div class="col-md-3 m-t--5">
|
||||
<a class="btn btn-block bg-blue waves-effect select_table" data-toggle="modal" data-target="#TableModal"> Select </a>
|
||||
<div class="col-md-2 col-lg-2 col-sm-6">Table</div>
|
||||
<div class="col-md-4 col-lg-4 col-sm-6 m-t--5">
|
||||
<a class="btn btn-block bg-blue waves-effect select_table" data-toggle="modal" data-target="#TableModal">Select</a>
|
||||
<input type="hidden" name="table_id" value="" id="table_id">
|
||||
<%if @booking_id %>
|
||||
<p class="hidden" id="booking_id"><%=@booking_id%></p>
|
||||
<p class="hidden" id="customer_id"><%=@customer ? @customer.customer_id : ''%></p>
|
||||
<%end%>
|
||||
</div>
|
||||
</div>
|
||||
<% else %>
|
||||
@@ -323,7 +332,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<% if type %>
|
||||
<div class="modal fade" id="TableModal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
@@ -331,7 +341,7 @@
|
||||
<!-- <h4 class="modal-title" id="TableModalLabel">Select Table</h4> -->
|
||||
<button type="button" class="close" id="close" data-dismiss="modal" aria-hidden="true" style="font-size: 20px;">×</button>
|
||||
</div>
|
||||
<div class="modal-body" style="margin-top: -0.5rem;">
|
||||
<div class="modal-body" style="margin-top: -0.75rem;padding-top:5px">
|
||||
<h5>Table</h5>
|
||||
<div class="card-columns" style="column-count: 7;">
|
||||
<% @tables.each do |table| %>
|
||||
@@ -370,7 +380,7 @@
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
<hr>
|
||||
<hr style="margin: 5px 20px">
|
||||
<h5>Room</h5>
|
||||
<div class="card-columns" style="column-count: 7;">
|
||||
<% @rooms.each do |table| %>
|
||||
@@ -418,8 +428,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<script>
|
||||
cashier_type = "cashier"
|
||||
$(document).ready(function () {
|
||||
$(".tables").on('click', function () {
|
||||
$('.tables').css('background-color','');
|
||||
@@ -439,5 +449,8 @@
|
||||
$('.select_table').text(name)
|
||||
|
||||
});
|
||||
$('#pending_order').on('click', function () {
|
||||
window.location.href = '/origami/quick_service/pending_order';
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user