diff options
Diffstat (limited to 'billing/app/views')
4 files changed, 16 insertions, 15 deletions
diff --git a/billing/app/views/customer/_subscription.html.haml b/billing/app/views/customer/_subscription.html.haml index f2a0410..a57f6e9 100644 --- a/billing/app/views/customer/_subscription.html.haml +++ b/billing/app/views/customer/_subscription.html.haml @@ -1,13 +1 @@ -%p - = subscription.id - Balance: - = number_to_currency(subscription.balance) - Bill on: - = subscription.billing_day_of_month - Start date: - = subscription.first_billing_date - Paid through - = subscription.paid_through_date - Price - = subscription.price - - # would be good to get plan name but not sure if that is possible?
\ No newline at end of file += render :partial => "subscriptions/subscription_details", :locals => {:subscription => subscription} diff --git a/billing/app/views/customer/edit.html.haml b/billing/app/views/customer/edit.html.haml index 0f37e61..400c5e2 100644 --- a/billing/app/views/customer/edit.html.haml +++ b/billing/app/views/customer/edit.html.haml @@ -19,8 +19,7 @@ = # (#{link_to @default_cc.token, edit_credit_card_info_path(:id => @default_cc.token)}) - if @subscriptions.any? %li - Active Subscriptions + Active Subscriptions # todo: won't really have multiple subscriptions = render(:partial => "subscription", :collection => @subscriptions) - = hidden_field_tag :tr_data, @tr_data = f.submit 'Save Payment Info'
\ No newline at end of file diff --git a/billing/app/views/subscriptions/_subscription_details.html.haml b/billing/app/views/subscriptions/_subscription_details.html.haml new file mode 100644 index 0000000..f2a0410 --- /dev/null +++ b/billing/app/views/subscriptions/_subscription_details.html.haml @@ -0,0 +1,13 @@ +%p + = subscription.id + Balance: + = number_to_currency(subscription.balance) + Bill on: + = subscription.billing_day_of_month + Start date: + = subscription.first_billing_date + Paid through + = subscription.paid_through_date + Price + = subscription.price + - # would be good to get plan name but not sure if that is possible?
\ No newline at end of file diff --git a/billing/app/views/subscriptions/show.html.haml b/billing/app/views/subscriptions/show.html.haml new file mode 100644 index 0000000..4ee015c --- /dev/null +++ b/billing/app/views/subscriptions/show.html.haml @@ -0,0 +1 @@ += render :partial => "subscription_details", :locals => {:subscription => @subscription} |