diff options
author | jessib <jessib@riseup.net> | 2013-07-23 13:33:02 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-07-23 13:33:02 -0700 |
commit | f757a6d519bfa27ef8d70f9bf1745626120225f1 (patch) | |
tree | 46df0316c1f7f856381b03d96f46678202c95e07 | |
parent | 979aa417aa722c5e550219bff90ec757ac098a0f (diff) |
More little display cleanup.
-rw-r--r-- | billing/app/views/payments/_customer_data.html.haml | 1 | ||||
-rw-r--r-- | billing/app/views/payments/new.html.haml | 10 |
2 files changed, 5 insertions, 6 deletions
diff --git a/billing/app/views/payments/_customer_data.html.haml b/billing/app/views/payments/_customer_data.html.haml index f6c82a1..87b8209 100644 --- a/billing/app/views/payments/_customer_data.html.haml +++ b/billing/app/views/payments/_customer_data.html.haml @@ -12,5 +12,4 @@ %dd= @default_cc.masked_number %dt Expiration Date %dd= @default_cc.expiration_date -.form-actions = link_to t(:edit_saved_data), edit_customer_path(@customer), :class => :btn diff --git a/billing/app/views/payments/new.html.haml b/billing/app/views/payments/new.html.haml index 0d9452f..4523e13 100644 --- a/billing/app/views/payments/new.html.haml +++ b/billing/app/views/payments/new.html.haml @@ -1,18 +1,18 @@ %h1 - Payment + = t(:payment) - if @result and @result.errors.size > 0 %div{:style => "color: red;"} = h @result.errors.size error(s) -- if @result and @result.transaction.status == 'processor_declined' +- if @result and @result.transaction and @result.transaction.status == 'processor_declined' %div{:style => "color: red;"} - Processor Declined + = t(:processor_declined) = braintree_form_for :transaction, :html => {:autocomplete => "off"} do |f| - = f.label :amount, "Amount" + = 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 + = f.submit "Submit Payment", :class => 'btn btn-primary' |