{% extends "part/part_app_base.html" %} {% load static %} {% load i18n %} {% block sidebar %} {% include 'part/category_sidebar.html' %} {% endblock %} {% block heading %} {% if category %} {% trans "Part Category" %}: {{ category.name }} {% else %} {% trans "Parts" %} {% endif %} {% endblock %} {% block actions %} {% if user.is_staff and roles.part_category.change %} {% url 'admin:part_partcategory_change' category.pk as url %} {% include "admin_button.html" with url=url %} {% endif %} {% if category %} {% if roles.part_category.change %} {% endif %} {% if roles.part_category.delete %} {% endif %} {% endif %} {% if roles.part_category.add %} {% endif %} {% endblock %} {% block details_left %} {% if category %}
{{ category.description }}
{% else %}{% trans "Top level part category" %}
{% endif %} {% endblock %} {% block details_right %} {% if category %}{% 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 }} |
{% trans "Part Categories" %} | {{ category_count }} | |
{% trans "Parts" %} | {{ part_count }} |