/
balance.html
43 lines (40 loc) · 1.35 KB
/
balance.html
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
{% extends "saas/billing/cart.html" %}
{% block order_title %}{% trans %}Unlock your subscriptions{% endtrans %}{% endblock %}
{% block no_invoicables %}
<p class="text-center">{% trans %}You have no balance due.{% endtrans %}</p>
{% endblock %}
{% block order_footer %}
<div>
{% if last_charge %}
<section id="charge">
{% if last_charge.is_failed or last_charge.is_disputed %}
<p>
{% trans created_at=last_charge.created_at %}On {{created_at}}, we attempted to charge your card{% endtrans %}
</p>
<div>
<dl class="dl-horizontal">
<dt>{% trans %}card{% endtrans %}</dt>
<dd>{{last_charge.last4}}</dd>
</dl>
<dl class="dl-horizontal">
<dt>{% trans %}expires{% endtrans %}</dt>
<dd>{{last_charge.exp_date}}</dd>
</dl>
</div>
<p>
{% if last_charge.is_failed %}{% trans %}The charge failed{% endtrans %}
{% elif last_charge.is_disputed %}{% trans %}The charge was disputed{% endtrans %}
{% endif %}
{% trans key=last_charge.processor_key %}(ref: #{{key}}).{% endtrans %}
</p>
<p>
{% trans price=lines_price|humanize_money %}Please enter a valid credit card. A new charge of {{price}} will be created. Thank you.{% endtrans %}
</p>
{% endif %}
</section>
{% endif %}
<div class="text-center">
{% trans %}Thank you for your business.{% endtrans %}
</div>
</div>
{% endblock %}