Merge pull request #137 from SchrodingersGat/delete-old-forms

Delete old forms
This commit is contained in:
Oliver 2019-04-18 23:52:30 +10:00 committed by GitHub
commit ecce8a6fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 1 additions and 150 deletions

View File

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

View File

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

View File

@ -70,7 +70,6 @@ class BuildAllocate(DetailView):
class BuildCreate(AjaxCreateView):
model = Build
template_name = 'build/create.html'
context_object_name = 'build'
form_class = EditBuildForm
ajax_form_title = 'Start new Build'
@ -96,7 +95,6 @@ class BuildUpdate(AjaxUpdateView):
model = Build
form_class = EditBuildForm
context_object_name = 'build'
template_name = 'build/update.html'
ajax_form_title = 'Edit Build Details'
ajax_template_name = 'modal_form.html'

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

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

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

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

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

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

View File

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

View File

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

View File

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

View File

@ -68,7 +68,6 @@ class StockLocationEdit(AjaxUpdateView):
model = StockLocation
form_class = EditStockLocationForm
template_name = 'stock/location_edit.html'
context_object_name = 'location'
ajax_template_name = 'modal_form.html'
ajax_form_title = 'Edit Stock Location'
@ -81,7 +80,6 @@ class StockItemEdit(AjaxUpdateView):
model = StockItem
form_class = EditStockItemForm
# template_name = 'stock/item_edit.html'
context_object_name = 'item'
ajax_template_name = 'modal_form.html'
ajax_form_title = 'Edit Stock Item'
@ -95,7 +93,6 @@ class StockLocationCreate(AjaxCreateView):
model = StockLocation
form_class = EditStockLocationForm
template_name = 'stock/location_create.html'
context_object_name = 'location'
ajax_template_name = 'modal_form.html'
ajax_form_title = 'Create new Stock Location'
@ -121,7 +118,6 @@ class StockItemCreate(AjaxCreateView):
model = StockItem
form_class = CreateStockItemForm
template_name = 'stock/item_create.html'
context_object_name = 'item'
ajax_template_name = 'modal_form.html'
ajax_form_title = 'Create new Stock Item'

View File

@ -1,19 +0,0 @@
{% extends "base.html" %}
{% load static %}
{% block content %}
<div class='panel panel-primary'>
<div class='panel-heading'>
{% block obj_title %}
Object title goes here
{% endblock %}
</div>
<div class='panel-body'>
{% load crispy_forms_tags %}
{% crispy form %}
</div>
</div>
{% endblock %}

View File

@ -1,25 +0,0 @@
{% extends "base.html" %}
{% block content %}
<div class="panel panel-danger">
<div class="panel-heading">
{% block del_title %}
Deletion title goes here
{% endblock %}
</div>
<div class="panel-body">
<p><b>This is a permanent action and cannot be undone.</b></p>
{% block del_body %}
{% endblock %}
<form action="" method="post">{% csrf_token %}
<input type="submit" name='confirm' value="Confirm" />
<input type="submit" name="cancel" value="Cancel" />
</form>
</div>
</div>
{% endblock %}