diff options
Diffstat (limited to 'billing/app/views/payments/new.html.haml')
-rw-r--r-- | billing/app/views/payments/new.html.haml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/billing/app/views/payments/new.html.haml b/billing/app/views/payments/new.html.haml new file mode 100644 index 0000000..4523e13 --- /dev/null +++ b/billing/app/views/payments/new.html.haml @@ -0,0 +1,18 @@ +%h1 + = t(:payment) +- if @result and @result.errors.size > 0 + %div{:style => "color: red;"} + = h @result.errors.size + error(s) +- if @result and @result.transaction and @result.transaction.status == 'processor_declined' + %div{:style => "color: red;"} + = t(:processor_declined) += braintree_form_for :transaction, :html => {:autocomplete => "off"} do |f| + = f.label :amount, t(:amount) + = f.text_field :amount + - if !@customer + = render :partial => 'non_customer_fields', :locals => {:f => f} + - else + = render :partial => 'customer_data' + = hidden_field_tag :tr_data, @tr_data + = f.submit "Submit Payment", :class => 'btn btn-primary' |