diff options
author | jessib <jessib@leap.se> | 2013-03-28 11:23:14 -0700 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-07-17 10:47:12 +0200 |
commit | 95ec46beac867e1b7df17ba8a72367bbe0b140a9 (patch) | |
tree | e4ae0f2816c365a30d6e9b7ed7902c37cd925cd0 /billing/app/views/payments | |
parent | 3420d624916eb31396af2adca6562e38173c689d (diff) |
Let users select amount for payments.
Diffstat (limited to 'billing/app/views/payments')
-rw-r--r-- | billing/app/views/payments/new.html.haml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/billing/app/views/payments/new.html.haml b/billing/app/views/payments/new.html.haml index d9c41ce..1d958b9 100644 --- a/billing/app/views/payments/new.html.haml +++ b/billing/app/views/payments/new.html.haml @@ -1,10 +1,12 @@ %h1 - Payment: $#{h @amount} + Payment - if @result %div{:style => "color: red;"} = h @result.errors.size error(s) -= form_for :transaction, :params => @result && @result.params[:transaction], :errors => @result && @result.errors.for(:transaction), :builder => BraintreeHelper::BraintreeFormBuilder, :url => Braintree::TransparentRedirect.url, :html => {:autocomplete => "off"} do |f| += 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 + = f.label :amount, "Amount" + = f.text_field :amount - if !@customer = render :partial => 'non_customer_fields', :locals => {:f => f} - else |