-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshow.html.haml
90 lines (90 loc) · 4.12 KB
/
show.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
= title("#{configatron.solaro_trade_mark} | Payment", '')
%div.report
%div.innerReport
%div.whiteTint.pAll10.clearFix
= render(:partial => "payment_sidebar")
%div.width70
%div.rounded_layer2
%div
%span.layer2_topLeft
%span.layer2_topRight
%span.layer2_top
%div.layer2_body
%div.layer2_innerBody
%div.layer2_content
%div.whiteTint.pAll10
%h3 Children Accounts
- @child_details.each do |child_detail|
%div{:class => "#{get_payment_status_details(child_detail)['css_class']} mTop10"}
= get_payment_status_details(child_detail)['header']
%div.allAcc
%ul
%li
%span
Student Name:
%sup
= child_detail.display_name
%sup
%li
%span.mBot1
Account Status:
%sup
%font.txtGreenBoldEm
= get_payment_status_details(child_detail)['account_status']
%sup
- unless child_detail.status == 'pending'
%li
%span
Next Billing Date:
%sup
= get_payment_status_details(child_detail)['next_billing_date']
%sup
%li.pRelative
%span
Most Recent Billing:
%sup
= child_detail.transaction_date
%div{:class => child_detail.recur_status == 'approved'? 'paymentStatus' : 'paymentStatusError'}
= get_payment_status_details(child_detail)['mrb_status']
%li.pRelative
%span
Previous Billing:
%sup
= child_detail.transaction_date
%div{:class => child_detail.recur_status == 'approved'? 'paymentStatus' : 'paymentStatusError'}
= get_payment_status_details(child_detail)['mrb_status']
%li
%span
Credit Card Type:
%sup
= child_detail.card_type
%sup
%li
%span
Card Number:
%sup
= child_detail.credit_card_number
%sup
%div.fRight
- if (child_detail.status == 'onhold' || child_detail.status == 'inactive' || child_detail.status == 'pending')
= link_to('<span>Make Payment</span>', new_payment_path, :class => child_detail.status == "pending" ? "bot30 pRelative linkButton" : "linkButton")
- unless child_detail.status == 'pending'
%li
%span
Card expiry date:
%sup
%font= child_detail.card_expiry
%sup
%div.mTop10{:class => get_payment_status_details(child_detail)['footer_class']}
= get_payment_status_details(child_detail)['message']
%div
%span.layer2_botLeft
%span.layer2_botRight
%span.layer2_bot
- if show_payment_button?
%p.clear.alert
Click the
%strong Make a Payment
button to upgrade
%strong Trial Accounts
%div.botReport