From d5141c30bbe28276fe42662a489eb69b4a549343 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Wed, 25 Oct 2017 18:13:44 +0630 Subject: [PATCH] update promtion and dining charges --- app/assets/javascripts/application.js | 8 +- app/assets/stylesheets/reset.css | 6 ++ .../settings/dining_charges/_form.html.erb | 55 +++++++++-- .../settings/dining_charges/new.html.erb | 17 ---- .../settings/menu_categories/show.html.erb | 2 +- app/views/settings/promotions/_form.html.erb | 83 ++++++++-------- app/views/settings/rooms/_form.html.erb | 42 +++++--- .../settings/set_menu_items/_form.html.erb | 80 +++++++-------- .../settings/set_menu_items/index.html.erb | 4 +- .../settings/simple_menu_items/_form.html.erb | 98 +++++++++---------- app/views/settings/tables/_form.html.erb | 42 +++++--- app/views/transactions/sales/index.html.erb | 2 +- 12 files changed, 245 insertions(+), 194 deletions(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 1bf91306..e8874135 100755 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -104,10 +104,10 @@ $(document).on('turbolinks:load', function() { }); -$(document).on("focus", "[data-behaviour~='datepicker']", function(e){ - $(this).datepicker({"format": "yyyy-M-dd", "weekStart": 1, "autoclose": true}); - $('.dropdown-toggle').dropdown(); -}); +// $(document).on("focus", "[data-behaviour~='datepicker']", function(e){ +// $(this).datepicker({"format": "yyyy-M-dd", "weekStart": 1, "autoclose": true}); +// $('.dropdown-toggle').dropdown(); +// }); function export_to(path) { diff --git a/app/assets/stylesheets/reset.css b/app/assets/stylesheets/reset.css index b4dba99e..eae4b190 100644 --- a/app/assets/stylesheets/reset.css +++ b/app/assets/stylesheets/reset.css @@ -214,6 +214,12 @@ section.content { margin-top: 7px; } +.bmd-form-group .bmd-label-static{ + font-size: 0.85rem; +} +.form-group { + margin-bottom: 15px; +} /* FORM */ .input-group-addon { padding: 0rem 0rem; diff --git a/app/views/settings/dining_charges/_form.html.erb b/app/views/settings/dining_charges/_form.html.erb index acee9616..407832aa 100755 --- a/app/views/settings/dining_charges/_form.html.erb +++ b/app/views/settings/dining_charges/_form.html.erb @@ -4,15 +4,52 @@ <%= f.error_notification %>
- <%= f.input :item_code, :input_html => { :id => 'item_code' } %> - <%= f.input :unit_price, :input_html => { :id => 'unit_price'} %> - <%= f.input :taxable %> - <%= f.input :charge_type, :collection => [:hr, :day] %> - <%= f.input :minimum_free_time %> - <%= f.input :charge_block, :input_html => { :id => 'charge_block'} %> - <%= f.input :time_rounding, :collection => [:down, :up] %> - <%= f.input :time_rounding_block, :input_html => { :id => 'time_rounding_block'} %> - <%= f.input :time_rounding_block_price, :input_html => { :id => 'time_rounding_block_price'} %> + <%= f.input :item_code, :input_html => { :id => 'item_code',:class=>"col-md-9" } %> + <%= f.input :unit_price, :input_html => { :id => 'unit_price',:class=>"col-md-9"} %> + <%= f.input :taxable, :input_html => {:class=>"col-md-9"} %> + <%= f.input :charge_type, :collection => [:hr, :day], :input_html => {:class=>"col-md-8"} %> + + +
+ + access_time + + <% if !@dining_charge.minimum_free_time.nil?%> + + <% else %> + + <% end %> +
+ +
+ +
+ + access_time + + <% if !@dining_charge.charge_block.nil?%> + + <% else %> + + <% end %> +
+
+ <%= f.input :time_rounding, :collection => [:down, :up], :input_html => { :class=>"col-md-8"} %> + +
+ +
+ + access_time + + <% if !@dining_charge.time_rounding_block.nil?%> + + <% else %> + + <% end %> +
+
+ <%= f.input :time_rounding_block_price, :input_html => { :id => 'time_rounding_block_price',:class=>"col-md-8"} %>
diff --git a/app/views/settings/dining_charges/new.html.erb b/app/views/settings/dining_charges/new.html.erb index ab7009c7..05bb525c 100755 --- a/app/views/settings/dining_charges/new.html.erb +++ b/app/views/settings/dining_charges/new.html.erb @@ -1,21 +1,4 @@ - -