healthchecks/templates/payments/payment_method.html

14 lines
534 B
HTML

{% if not sub.subscription_id %}
<span class="billing-empty">No payment method added</span>
{% elif sub.pm_is_card %}
<img src="{{ pm.image_url }}" height="30" /> <span class="masked_number">{{ pm.masked_number }}</span>
{% if pm.expired %}
<span class="text-danger">(expired)</span>
{% endif %}
{% elif sub.pm_is_paypal %}
<img src="{{ pm.image_url }}" height="30" /> {{ pm.email }}
{% endif %}
{% if sub.subscription_id %}
<input type="hidden" id="nbd" value="{{ sub.next_billing_date }}" />
{% endif %}