2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-11 07:24:15 +00:00

A good start on web interface

- Added details for "part" app
- Added BOM page for each part
- Added Stock page for each part
- Bootstrap! CSS!
This commit is contained in:
Oliver
2018-04-14 00:08:30 +10:00
parent bd46f66d6b
commit eec725d90f
14 changed files with 197 additions and 38 deletions

View File

@ -1,4 +1,4 @@
from django.conf.urls import url
from django.conf.urls import url, include
from django.views.generic.base import RedirectView
from . import views
@ -28,11 +28,18 @@ part_api_urls = [
url(r'^$', views.PartList.as_view()),
]
part_detail_urls = [
url(r'^bom/?', views.bom, name='bom'),
url(r'^stock/?', views.stock, name='stock'),
url('', views.detail, name='detail'),
]
# URL list for part web interface
part_urls = [
# Individual
url(r'^(?P<pk>\d+)/$', views.detail, name='detail'),
# ex: /part/
url(r'^(?P<pk>\d+)/', include(part_detail_urls)),
url('list', views.index, name='index'),
# ex: /part/5/