Remove canceled button on when order status is canceled
This commit is contained in:
parent
eae76c773d
commit
8e2f0fe43e
@ -10,7 +10,7 @@
|
||||
</p>
|
||||
<header class="object-header">
|
||||
<h1><img src="{% static 'images/box.png' %}"> Order No. {{order.pk}}</h1>
|
||||
{% if perms.core.cancel_order %}
|
||||
{% if perms.core.cancel_order and order.status != 'canceled' %}
|
||||
<a class="btn btn-warning" href="{% url 'dashboard:order-cancel' order.pk %}">Cancel order</a>
|
||||
{% endif %}
|
||||
</header>
|
||||
|
||||
@ -17,9 +17,10 @@
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="pagination">
|
||||
{% if page_obj.has_previous %}
|
||||
<a href="?page=1">« first</a>
|
||||
<a href="?page={{ page_obj.previous_page_number }}">previous</a>
|
||||
<a href="?page={{ page_obj.previous_page_number }}">‹ previous</a>
|
||||
{% endif %}
|
||||
|
||||
<span class="current">
|
||||
@ -27,9 +28,10 @@
|
||||
</span>
|
||||
|
||||
{% if page_obj.has_next %}
|
||||
<a href="?page={{ page_obj.next_page_number }}">next</a>
|
||||
<a href="?page={{ page_obj.next_page_number }}">next ›</a>
|
||||
<a href="?page={{ page_obj.paginator.num_pages }}">last »</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
@ -460,6 +460,7 @@ main > article > header {
|
||||
}
|
||||
|
||||
.product-figure img {
|
||||
background-color: white;
|
||||
max-height: 6rem;
|
||||
max-width: 6rem;
|
||||
border: var(--default-border);
|
||||
@ -617,6 +618,16 @@ main > article > header {
|
||||
}
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
Pagination
|
||||
========================================================================== */
|
||||
|
||||
.pagination {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
|
||||
/* ==========================================================================
|
||||
Utils
|
||||
========================================================================== */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user