{% import 'macros/form.html' as f with context %} {% import 'macros/items.html' as items %} {% macro card_expiring_warning() -%} {% if current_user.is_authenticated and current_user.subscription and current_user.credit_card.is_expiring %}
Coupon code {{ coupon.code }} is applied to your subscription. {{ coupon_data(coupon) }}
{% endif %} {%- endmacro %} {% macro upcoming_invoice(invoice) -%} {% if invoice == None %}You are not currently subscribed, so there's nothing to see here.
{% else %}| Subscription | Description | Next billing date | Price |
|---|---|---|---|
| {{ invoice.plan }} | {{ invoice.description }} | ${{ invoice.amount_due | format_currency }} / {{ invoice.interval }} |
This isn't an error, you just haven't been invoiced yet.
{% else %}| Date | Method | Description | Service period | Tax | Total |
|---|---|---|---|---|---|
| {{ invoice.brand }} {{ invoice.last4 }} | {{ invoice.description }} | — | {{ '$' + invoice.tax | format_currency if invoice.tax }} | ${{ invoice.total | format_currency }} |