37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
<thead>
|
|
<tr>
|
|
<th>Order No.</th>
|
|
<th>Date</th>
|
|
<th>Customer</th>
|
|
<th>Fulfillment</th>
|
|
<th>Shipping</th>
|
|
<th>Total</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for order in order_list %}
|
|
<tr class="is-link" onclick="window.location='{% url 'dashboard:order-detail' order.pk %}'">
|
|
<td>No. {{order.pk}} {% if order.subscription %}(subscription){% endif %}</td>
|
|
<td>{{order.created_at|date:"D, M j Y"}}</td>
|
|
<td>{{order.customer.get_full_name}}</td>
|
|
<td>
|
|
<div class="status-display">
|
|
<span class="status-dot status-{{order.status}}"></span> {{order.get_status_display}}
|
|
</div>
|
|
</td>
|
|
<td>
|
|
<div class="status-display">
|
|
{% if order.get_shipping_status == "Shipped" %}
|
|
<span class="status-dot status-success"></span> {{ order.get_shipping_status }}
|
|
{% elif order.get_shipping_status == "Partially shipped" %}
|
|
<span class="status-dot status-warning"></span> {{ order.get_shipping_status }}
|
|
{% else %}
|
|
<span class="status-dot status-info"></span> {{ order.get_shipping_status }}
|
|
{% endif %}
|
|
</div>
|
|
</td>
|
|
<td>${{order.total_amount}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|