From 7b2f928df0aef978ee519ad6232d42e35ece06e1 Mon Sep 17 00:00:00 2001 From: Yan Date: Tue, 7 Nov 2017 12:32:50 +0630 Subject: [PATCH 1/5] test for jade --- app/assets/javascripts/application.js | 3 --- app/assets/javascripts/login.js | 1 - app/views/origami/surveys/new.html.erb | 5 ++--- app/views/settings/menu_item_instances/index.html.erb | 2 +- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index f6005ebd..66714f33 100755 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -17,9 +17,6 @@ //= require bootstrap/js/bootstrap-material-design.min //= require jquery_nested_form //= require cable -//= require tether -//= require bootstrap/js/popper.min -//= require bootstrap/js/bootstrap-material-design.min //= require momentjs/moment //= require bootstrap-material-datetimepicker/js/bootstrap-material-datetimepicker //= require multi-select/js/jquery.multi-select.js diff --git a/app/assets/javascripts/login.js b/app/assets/javascripts/login.js index 92005cdb..28976f6b 100755 --- a/app/assets/javascripts/login.js +++ b/app/assets/javascripts/login.js @@ -11,7 +11,6 @@ // about supported directives. // //= require jquery -//= require jquery_nested_form //= require tether //= require bootstrap/js/popper.min //= require bootstrap/js/bootstrap-material-design.min diff --git a/app/views/origami/surveys/new.html.erb b/app/views/origami/surveys/new.html.erb index c7185018..05dfdf68 100755 --- a/app/views/origami/surveys/new.html.erb +++ b/app/views/origami/surveys/new.html.erb @@ -1,12 +1,11 @@ - <%= render 'form', settings_account: @settings_account %> \ No newline at end of file + <%= render 'form', survey: @survey %> \ No newline at end of file diff --git a/app/views/settings/menu_item_instances/index.html.erb b/app/views/settings/menu_item_instances/index.html.erb index 05be23d2..5c899c99 100755 --- a/app/views/settings/menu_item_instances/index.html.erb +++ b/app/views/settings/menu_item_instances/index.html.erb @@ -88,7 +88,7 @@ <% else %> <%= link_to t("views.btn.show"), settings_menu_category_set_menu_item_path(@category, settings_menu_item ),,:class=>"btn btn-primary waves-effect btn-sm" %> <%= link_to t("views.btn.edit"), edit_settings_menu_category_set_menu_item_path(@category, settings_menu_item),,:class=>"btn btn-info waves-effect btn-sm" %> - <%= link_to t("views.btn.delete"), settings_menu_category_set_menu_item_path(@category, settings_menu_item ), method: :delete, data: { confirm: 'Are you sure?' },,:class=>"btn btn-danger waves-effect btn-sm" %> + <%= link_to t("views.btn.delete"), settings_menu_category_set_menu_item_path(@category, settings_menu_item ), method: :delete, data: { confirm: 'Are you sure?' },:class=>"btn btn-danger waves-effect btn-sm" %> <% end %> <% end %> From 758b36000e3bdf97071a3875db4f5544fbf6d58e Mon Sep 17 00:00:00 2001 From: Yan Date: Tue, 7 Nov 2017 14:48:33 +0630 Subject: [PATCH 2/5] origami numpad ui fix and promotion fix --- app/assets/stylesheets/origami.scss | 16 +++++++++-- app/models/promotion.rb | 2 +- app/views/origami/payments/show.html.erb | 36 ++++++++++++++++-------- 3 files changed, 39 insertions(+), 15 deletions(-) diff --git a/app/assets/stylesheets/origami.scss b/app/assets/stylesheets/origami.scss index 39152c58..de838a1e 100755 --- a/app/assets/stylesheets/origami.scss +++ b/app/assets/stylesheets/origami.scss @@ -158,7 +158,7 @@ select.form-control { } .long{ - width:43%; + width:49%; } .sold { @@ -240,7 +240,7 @@ select.form-control { /* End Colors */ .left{ - margin-left:20px; + margin-left:1px; } .bottom{ @@ -326,3 +326,15 @@ tr.discount-item-row:hover { -moz-opacity: 1; /* mozilla */ } + +/* For Payment Page */ + +.payment-long { + width:43%; +} + +.payment-left { + margin-left: 20px; +} + +/* End Payment Page */ diff --git a/app/models/promotion.rb b/app/models/promotion.rb index bc1516cc..2edc9421 100755 --- a/app/models/promotion.rb +++ b/app/models/promotion.rb @@ -218,7 +218,7 @@ class Promotion < ApplicationRecord else foc_qty = find_second_item_qty(sale_id, promo_product.item_code) # give total qty is 1 - foc_qty = (foc_qty - foc_qty) + 1 + #foc_qty = (foc_qty - foc_qty) + 1 item = OrderItem.find_by_item_instance_code(promo_product.item_code) # total = item.price * foc_qty diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb index cfaa96bd..ec129d07 100755 --- a/app/views/origami/payments/show.html.erb +++ b/app/views/origami/payments/show.html.erb @@ -248,15 +248,15 @@
-
1000
-
3000
+
1000
+
3000
-
5000
-
10000
+
5000
+
10000
-
Pay
+
Pay
@@ -264,7 +264,10 @@
- + @@ -275,12 +278,21 @@