diff --git a/app/assets/javascripts/OQS.js b/app/assets/javascripts/OQS.js index 831f2f5f..d2bb42bc 100755 --- a/app/assets/javascripts/OQS.js +++ b/app/assets/javascripts/OQS.js @@ -25,6 +25,9 @@ //= require custom.js $(document).on('turbolinks:load', function() { + $('#back').on('click', function () { + window.location.href = '/oqs/'; + }); $(".nav-completed").on("click", function(){ $("#completed").removeClass('hide') @@ -96,7 +99,7 @@ $(document).on('turbolinks:load', function() { +'' +'
' diff --git a/app/assets/stylesheets/OQS.scss b/app/assets/stylesheets/OQS.scss index 8258a2df..12fbd548 100755 --- a/app/assets/stylesheets/OQS.scss +++ b/app/assets/stylesheets/OQS.scss @@ -9,6 +9,37 @@ @import "BSBMaterial/style"; @import "BSBMaterial/themes/all-themes"; @import "reset"; + +/* Reset */ +.col-lg-1, .col-md-1, .col-sm-1,col-xl-1{ + padding-left: 1px ; + padding-right: 1px ; +} + +.table { + margin-bottom: 0px; +} + +select.form-control { + height: inherit !important; +} + +.form-horizontal .form-group { + margin-right: 0px !important; +} + +.card-columns { + font-size: 18px !important; +} + +@media (min-width:769px) and (max-width:1024px) { + .btn-block { + font-size: 11px !important; + } +} + +/* End Reset */ + .order-completed { background-color: #CCFFDD; } diff --git a/app/views/crm/dining_queues/index.html.erb b/app/views/crm/dining_queues/index.html.erb index fab41cdc..17c7e7c8 100755 --- a/app/views/crm/dining_queues/index.html.erb +++ b/app/views/crm/dining_queues/index.html.erb @@ -55,9 +55,9 @@
- 1) Latest Queue No - <%= @complete_queue.last.queue_no%>
- 2) Next Queue No - <% @next = @complete_queue.last.queue_no.to_i + 1%>
- <%= @next%>
+ 1) Latest Queue No - <%= @complete_queue.last.queue_no rescue 0 %>
+ 2) Next Queue No - <% @next = (@complete_queue.last.queue_no.to_i rescue 0) + 1%>
+ <%= @next rescue 0 %>
3) Today Completed Queue - <%= @complete_queue.count %>
<%= @filter %>
- -- - <%= qid.item_name %> - [x - - <%= qid.qty %> - ] -
- - - - - Order at - - - <%= qid.created_at.utc.getlocal.strftime("%d-%m-%Y %I:%M %p") %> -completed
-<%= qid.customer_name %>
-<%= qid.assigned_order_item_id %>
-