Changeset View
Changeset View
Standalone View
Standalone View
subscriptions/templates/looper/settings/receipts.html
| {% extends 'users/settings/base.html' %} | {% extends 'users/settings/base.html' %} | ||||
| {% load common_extras %} | {% load common_extras %} | ||||
| {% block settings %} | {% block settings %} | ||||
| <p class="subtitle">Settings: Subscription</p> | <p class="subtitle">Settings: Subscription</p> | ||||
| <h1 class="mb-3">Receipts</h1> | <h1 class="mb-3">Receipts</h1> | ||||
| {% if orders %} | {% if orders %} | ||||
| <table class="table table-sm text-center table-receipts"> | <table class="table table-sm text-center table-receipts"> | ||||
| <thead> | <thead> | ||||
| <tr> | <tr> | ||||
| <th class="text-left">Date</th> | <th class="text-left">Date</th> | ||||
| <th class="text-left">Description</th> | <th class="text-left">Description</th> | ||||
| <th>Receipt</th> | <th>Receipt</th> | ||||
| <th class="text-right">Amount</th> | <th class="text-right">Amount</th> | ||||
| </tr> | </tr> | ||||
| </thead> | </thead> | ||||
| <tbody> | <tbody> | ||||
| {% for o in orders %} | {% for o in orders %} | ||||
| <tr> | <tr> | ||||
| <td class="text-left">{{ o.paid_at|date|default:'unknown' }}</td> | <td class="text-left">{{ o.paid_at|date|default:'unknown' }}</td> | ||||
| <td class="text-left">{{ o.name }}</td> | <td class="text-left">{{ o.name }}</td> | ||||
| <td class=""> | <td class=""> | ||||
| <a href="{% url 'subscriptions:receipt' order_id=o.pk %}">View</a> | <a href="{% url 'subscriptions:receipt' order_id=o.pk %}">View</a> | ||||
| | | | | ||||
| <a href="{% url 'subscriptions:receipt-pdf' order_id=o.pk %}">Download</a> | <a href="{% url 'subscriptions:receipt-pdf' order_id=o.pk %}">Download</a> | ||||
| </td> | </td> | ||||
| <td class="text-right">{{ o.price.with_currency_symbol_nonocents }}</td> | <td class="text-right">{{ o.price.with_currency_symbol_nonocents }}</td> | ||||
| </tr> | </tr> | ||||
| {% endfor %} | {% endfor %} | ||||
| </tbody> | </tbody> | ||||
| </table> | </table> | ||||
| {% else %} | {% else %} | ||||
| <p>You have no receipts.</p> | <p>You have no receipts.</p> | ||||
| {% endif %} | {% endif %} | ||||
| {% endblock settings %} | {% endblock settings %} | ||||