From 3c756949d1c683c0056c7fc3dbbe903f6130d465 Mon Sep 17 00:00:00 2001 From: Nweni Date: Tue, 6 Jun 2017 15:32:24 +0630 Subject: [PATCH 1/2] payment --- app/assets/stylesheets/orgiami.scss | 4 + .../origami/payments_controller.rb | 2 +- app/views/origami/home/index.html.erb | 13 +-- app/views/origami/request_bills/show.html.erb | 87 +++++++++++++------ config/routes.rb | 4 +- 5 files changed, 75 insertions(+), 35 deletions(-) diff --git a/app/assets/stylesheets/orgiami.scss b/app/assets/stylesheets/orgiami.scss index 70e1fe8b..327c5897 100644 --- a/app/assets/stylesheets/orgiami.scss +++ b/app/assets/stylesheets/orgiami.scss @@ -25,3 +25,7 @@ .long{ width:100% } + +.purple { + background-color:#7a62d3; +} diff --git a/app/controllers/origami/payments_controller.rb b/app/controllers/origami/payments_controller.rb index a09b81fe..3fa3aa9b 100644 --- a/app/controllers/origami/payments_controller.rb +++ b/app/controllers/origami/payments_controller.rb @@ -2,7 +2,6 @@ class Origami::PaymentsController < BaseOrigamiController def index - end def create @@ -11,4 +10,5 @@ class Origami::PaymentsController < BaseOrigamiController def show end + end diff --git a/app/views/origami/home/index.html.erb b/app/views/origami/home/index.html.erb index 78f59422..4897407d 100644 --- a/app/views/origami/home/index.html.erb +++ b/app/views/origami/home/index.html.erb @@ -312,14 +312,15 @@ $( document ).ready(function() { window.location.href = '/origami/request_bills/'+ table_or_order_id return false; }); + + $('#pay').click(function() { + window.location.href = '/origami/sale/'+ pay_sale_id + "/payment" + return false; + }); + }); -$( document ).ready(function() { - $('#pay').click(function() { - window.location.href = '/origami/sale/'+ pay_sale_id + "/payment" - return false; - }); -}); +