diff --git a/InvenTree/part/templates/part/category.html b/InvenTree/part/templates/part/category.html index 63a60bd71e..9382259cce 100644 --- a/InvenTree/part/templates/part/category.html +++ b/InvenTree/part/templates/part/category.html @@ -137,29 +137,30 @@ $("#cat-create").click(function() { launchModalForm( - "{% url 'category-create' %}", - { - follow: true, - {% if category %} - data: { - category: {{ category.id }} - }, - {% endif %} - secondary: [ - { - field: 'default_location', - label: 'New Location', - title: 'Create new location', - url: "{% url 'stock-location-create' %}", - }, - { - field: 'parent', - label: 'New Category', - title: 'Create new category', - url: "{% url 'category-create' %}", - }, - ] - }); + "{% url 'category-create' %}", + { + follow: true, + {% if category %} + data: { + category: {{ category.id }} + }, + {% endif %} + secondary: [ + { + field: 'default_location', + label: 'New Location', + title: 'Create new location', + url: "{% url 'stock-location-create' %}", + }, + { + field: 'parent', + label: 'New Category', + title: 'Create new category', + url: "{% url 'category-create' %}", + }, + ] + } + ); }) $("#part-export").click(function() { diff --git a/InvenTree/templates/InvenTree/search.html b/InvenTree/templates/InvenTree/search.html index e8cda96809..99b704c626 100644 --- a/InvenTree/templates/InvenTree/search.html +++ b/InvenTree/templates/InvenTree/search.html @@ -127,7 +127,7 @@ InvenTree | {% trans "Search Results" %} loadPartTable("#part-results-table", "{% url 'api-part-list' %}", { - query: { + params: { search: "{{ query }}", }, allowInactive: true, @@ -137,7 +137,7 @@ InvenTree | {% trans "Search Results" %} loadCompanyTable('#company-results-table', "{% url 'api-company-list' %}", { params: { - serach: "{{ query }}", + search: "{{ query }}", } }); diff --git a/InvenTree/templates/InvenTree/search_parts.html b/InvenTree/templates/InvenTree/search_parts.html index 69c5c29051..f06155354d 100644 --- a/InvenTree/templates/InvenTree/search_parts.html +++ b/InvenTree/templates/InvenTree/search_parts.html @@ -9,6 +9,12 @@ {% endblock %} {% block collapse_content %} +
+