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/payments/new.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'billing/app/views/payments') diff --git a/billing/app/views/payments/new.html.haml b/billing/app/views/payments/new.html.haml index 14f6697..0d9452f 100644 --- a/billing/app/views/payments/new.html.haml +++ b/billing/app/views/payments/new.html.haml @@ -7,7 +7,7 @@ - if @result and @result.transaction.status == 'processor_declined' %div{:style => "color: red;"} Processor Declined -= form_for :transaction, :params => @result && @result.params[:transaction], :errors => @result && @result.errors.for(:transaction), :builder => BraintreeFormHelper::BraintreeFormBuilder, :url => Braintree::TransparentRedirect.url, :html => {:autocomplete => "off"} do |f| #TODO: add helper += braintree_form_for :transaction, :html => {:autocomplete => "off"} do |f| = f.label :amount, "Amount" = f.text_field :amount - if !@customer @@ -15,4 +15,4 @@ - else = render :partial => 'customer_data' = hidden_field_tag :tr_data, @tr_data - = f.submit "Submit Payment", :class => :btn \ No newline at end of file + = f.submit "Submit Payment", :class => :btn -- cgit v1.2.3