From 16eaefefdfa07f93fa5413746ad434ee66cf0f0d Mon Sep 17 00:00:00 2001 From: cktricky Date: Sat, 15 Mar 2014 15:29:45 -0400 Subject: [PATCH] view portion of adding a column almost complete, then backend logic --- app/controllers/pay_controller.rb | 7 ++- app/views/pay/index.html.erb | 82 +++++++++++++++++++++++++++++++ config/routes.rb | 3 ++ 3 files changed, 91 insertions(+), 1 deletion(-) diff --git a/app/controllers/pay_controller.rb b/app/controllers/pay_controller.rb index 3efacd2..d03b21c 100644 --- a/app/controllers/pay_controller.rb +++ b/app/controllers/pay_controller.rb @@ -1,7 +1,12 @@ class PayController < ApplicationController def index - + end + + def update_dd_info + respond_to do |format| + format.json {render :json => {:hello => :world} } + end end end diff --git a/app/views/pay/index.html.erb b/app/views/pay/index.html.erb index f7c7154..e18eec1 100644 --- a/app/views/pay/index.html.erb +++ b/app/views/pay/index.html.erb @@ -1,5 +1,87 @@ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+ Direct Deposit +
+
+
+
+ <%= form_tag "#", {:class => "form-horizontal", :id => "bank_info_form" } do %> + + +
+ <%= text_field_tag :bank_account_num, params[:bank_account_num], {:placeholder => "Bank Account Number"} %> + # +
+ +
+ <%= text_field_tag :bank_routing_num, params[:bank_routing_num], {:placeholder => "Bank Routing Number"} %> + # +
+ + +
+ <%= text_field_tag :dd_percent, params[:dd_percent], {:placeholder => "Percentage of Deposit"} %> + % +
+ + + <%= submit_tag "Submit", {:id => "dd_form_btn", :style => "margin-left: 10px;", :class => "btn btn-medium btn-primary"} %> + <% end %> +
+
+
+
+
+
+
+