diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index eaa9bde0c9..cc567c97c3 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -1,11 +1,14 @@ {% extends "part/part_base.html" %} - +{% load static %} {% block details %} {% include 'part/tabs.html' with tab='detail' %}
Part name | @@ -15,6 +18,12 @@Description | {{ part.decription }} |
IPN | +{{ part.IPN }} | +|
Category | @@ -73,8 +82,22 @@ {% endif %} -{% endblock %} \ No newline at end of file +{% endblock %} + +{% block javascript %} + + + + + +{% endblock %} diff --git a/InvenTree/part/views.py b/InvenTree/part/views.py index 7e78438df6..159714d838 100644 --- a/InvenTree/part/views.py +++ b/InvenTree/part/views.py @@ -84,10 +84,12 @@ class PartDetail(DetailView): template_name = 'part/detail.html' -class PartEdit(UpdateView): +class PartEdit(AjaxUpdateView): model = Part form_class = EditPartForm template_name = 'part/edit.html' + ajax_template_name = 'modal_form.html' + ajax_form_title = 'Edit Part Properties' class PartDelete(DeleteView): |