29 lines
950 B
HTML
29 lines
950 B
HTML
<thead>
|
|
<tr>
|
|
<th>Order No.</th>
|
|
<th>Date</th>
|
|
<th>Customer</th>
|
|
<th>Fulfillment</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for order in order_list %}
|
|
<tr class="is-link" onclick="window.location='{% url 'dashboard:wholesale-order-detail' order.pk %}'">
|
|
<td>No. {{ order.pk }}</td>
|
|
<td>{{ order.created_at|date:"D, M j Y" }}</td>
|
|
<td>{{ order.customer.get_full_name }}</td>
|
|
<td>
|
|
<div class="status-display">
|
|
{% if order.is_fulfilled %}
|
|
<span class="status-dot {% if order.is_fulfilled %} status-success {% else %} status-info {% endif %}"></span> Fulfilled
|
|
{% elif order.is_cancelled %}
|
|
Cancelled
|
|
{% else %}
|
|
<span class="status-dot status-error"></span> Unfulfilled
|
|
{% endif %}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|