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

-