summaryrefslogtreecommitdiff
path: root/billing/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'billing/app/views')
-rw-r--r--billing/app/views/payments/_customer_data.html.haml1
-rw-r--r--billing/app/views/payments/new.html.haml10
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'