From 3a0948339984a108ada449c3a5dbbc9086a2af26 Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 11 Jul 2013 12:43:53 +0200 Subject: billing: helper for the typical BraintreeForm --- billing/app/views/credit_card_info/edit.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'billing/app/views/credit_card_info') diff --git a/billing/app/views/credit_card_info/edit.html.haml b/billing/app/views/credit_card_info/edit.html.haml index 57322de..39269ca 100644 --- a/billing/app/views/credit_card_info/edit.html.haml +++ b/billing/app/views/credit_card_info/edit.html.haml @@ -3,7 +3,7 @@ #total-errors{:style => "color:red;"} = h(@result.errors.size) error(s) -= form_for :credit_card,:url => Braintree::TransparentRedirect.url, :params => @result && @result.params[:credit_card], :builder => BraintreeFormHelper::BraintreeFormBuilder, :existing => @credit_card, :errors => @result && @result.errors.for(:credit_card) do |f| | += braintree_form_for :credit_card, :existing => @credit_card do |f| = field_set_tag "Credit Card" do %dl %dt= f.label :number, 'Number' @@ -14,4 +14,4 @@ %dd= f.text_field :cvv = hidden_field_tag :tr_data, @tr_data = f.submit 'Save Payment Info', :class => :btn - = link_to t(:cancel), edit_customer_path(@credit_card.customer_id), :class => :btn \ No newline at end of file + = link_to t(:cancel), edit_customer_path(@credit_card.customer_id), :class => :btn -- cgit v1.2.3