diff --git a/InvenTree/part/templates/part/cat_link.html b/InvenTree/part/templates/part/cat_link.html index 71bda74721..fd6ca31c07 100644 --- a/InvenTree/part/templates/part/cat_link.html +++ b/InvenTree/part/templates/part/cat_link.html @@ -1,16 +1,10 @@ {% load i18n %} - \ No newline at end of file diff --git a/InvenTree/part/templates/part/category.html b/InvenTree/part/templates/part/category.html index 21c5d0061e..803d265af6 100644 --- a/InvenTree/part/templates/part/category.html +++ b/InvenTree/part/templates/part/category.html @@ -32,27 +32,25 @@

{% 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 roles.part_category.add %} + + {% endif %} + {% if category %} + {% if roles.part_category.change %} + + {% endif %} + {% if roles.part_category.delete %} + + {% endif %} + {% endif %} +
{% if category %} diff --git a/InvenTree/part/templates/part/part_app_base.html b/InvenTree/part/templates/part/part_app_base.html index b3bd862fbd..9476a6ec25 100644 --- a/InvenTree/part/templates/part/part_app_base.html +++ b/InvenTree/part/templates/part/part_app_base.html @@ -17,14 +17,12 @@
{% endblock %} -{% block pre_content %} - +{% block breadcrumbs %} {% if part %} {% include "part/cat_link.html" with category=part.category %} {% else %} {% include 'part/cat_link.html' with category=category %} {% endif %} - {% endblock %} {% block js_ready %} diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html index b7019ff887..b079b25cfa 100644 --- a/InvenTree/stock/templates/stock/item_base.html +++ b/InvenTree/stock/templates/stock/item_base.html @@ -12,7 +12,7 @@
{% endblock %} -{% block pre_content %} +{% block breadcrumbs %} {% include 'stock/loc_link.html' with location=item.location %} {% endblock %} diff --git a/InvenTree/stock/templates/stock/loc_link.html b/InvenTree/stock/templates/stock/loc_link.html index bd18714674..6e5b329b73 100644 --- a/InvenTree/stock/templates/stock/loc_link.html +++ b/InvenTree/stock/templates/stock/loc_link.html @@ -1,16 +1,10 @@ {% load i18n %} - \ No newline at end of file diff --git a/InvenTree/stock/templates/stock/stock_app_base.html b/InvenTree/stock/templates/stock/stock_app_base.html index 209aea3956..d66dd6ce4e 100644 --- a/InvenTree/stock/templates/stock/stock_app_base.html +++ b/InvenTree/stock/templates/stock/stock_app_base.html @@ -17,7 +17,7 @@
{% endblock %} -{% block pre_content %} +{% block breadcrumbs %} {% if item %} {% include 'stock/loc_link.html' with location=item.location %} {% else %} diff --git a/InvenTree/templates/base.html b/InvenTree/templates/base.html index 1fbdc27b43..e545a748c0 100644 --- a/InvenTree/templates/base.html +++ b/InvenTree/templates/base.html @@ -68,8 +68,18 @@ {% include "navbar.html" %}
- +
+ +
+ +
{% block pre_content %} diff --git a/InvenTree/templates/js/translated/forms.js b/InvenTree/templates/js/translated/forms.js index 2a71b2f4c5..535a6f316b 100644 --- a/InvenTree/templates/js/translated/forms.js +++ b/InvenTree/templates/js/translated/forms.js @@ -2024,6 +2024,8 @@ function constructHiddenInput(name, parameters) { // Construct a "checkbox" input function constructCheckboxInput(name, parameters) { + var todo = "refactor this with the new bootstrap slide-toggle thingy"; + return constructInputOptions( name, 'form-check-input',