Removed old forms in Part

This commit is contained in:
Oliver Walters 2019-04-18 23:39:05 +10:00
parent e57303ed37
commit 4f51258cf8
10 changed files with 1 additions and 62 deletions

View File

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

View File

@ -1,5 +0,0 @@
{% extends "create_edit_obj.html" %}
{% block obj_title %}
Edit supplier part '{{ part.SKU }}'
{% endblock %}

View File

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

View File

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

View File

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

View File

@ -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 %}

View File

@ -1,5 +0,0 @@
{% extends "create_edit_obj.html" %}
{% block obj_title %}
Create a new part{% if category %} in category '{{ category.name }}'{% endif %}
{% endblock %}

View File

@ -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 %}

View File

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

View File

@ -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'