{% extends "django_program/manage/base.html" %} {% block title %}Purchase #{{ purchase.pk }} - Sponsor Portal{% endblock %} {% block breadcrumb %} {% endblock %} {% block page_title %}
{{ purchase.quantity }} voucher codes — {% if purchase.payment_status == "paid" %} Paid {% elif purchase.payment_status == "pending" %} Pending {% elif purchase.payment_status == "processing" %} Processing {% elif purchase.payment_status == "failed" %} Failed {% elif purchase.payment_status == "refunded" %} Refunded {% endif %}
{% endblock %} {% block page_actions %} {% if voucher_links %} Export CSV {% endif %} Back to Portal {% endblock %} {% block content %}| Code | Times Used | Max Uses | Status | Valid From | Valid Until |
|---|---|---|---|---|---|
| {{ link.voucher.code }} | {{ link.voucher.times_used }} | {{ link.voucher.max_uses }} | {% if link.voucher.is_valid %} Valid {% elif not link.voucher.is_active %} Inactive {% elif link.voucher.times_used >= link.voucher.max_uses %} Exhausted {% else %} Expired {% endif %} | {{ link.voucher.valid_from|date:"N j, Y"|default:"--" }} | {{ link.voucher.valid_until|date:"N j, Y"|default:"--" }} |
No voucher codes have been generated for this purchase yet.
{% if purchase.payment_status == "pending" %}This purchase is still pending approval by the conference organizers.
{% endif %}