diff --git a/inventory/templates/inventory/area_detail.html b/inventory/templates/inventory/area_detail.html index bba491f..1c6a5b2 100644 --- a/inventory/templates/inventory/area_detail.html +++ b/inventory/templates/inventory/area_detail.html @@ -1,19 +1,21 @@ {% extends "base.html" %} {% load static %} -{% block title %}{{ area.container.display_name }} - {{ area.name }}{% endblock %} +{% block title %}{{ area.name }}{% endblock %} {% block header_bar %} - {{ area.container.display_name }} - {{ area.name }} + {{ area.name }} {{ area.description}} {% endblock %} {% block header_icons %} -
  • - -
  • - {% include 'inventory/set_index.html' with item=area is_index=is_index %} + {% if user.is_staff %} +
  • + +
  • + {% include 'inventory/set_index.html' with item=area is_index=is_index %} + {% endif %} {% endblock %} {% block content %} diff --git a/inventory/templates/inventory/box-detail.html b/inventory/templates/inventory/box-detail.html index 58058c5..36eb34a 100644 --- a/inventory/templates/inventory/box-detail.html +++ b/inventory/templates/inventory/box-detail.html @@ -14,8 +14,10 @@ {% endblock %} {% block header_icons %} -
  • - -
  • - {% include 'inventory/set_index.html' with item=object is_index=is_index %} + {% if user.is_staff %} +
  • + +
  • + {% include 'inventory/set_index.html' with item=object is_index=is_index %} + {% endif %} {% endblock %} diff --git a/inventory/templates/inventory/item_detail.html b/inventory/templates/inventory/item_detail.html index 60b4d66..2e733c3 100644 --- a/inventory/templates/inventory/item_detail.html +++ b/inventory/templates/inventory/item_detail.html @@ -7,13 +7,15 @@ {% block header_bar %} {{ item.name }} - {{ item.description }} {{ item.form_factor }} + {{ item.description }}{% if item.form_factor %}, {{ item.form_factor }}{% endif %} {% endblock %} {% block header_icons %} -
  • - -
  • + {% if user.is_staff %} +
  • + +
  • + {% endif %} {% endblock %} {% block content %} diff --git a/inventory/templates/inventory/workshop_detail.html b/inventory/templates/inventory/workshop_detail.html index 79cd4c9..89905bc 100644 --- a/inventory/templates/inventory/workshop_detail.html +++ b/inventory/templates/inventory/workshop_detail.html @@ -10,10 +10,12 @@ {% endblock %} {% block header_icons %} -
  • - -
  • - {% include 'inventory/set_index.html' with item=workshop is_index=is_index %} + {% if user.is_staff %} +
  • + +
  • + {% include 'inventory/set_index.html' with item=workshop is_index=is_index %} + {% endif %} {% endblock %} {% block content %}