diff --git a/app/assets/javascripts/BSBMaterial/admin.js b/app/assets/javascripts/BSBMaterial/admin.js index f670db1f..8366ea20 100755 --- a/app/assets/javascripts/BSBMaterial/admin.js +++ b/app/assets/javascripts/BSBMaterial/admin.js @@ -44,7 +44,7 @@ $.AdminBSB.options = { /* Left Sidebar - Function ================================================================================================= * You can manage the left sidebar menu options -* +* */ $.AdminBSB.leftSideBar = { activate: function () { @@ -157,7 +157,7 @@ $.AdminBSB.leftSideBar = { /* Right Sidebar - Function ================================================================================================ * You can manage the right sidebar menu options -* +* */ $.AdminBSB.rightSideBar = { activate: function () { @@ -189,7 +189,7 @@ $.AdminBSB.rightSideBar = { /* Searchbar - Function ================================================================================================ * You can manage the search bar -* +* */ var $searchBar = $('.search-bar'); $.AdminBSB.search = { @@ -226,7 +226,7 @@ $.AdminBSB.search = { /* Navbar - Function ======================================================================================================= * You can manage the navbar -* +* */ $.AdminBSB.navbar = { activate: function () { @@ -256,7 +256,7 @@ $.AdminBSB.navbar = { /* Input - Function ======================================================================================================== * You can manage the inputs(also textareas) with name of class 'form-control' -* +* */ $.AdminBSB.input = { activate: function () { @@ -293,7 +293,7 @@ $.AdminBSB.input = { /* Form - Select - Function ================================================================================================ * You can manage the 'select' of form elements -* +* */ $.AdminBSB.select = { activate: function () { @@ -304,7 +304,7 @@ $.AdminBSB.select = { /* DropdownMenu - Function ================================================================================================= * You can manage the dropdown menu -* +* */ $.AdminBSB.dropdownMenu = { @@ -382,7 +382,7 @@ $.AdminBSB.dropdownMenu = { /* Browser - Function ====================================================================================================== * You can manage browser -* +* */ var edge = 'Microsoft Edge'; var ie10 = 'Internet Explorer 10'; @@ -454,5 +454,8 @@ $(document).ready(function() { $.AdminBSB.select.activate(); $.AdminBSB.search.activate(); - setTimeout(function () { $('.page-loader-wrapper').fadeOut(); }, 50); -}); \ No newline at end of file + if (window.location.href.substring(window.location.href.lastIndexOf('/') + 1) == "food_court#") { + }else{ + setTimeout(function () { $('.page-loader-wrapper').fadeOut(); }, 50); + } +}); diff --git a/app/assets/javascripts/BSBMaterial/turbolink_admin.js b/app/assets/javascripts/BSBMaterial/turbolink_admin.js index 50a3a8a2..12e8b751 100644 --- a/app/assets/javascripts/BSBMaterial/turbolink_admin.js +++ b/app/assets/javascripts/BSBMaterial/turbolink_admin.js @@ -44,7 +44,7 @@ $.AdminBSB.options = { /* Left Sidebar - Function ================================================================================================= * You can manage the left sidebar menu options -* +* */ $.AdminBSB.leftSideBar = { activate: function () { @@ -157,7 +157,7 @@ $.AdminBSB.leftSideBar = { /* Right Sidebar - Function ================================================================================================ * You can manage the right sidebar menu options -* +* */ $.AdminBSB.rightSideBar = { activate: function () { @@ -189,7 +189,7 @@ $.AdminBSB.rightSideBar = { /* Searchbar - Function ================================================================================================ * You can manage the search bar -* +* */ var $searchBar = $('.search-bar'); $.AdminBSB.search = { @@ -226,7 +226,7 @@ $.AdminBSB.search = { /* Navbar - Function ======================================================================================================= * You can manage the navbar -* +* */ $.AdminBSB.navbar = { activate: function () { @@ -256,7 +256,7 @@ $.AdminBSB.navbar = { /* Input - Function ======================================================================================================== * You can manage the inputs(also textareas) with name of class 'form-control' -* +* */ $.AdminBSB.input = { activate: function () { @@ -293,7 +293,7 @@ $.AdminBSB.input = { /* Form - Select - Function ================================================================================================ * You can manage the 'select' of form elements -* +* */ $.AdminBSB.select = { activate: function () { @@ -304,7 +304,7 @@ $.AdminBSB.select = { /* DropdownMenu - Function ================================================================================================= * You can manage the dropdown menu -* +* */ $.AdminBSB.dropdownMenu = { @@ -382,7 +382,7 @@ $.AdminBSB.dropdownMenu = { /* Browser - Function ====================================================================================================== * You can manage browser -* +* */ var edge = 'Microsoft Edge'; var ie10 = 'Internet Explorer 10'; @@ -455,4 +455,4 @@ $(document).on('turbolinks:load', function() { $.AdminBSB.search.activate(); setTimeout(function () { $('.page-loader-wrapper').fadeOut(); }, 50); -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/addorder.js b/app/assets/javascripts/addorder.js index 7b98d03a..6ea9abf6 100755 --- a/app/assets/javascripts/addorder.js +++ b/app/assets/javascripts/addorder.js @@ -481,7 +481,7 @@ $(function() { parent = $('.set-item').attr('data-parent'); total = qty * price ; row ="0) { summary_items_filter(); calculate_sub_total(); - + $('.set-bg-color').css({ + 'background-color': '#2091F3', + 'color': '#fff' + }) + $('.summary-items tbody tr').removeClass('set-bg-color'); }else{ swal("Opps", "Please enter number for qty ","warning"); } diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index bd9018fb..1ef66129 100755 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -65,7 +65,7 @@ $(document).ready(function() { clearButton: true, date: false }); - + // Image Upload $("#simple_menu_item_image_path").fileinput({ previewFileType: "image", @@ -148,7 +148,7 @@ $(document).ready(function() { '\n', } }); - + $("#commissioner_image_path").fileinput({ previewFileType: "image", allowedFileExtensions: ["jpg", "gif", "png"], @@ -167,7 +167,7 @@ $(document).ready(function() { ' {caption}\n' + '\n', } - }); + }); $("#employee_image_path").fileinput({ previewFileType: "image", @@ -187,7 +187,7 @@ $(document).ready(function() { ' {caption}\n' + '\n', } - }); + }); $("#shop_image").fileinput({ previewFileType: "image", @@ -227,7 +227,7 @@ $(document).ready(function() { ' {caption}\n' + '\n', } - }); + }); // first input focus for all form $('form:first *input[data-behaviour!=datepicker]:input[type!=hidden]:first').focus(); @@ -252,4 +252,4 @@ Chart.scaleService.updateScaleDefaults('linear', { } } }); -/* chartkick js YAxis value override */ \ No newline at end of file +/* chartkick js YAxis value override */ diff --git a/app/assets/javascripts/custom.js b/app/assets/javascripts/custom.js index 620b9321..2e03aa95 100644 --- a/app/assets/javascripts/custom.js +++ b/app/assets/javascripts/custom.js @@ -13,6 +13,37 @@ $(document).ready(function() { touchScrollStep : 50 }); + $('#foodcourt-slimscroll').slimScroll({ + height: '100%', + size: '5px', + color: 'rgba(0,0,0,0.5)', + alwaysVisible: false, + borderRadius: '0', + railBorderRadius: '0', + touchScrollStep : 50 + }); + + $('#foodcourt-order-slimscroll').slimScroll({ + height: '100%', + size: '5px', + color: 'rgba(0,0,0,0.5)', + alwaysVisible: false, + borderRadius: '0', + railBorderRadius: '0', + touchScrollStep : 50 + }); + + + $('#foodcourt-menu-slimscroll').slimScroll({ + height: '100%', + size: '5px', + color: 'rgba(0,0,0,0.5)', + alwaysVisible: false, + borderRadius: '0', + railBorderRadius: '0', + touchScrollStep : 50 + }); + $('#table-slimscroll').slimScroll({ height: height, size: '5px', diff --git a/app/assets/stylesheets/origami.scss b/app/assets/stylesheets/origami.scss index b971b6dd..c2639fa3 100755 --- a/app/assets/stylesheets/origami.scss +++ b/app/assets/stylesheets/origami.scss @@ -30,7 +30,8 @@ } section.content { - margin: 70px 5px 0 225px; + margin: 0 5px 0 5px; + padding: 64px 0 0 0; } .table { diff --git a/app/assets/stylesheets/reset.css b/app/assets/stylesheets/reset.css index c82d7cf7..85f2cfb4 100644 --- a/app/assets/stylesheets/reset.css +++ b/app/assets/stylesheets/reset.css @@ -1,3 +1,32 @@ +html, body { + height: 100%; +} + +.content { + height: 100%; +} + +.slimScrollDiv { + flex: 1 1 0!important; +} + +.flex-grow-1 { + flex-grow: 1 !important; +} +.flex-1 { + flex: 1 !important; +} + +table.fixed-header { + position: relative; + + thead th{ + background: white; + position: sticky; + top: 0; + } +} + .material-icons { font-family: 'Material Icons'; font-weight: normal; @@ -93,7 +122,8 @@ } section.content { - margin: 70px 15px 0 225px; + margin: 0 5px 0 5px; + padding: 64px 0 0 0; } .sidebar { @@ -123,7 +153,7 @@ section.content { .card .body { font-size: 14px; color: #555; - padding: 10px; + padding: 10px; } .card .card-header { @@ -150,15 +180,15 @@ section.content { } .checkbox label input[type=checkbox], label.checkbox-inline input[type=checkbox] { - position: relative; - left: 0; - z-index: -1; - width: 13px; - height: 13px; + position: relative; + left: 0; + z-index: -1; + width: 13px; + height: 13px; margin: 5px 5px 0 0; overflow: hidden; pointer-events: none; - opacity: 1; + opacity: 1; } @@ -178,8 +208,8 @@ section.content { } .btn:not(.btn-link):not(.btn-circle) span { position: relative; - top: 0px; - margin-left: 0px; + top: 0px; + margin-left: 0px; } .nav { padding-left: 0; @@ -199,7 +229,7 @@ section.content { } .nav-tabs li a.active { - color: #000 !important; + color: #000 !important; border-bottom: 2px solid #2196F3 !important; } @@ -330,4 +360,4 @@ div.online-order-margin > div > span { }*/ /* order-no color */ -/* *************************************************** */ \ No newline at end of file +/* *************************************************** */ diff --git a/app/controllers/foodcourt/food_court_controller.rb b/app/controllers/foodcourt/food_court_controller.rb index f6a94b9c..f1a86c9d 100644 --- a/app/controllers/foodcourt/food_court_controller.rb +++ b/app/controllers/foodcourt/food_court_controller.rb @@ -7,8 +7,7 @@ class Foodcourt::FoodCourtController < ApplicationController end end - def index - @product = Product.all + def index if params[:sale_id].present? sale =Sale.find(params[:sale_id]) if sale diff --git a/app/views/foodcourt/addorders/detail.html.erb b/app/views/foodcourt/addorders/detail.html.erb index 2a2fdabc..389d53ac 100644 --- a/app/views/foodcourt/addorders/detail.html.erb +++ b/app/views/foodcourt/addorders/detail.html.erb @@ -2,7 +2,7 @@ <%= javascript_include_tag 'addorder', 'data-turbolinks-track': 'reload' %> <% type = request.path_info.include?('quick_service') || request.path_info.include?('food_court')%> <% modify_order = request.path_info.include?('modify_order')%> -
+
@@ -10,8 +10,8 @@ -
-