Files
slump-x-land-studio/templates/shop/order.html
T

22 lines
920 B
HTML

{% extends 'base.html' %}
{% block title %}Order {{ order.order_id|slice:":8" }} · SLUMP X LAND{% endblock %}
{% block content %}
<main class="page-shell">
<h1>Order #{{ order.order_id|slice:":8" }}</h1>
<p>Status: <strong>{{ order.get_status_display }}</strong> · Total: <strong>${{ order.total_usd }}</strong></p>
{% if order.tracking_number %}<p>Tracking: <strong>{{ order.tracking_number }}</strong></p>{% endif %}
<ul>
{% for item in order.items.all %}
<li>
{{ item.quantity }} &times; {{ item.title_snapshot }} (${{ item.line_total }})
{% if item.product.kind == 'digital' and order.status in 'paid,shipped,delivered' %}
— <a href="{% url 'shop-download' order.order_id item.pk %}"><strong>Download File</strong></a>
{% endif %}
</li>
{% endfor %}
</ul>
<p><a href="{% url 'shop-index' %}">&larr; Return to Shop</a></p>
</main>
{% endblock %}