finished order tab view and customer tab
This commit is contained in:
26
app/views/crm/home/_booking.html.erb
Normal file
26
app/views/crm/home/_booking.html.erb
Normal file
@@ -0,0 +1,26 @@
|
||||
<!--- Booking Items -->
|
||||
<div class="card-columns" style="padding-top:10px">
|
||||
|
||||
<% @i = 0 %>
|
||||
<% @booking.each do |booking| %>
|
||||
<div class="card">
|
||||
<div class="card-block">
|
||||
<h4 class="card-title">
|
||||
<%= @i += 1 %> . <%= booking.dining_facility.name %>
|
||||
- <%= booking.item_name %>
|
||||
</h4>
|
||||
<p class="card-text">Medium, Fries, Salad
|
||||
</p>
|
||||
<p class="card-text">
|
||||
<small class="text-muted">
|
||||
Order at <%= booking.checkin_at.strftime("%H,%m") %>, <%= booking.checkin_by %>
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<button id="#id" class="btn btn-primary btn-lg btn-block">COMPLETE</button>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<!--- end of Items-->
|
||||
</div>
|
||||
Reference in New Issue
Block a user