From f757a6d519bfa27ef8d70f9bf1745626120225f1 Mon Sep 17 00:00:00 2001 From: jessib Date: Tue, 23 Jul 2013 13:33:02 -0700 Subject: More little display cleanup. --- billing/app/views/payments/_customer_data.html.haml | 1 - billing/app/views/payments/new.html.haml | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'billing') 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' -- cgit v1.2.3