diff --git a/InvenTree/part/templates/part/category.html b/InvenTree/part/templates/part/category.html index 8f62afd557..e5a22363b2 100644 --- a/InvenTree/part/templates/part/category.html +++ b/InvenTree/part/templates/part/category.html @@ -6,7 +6,103 @@ {% include 'part/category_navbar.html' %} {% endblock %} -{% block content %} +{% block details_left %} +{% if category %} +

+ {% trans "Part Category" %}: {{ category.name }} + {% if user.is_staff and roles.part_category.change %} + + {% endif %} +

+

{{ category.description }}

+{% else %} +

+ {% trans "Parts" %} +

+

{% trans "Top level part category" %}

+{% endif %} + +
+ {% if roles.part_category.add %} + + {% endif %} + {% if category %} + {% if roles.part_category.change %} + + {% endif %} + {% if roles.part_category.delete %} + + {% endif %} + {% endif %} +
+ +{% endblock %} + +{% block details_right %} + +{% if category %} + + + + + + + + + + + + + {% if category.default_location %} + + + + + + {% endif %} + {% if category.default_keywords %} + + + + + + {% endif %} + + + + + + + + + + +
{% trans "Category Path" %}{{ category.pathstring }}
{% trans "Category Description" %}{{ category.description }}
{% trans "Default Location" %}{{ category.default_location.pathstring }}
{% trans "Keywords" %}{{ category.default_keywords }}
{% trans "Subcategories" %}{{ category.children.count }}
{% trans "Parts (Including subcategories)" %}{{ category.partcount }}
+{% else %} +

{% trans "Category Details" %}

+ + + + + + + + + + + + +
{% trans "Part Categories" %}{{ category_count }}
{% trans "Parts" %}{{ part_count }}
+{% endif %} +{% endblock %} + +{% block page_content %} {% if messages %} {% for message in messages %} @@ -16,105 +112,6 @@ {% endfor %} {% endif %} - -
-
-
- {% if category %} -

- {{ category.name }} - {% if user.is_staff and roles.part_category.change %} - - {% endif %} -

-

{{ category.description }}

- {% else %} -

{% trans "Part Categories" %}

-

{% trans "All parts" %}

- {% endif %} -
- {% if roles.part_category.add %} - - {% endif %} - {% if category %} - {% if roles.part_category.change %} - - {% endif %} - {% if roles.part_category.delete %} - - {% endif %} - {% endif %} -
-
-
- {% if category %} -

{% trans "Category Details" %}

- - - - - - - - - - - - - {% if category.default_location %} - - - - - - {% endif %} - {% if category.default_keywords %} - - - - - - {% endif %} - - - - - - - - - - -
{% trans "Category Path" %}{{ category.pathstring }}
{% trans "Category Description" %}{{ category.description }}
{% trans "Default Location" %}{{ category.default_location.pathstring }}
{% trans "Keywords" %}{{ category.default_keywords }}
{% trans "Subcategories" %}{{ category.children.count }}
{% trans "Parts (Including subcategories)" %}{{ category.partcount }}
- {% else %} -

{% trans "Category Details" %}

- - - - - - - - - - - - -
{% trans "Part Categories" %}{{ category_count }}
{% trans "Parts" %}{{ part_count }}
- {% endif %} -
-
- -
- -{% block page_content %} -

{% trans "Parts" %}

@@ -191,7 +188,6 @@ {% endblock %} -{% endblock %} {% block js_load %} {{ block.super }} {% endblock %} diff --git a/InvenTree/stock/templates/stock/location.html b/InvenTree/stock/templates/stock/location.html index 290df77536..7735be69b8 100644 --- a/InvenTree/stock/templates/stock/location.html +++ b/InvenTree/stock/templates/stock/location.html @@ -20,7 +20,7 @@

{% trans "Stock" %}

-

{% trans "All stock items" %}

+

{% trans "Top level stock location" %}

{% endif %}