2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

Added ability to edit parts

- installed django_crispy_forms
- added EditPartForm in part/forms.py
- Vastly simplified parts views by using class views 
  (need to do this for the other apps too!)
This commit is contained in:
Oliver
2018-04-15 01:18:12 +10:00
parent 8578c8a1a7
commit 21e3f415c6
9 changed files with 96 additions and 62 deletions

View File

@@ -0,0 +1,2 @@
{% extends 'part/part_base.html' %}

View File

@@ -6,5 +6,10 @@
Part details go here...
<br>
<a href="{% url 'part-edit' part.id %}"><button class="btn btn-info">Edit Part</button></a>
<a href="{% url 'part-delete' part.id %}"><button class="btn btn-danger">Delete Part</button></a>
{% endblock %}

View File

@@ -0,0 +1,11 @@
{% extends "part/part_base.html" %}
{% block details %}
Edit part information:
{% load crispy_forms_tags %}
{% crispy form %}
{% endblock %}