Removed old forms from Company

This commit is contained in:
Oliver Walters 2019-04-18 23:35:20 +10:00
parent 0654fa7cc9
commit e57303ed37
3 changed files with 1 additions and 13 deletions

View File

@ -1,5 +0,0 @@
{% extends "create_edit_obj.html" %}
{% block obj_title %}
Create a new supplier
{% endblock %}

View File

@ -1,5 +0,0 @@
{% extends "create_edit_obj.html" %}
{% block obj_title %}
Edit details for company '{{ company.name }}'
{% endblock %}

View File

@ -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):