From e57303ed373d1cd90f0018afd3bfda195d62ada2 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 18 Apr 2019 23:35:20 +1000 Subject: [PATCH] Removed old forms from Company --- InvenTree/company/templates/company/create.html | 5 ----- InvenTree/company/templates/company/edit.html | 5 ----- InvenTree/company/views.py | 4 +--- 3 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 InvenTree/company/templates/company/create.html delete mode 100644 InvenTree/company/templates/company/edit.html diff --git a/InvenTree/company/templates/company/create.html b/InvenTree/company/templates/company/create.html deleted file mode 100644 index b01ab9e9f9..0000000000 --- a/InvenTree/company/templates/company/create.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "create_edit_obj.html" %} - -{% block obj_title %} -Create a new supplier -{% endblock %} diff --git a/InvenTree/company/templates/company/edit.html b/InvenTree/company/templates/company/edit.html deleted file mode 100644 index e043fdb211..0000000000 --- a/InvenTree/company/templates/company/edit.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "create_edit_obj.html" %} - -{% block obj_title %} -Edit details for company '{{ company.name }}' -{% endblock %} \ No newline at end of file diff --git a/InvenTree/company/views.py b/InvenTree/company/views.py index 9042578baf..5a80e5ea15 100644 --- a/InvenTree/company/views.py +++ b/InvenTree/company/views.py @@ -51,7 +51,6 @@ class CompanyImage(AjaxUpdateView): class CompanyEdit(AjaxUpdateView): model = Company form_class = EditCompanyForm - template_name = 'company/edit.html' context_object_name = 'company' ajax_template_name = 'modal_form.html' ajax_form_title = 'Edit Company' @@ -66,7 +65,6 @@ class CompanyCreate(AjaxCreateView): model = Company context_object_name = 'company' form_class = EditCompanyForm - template_name = "company/create.html" ajax_template_name = 'modal_form.html' ajax_form_title = "Create new Company" @@ -79,7 +77,7 @@ class CompanyCreate(AjaxCreateView): class CompanyDelete(AjaxDeleteView): model = Company success_url = '/company/' - template_name = 'company/delete.html' + ajax_template_name = 'company/delete.html' ajax_form_title = 'Delete Company' def get_data(self):