mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #137 from SchrodingersGat/delete-old-forms
Delete old forms
This commit is contained in:
commit
ecce8a6fec
@ -1,5 +0,0 @@
|
||||
{% extends "create_edit_obj.html" %}
|
||||
|
||||
{% block obj_title %}
|
||||
Create a new build
|
||||
{% endblock %}
|
@ -1,5 +0,0 @@
|
||||
{% extends "create_edit_obj.html" %}
|
||||
|
||||
{% block obj_title %}
|
||||
Edit build details
|
||||
{% endblock %}
|
@ -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'
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
{% extends "create_edit_obj.html" %}
|
||||
|
||||
{% block obj_title %}
|
||||
Create a new supplier
|
||||
{% endblock %}
|
@ -1,5 +0,0 @@
|
||||
{% extends "create_edit_obj.html" %}
|
||||
|
||||
{% block obj_title %}
|
||||
Edit details for company '{{ company.name }}'
|
||||
{% endblock %}
|
@ -1,5 +0,0 @@
|
||||
{% extends "create_edit_obj.html" %}
|
||||
|
||||
{% block obj_title %}
|
||||
Create a new supplier purchase order
|
||||
{% endblock %}
|
@ -1,5 +0,0 @@
|
||||
{% extends "create_edit_obj.html" %}
|
||||
|
||||
{% block obj_title %}
|
||||
Create a new supplier part
|
||||
{% endblock %}
|
@ -1,5 +0,0 @@
|
||||
{% extends "create_edit_obj.html" %}
|
||||
|
||||
{% block obj_title %}
|
||||
Edit supplier part '{{ part.SKU }}'
|
||||
{% endblock %}
|
@ -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):
|
||||
|
@ -1,5 +0,0 @@
|
||||
{% extends 'create_edit_obj.html' %}
|
||||
|
||||
{% block obj_title %}
|
||||
Create a new BOM item
|
||||
{% endblock %}
|
@ -1,5 +0,0 @@
|
||||
{% extends 'create_edit_obj.html' %}
|
||||
|
||||
{% block obj_title %}
|
||||
Edit details for BOM item
|
||||
{% endblock %}
|
@ -1,5 +0,0 @@
|
||||
{% extends "create_edit_obj.html" %}
|
||||
|
||||
{% block obj_title %}
|
||||
Edit category '{{ category.name }}'
|
||||
{% endblock %}
|
@ -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 %}
|
@ -1,5 +0,0 @@
|
||||
{% extends "create_edit_obj.html" %}
|
||||
|
||||
{% block obj_title %}
|
||||
Create a new part{% if category %} in category '{{ category.name }}'{% endif %}
|
||||
{% endblock %}
|
@ -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 %}
|
@ -1,5 +0,0 @@
|
||||
{% extends "create_edit_obj.html" %}
|
||||
|
||||
{% block obj_title %}
|
||||
Edit details for part '{{ part.name }}'
|
||||
{% endblock %}
|
@ -1,5 +0,0 @@
|
||||
{% extends "create_edit_obj.html" %}
|
||||
|
||||
{% block obj_title %}
|
||||
Create a new stock item
|
||||
{% endblock %}
|
@ -1,5 +0,0 @@
|
||||
{% extends "create_edit_obj.html" %}
|
||||
|
||||
{% block obj_title %}
|
||||
Edit stock item for part '{{ item.part.name }}'
|
||||
{% endblock %}
|
@ -1,5 +0,0 @@
|
||||
{% extends "create_edit_obj.html" %}
|
||||
|
||||
{% block obj_title %}
|
||||
Create a new stock location
|
||||
{% endblock %}
|
@ -1,5 +0,0 @@
|
||||
{% extends "create_edit_obj.html" %}
|
||||
|
||||
{% block obj_title %}
|
||||
Edit stock location '{{ location.name }}'
|
||||
{% endblock %}
|
@ -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'
|
||||
|
@ -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 %}
|
@ -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 %}
|
Loading…
Reference in New Issue
Block a user