diff --git a/InvenTree/company/templates/company/partcreate.html b/InvenTree/company/templates/company/partcreate.html deleted file mode 100644 index bee5cbefc8..0000000000 --- a/InvenTree/company/templates/company/partcreate.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "create_edit_obj.html" %} - -{% block obj_title %} -Create a new supplier part -{% endblock %} \ No newline at end of file diff --git a/InvenTree/company/templates/company/partedit.html b/InvenTree/company/templates/company/partedit.html deleted file mode 100644 index f4c78cd39d..0000000000 --- a/InvenTree/company/templates/company/partedit.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "create_edit_obj.html" %} - -{% block obj_title %} -Edit supplier part '{{ part.SKU }}' -{% endblock %} \ No newline at end of file diff --git a/InvenTree/part/templates/part/bom-create.html b/InvenTree/part/templates/part/bom-create.html deleted file mode 100644 index 7db3161c84..0000000000 --- a/InvenTree/part/templates/part/bom-create.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends 'create_edit_obj.html' %} - -{% block obj_title %} -Create a new BOM item -{% endblock %} \ No newline at end of file diff --git a/InvenTree/part/templates/part/bom-edit.html b/InvenTree/part/templates/part/bom-edit.html deleted file mode 100644 index 91a503004c..0000000000 --- a/InvenTree/part/templates/part/bom-edit.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends 'create_edit_obj.html' %} - -{% block obj_title %} -Edit details for BOM item -{% endblock %} \ No newline at end of file diff --git a/InvenTree/part/templates/part/category_edit.html b/InvenTree/part/templates/part/category_edit.html deleted file mode 100644 index fb71df0161..0000000000 --- a/InvenTree/part/templates/part/category_edit.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "create_edit_obj.html" %} - -{% block obj_title %} -Edit category '{{ category.name }}' -{% endblock %} \ No newline at end of file diff --git a/InvenTree/part/templates/part/category_new.html b/InvenTree/part/templates/part/category_new.html deleted file mode 100644 index 807352cd58..0000000000 --- a/InvenTree/part/templates/part/category_new.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "create_edit_obj.html" %} - -{% block obj_title %} -Create a new part category{% if category %} in category '{{ category.name }}'{% endif %} -{% endblock %} \ No newline at end of file diff --git a/InvenTree/part/templates/part/create.html b/InvenTree/part/templates/part/create.html deleted file mode 100644 index 1b6fc8ae89..0000000000 --- a/InvenTree/part/templates/part/create.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "create_edit_obj.html" %} - -{% block obj_title %} -Create a new part{% if category %} in category '{{ category.name }}'{% endif %} -{% endblock %} diff --git a/InvenTree/part/templates/part/delete.html b/InvenTree/part/templates/part/delete.html deleted file mode 100644 index 9e38b07be4..0000000000 --- a/InvenTree/part/templates/part/delete.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "delete_obj.html" %} - - -{% block del_title %} - Are you sure you want to delete part '{{ part.name }}'? -{% endblock %} - -{% block del_body %} - - {$ include 'part/partial_delete' with part=part %} - -{% endblock %} \ No newline at end of file diff --git a/InvenTree/part/templates/part/edit.html b/InvenTree/part/templates/part/edit.html deleted file mode 100644 index 63917e7846..0000000000 --- a/InvenTree/part/templates/part/edit.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "create_edit_obj.html" %} - -{% block obj_title %} -Edit details for part '{{ part.name }}' -{% endblock %} \ No newline at end of file diff --git a/InvenTree/part/views.py b/InvenTree/part/views.py index 31bedc5c56..5c5ad4f0a2 100644 --- a/InvenTree/part/views.py +++ b/InvenTree/part/views.py @@ -49,8 +49,6 @@ class PartCreate(AjaxCreateView): """ model = Part form_class = EditPartForm - template_name = 'part/create.html' - ajax_form_title = 'Create new part' ajax_template_name = 'modal_form.html' @@ -117,7 +115,6 @@ class PartImage(AjaxUpdateView): class PartEdit(AjaxUpdateView): model = Part - template_name = 'part/edit.html' form_class = EditPartForm ajax_template_name = 'modal_form.html' ajax_form_title = 'Edit Part Properties' @@ -203,7 +200,6 @@ class BomDownload(AjaxView): class PartDelete(AjaxDeleteView): model = Part - template_name = 'part/delete.html' ajax_template_name = 'part/partial_delete.html' ajax_form_title = 'Confirm Part Deletion' context_object_name = 'part' @@ -225,7 +221,6 @@ class CategoryDetail(DetailView): class CategoryEdit(AjaxUpdateView): model = PartCategory - template_name = 'part/category_edit.html' form_class = EditCategoryForm ajax_template_name = 'modal_form.html' ajax_form_title = 'Edit Part Category' @@ -240,7 +235,7 @@ class CategoryEdit(AjaxUpdateView): class CategoryDelete(AjaxDeleteView): model = PartCategory - template_name = 'part/category_delete.html' + ajax_template_name = 'part/category_delete.html' context_object_name = 'category' success_url = '/part/' @@ -255,7 +250,6 @@ class CategoryCreate(AjaxCreateView): ajax_form_action = reverse_lazy('category-create') ajax_form_title = 'Create new part category' ajax_template_name = 'modal_form.html' - template_name = 'part/category_new.html' form_class = EditCategoryForm def get_context_data(self, **kwargs): @@ -288,7 +282,6 @@ class BomItemDetail(DetailView): class BomItemCreate(AjaxCreateView): model = BomItem form_class = EditBomItemForm - template_name = 'part/bom-create.html' ajax_template_name = 'modal_form.html' ajax_form_title = 'Create BOM item' @@ -308,7 +301,6 @@ class BomItemCreate(AjaxCreateView): class BomItemEdit(AjaxUpdateView): model = BomItem form_class = EditBomItemForm - template_name = 'part/bom-edit.html' ajax_template_name = 'modal_form.html' ajax_form_title = 'Edit BOM item' @@ -329,7 +321,6 @@ class SupplierPartDetail(DetailView): class SupplierPartEdit(AjaxUpdateView): model = SupplierPart - template_name = 'company/partedit.html' context_object_name = 'part' form_class = EditSupplierPartForm ajax_template_name = 'modal_form.html'