summaryrefslogtreecommitdiff
path: root/billing/app/views/customer
diff options
context:
space:
mode:
Diffstat (limited to 'billing/app/views/customer')
-rw-r--r--billing/app/views/customer/_customer_data.html.haml16
-rw-r--r--billing/app/views/customer/show.html.haml8
2 files changed, 20 insertions, 4 deletions
diff --git a/billing/app/views/customer/_customer_data.html.haml b/billing/app/views/customer/_customer_data.html.haml
new file mode 100644
index 0000000..e9df040
--- /dev/null
+++ b/billing/app/views/customer/_customer_data.html.haml
@@ -0,0 +1,16 @@
+%legend= t(:customer_information)
+%dl
+ %dt First Name
+ %dd= @customer.first_name
+ %dt Last Name
+ %dd= @customer.last_name
+ %dt Phone
+ %dd= @customer.phone
+%legend= t(:credit_card_information)
+%dl
+ %dt Number
+ %dd= @default_cc.masked_number
+ %dt Expiration Date
+ %dd= @default_cc.expiration_date
+ - if current_user == @user
+ = link_to t(:edit_saved_data), edit_customer_path(@user.id), :class => :btn
diff --git a/billing/app/views/customer/show.html.haml b/billing/app/views/customer/show.html.haml
index 562dc4b..ec1779c 100644
--- a/billing/app/views/customer/show.html.haml
+++ b/billing/app/views/customer/show.html.haml
@@ -1,10 +1,7 @@
- if admin? and !@customer
= t(:no_saved_customer)
- else
- - if current_user == @user
- .form-actions
- = link_to t(:make_payment), new_payment_path, :class => 'btn btn-primary'
- = render :partial => 'payments/customer_data'
+ = render :partial => 'customer_data'
%legend= t(:last_three_transactions)
- counter = 0
= # these will be ordered with most recently created first, per http://stackoverflow.com/questions/16425475/
@@ -25,3 +22,6 @@
= link_to t(:subscribe_to_plan), new_subscription_path, :class => :btn
%p
= link_to t(:all_subscriptions), user_subscriptions_path(@user)
+
+.form-actions
+ = link_to t(:make_donation), new_payment_path, :class => 'btn btn-primary'