diff --git a/dashboard/templates/dashboard/order/detail.html b/dashboard/templates/dashboard/order/detail.html index acd1667..acfe5eb 100644 --- a/dashboard/templates/dashboard/order/detail.html +++ b/dashboard/templates/dashboard/order/detail.html @@ -10,7 +10,7 @@

Order No. {{order.pk}}

- {% if perms.core.cancel_order %} + {% if perms.core.cancel_order and order.status != 'canceled' %} Cancel order {% endif %}
diff --git a/dashboard/templates/dashboard/order/list.html b/dashboard/templates/dashboard/order/list.html index 1f5c0e9..b9bd21d 100644 --- a/dashboard/templates/dashboard/order/list.html +++ b/dashboard/templates/dashboard/order/list.html @@ -17,19 +17,21 @@ - {% if page_obj.has_previous %} - « first - previous - {% endif %} + diff --git a/static/styles/dashboard.css b/static/styles/dashboard.css index 4e0a976..5b931c5 100644 --- a/static/styles/dashboard.css +++ b/static/styles/dashboard.css @@ -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 ========================================================================== */