/
show.hbs
50 lines (47 loc) · 1.74 KB
/
show.hbs
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
{{#conditional-loading-spinner condition=loading}}
<div class="league checkout">
{{#if memberExists}}
{{#if memberSubscription}}
{{else}}
<div>{{i18n 'league.member_exists'}}</div>
{{/if}} {{!-- memberSubscription --}}
{{/if}} {{!-- memberExists --}}
{{#if showPayment}}
{{checkout-progress state=checkoutState}}
<div class="billing-section">
{{#if showDescription}}
{{#if memberSubscription}}
<p>{{{i18n 'legaue.update_billing.description' }}}</p>
{{else}}
<p>{{{model.0.description_cooked}}}</p>
{{/if}} {{!-- memberSubscription --}}
{{/if}}
</div>
{{#if currentUser }}
<div class="user-table">
<div class="wrapper">
{{#if showBraintree}}
{{billing-braintree leagueLevel=model showBilling=showBilling showVerify=showVerify showCompleted=showCompleted checkoutState=checkoutState update=memberSubscription}}
{{else}}
{{#if showBilling}}
{{billing update=memberSubscription}}
{{/if}}
{{#if showVerify}}
{{verify}}
{{/if}}
{{/if}} {{!-- showBraintree --}}
{{#if showCompleted}}
<div>{{{i18n 'league.checkout.completed_message'}}}</div>
{{/if}}
</div>
</div>
{{else}} {{!-- currentUser --}}
<div>{{i18n 'league.checkout.sign_up_message'}}</div>
<div class="account-buttons">
<span>{{d-button action="showCreateAccount" class="btn-primary sign-up-button" label="sign_up"}}</span>
<span>{{#d-button class="btn-primary" action="showLogin"}}{{fa-icon 'user'}} {{i18n 'log_in'}}{{/d-button}}</span>
</div>
{{/if}} {{!-- currentUser --}}
{{/if}} {{!-- showPayment --}}
</div>
{{/conditional-loading-spinner}}