From e6d68552a15125d741510185b9dfde1f0dab7164 Mon Sep 17 00:00:00 2001 From: Johannes Schriewer Date: Sun, 5 Jan 2025 19:03:42 +0100 Subject: [PATCH] Switch from navlists to tables for listings --- .../templates/inventory/area_detail.html | 52 ++++++++++++------- .../templates/inventory/workshop_detail.html | 45 ++++++++++------ .../templates/inventory/workshop_list.html | 18 ++++--- 3 files changed, 73 insertions(+), 42 deletions(-) diff --git a/inventory/templates/inventory/area_detail.html b/inventory/templates/inventory/area_detail.html index 1c6a5b2..02e6d0b 100644 --- a/inventory/templates/inventory/area_detail.html +++ b/inventory/templates/inventory/area_detail.html @@ -22,37 +22,51 @@ {% if area.show_sub_area %}

Areas

- + + + {% for a in area.area_related.all %} + + + + + {% empty %} + + {% endfor %} + +
+ {{ a.name }} + + {% if user.is_staff %} + + {% endif %} +
No areas defined
+ {% if user.is_staff %}

Create new area...

{% endif %} {% endif %}

Containers

-