mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-16 03:03:21 +00:00
89 lines
3.0 KiB
Python
89 lines
3.0 KiB
Python
# -*- coding:utf-8 -*
|
|
#
|
|
# Copyright 2016,2017
|
|
# - Guillaume "Lo-J" Renaud <renaudg779@gmail.com>
|
|
# - Skia <skia@libskia.so>
|
|
#
|
|
# Ce fichier fait partie du site de l'Association des Étudiants de l'UTBM,
|
|
# http://ae.utbm.fr.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify it under
|
|
# the terms of the GNU General Public License a published by the Free Software
|
|
# Foundation; either version 3 of the License, or (at your option) any later
|
|
# version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
# details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License along with
|
|
# this program; if not, write to the Free Sofware Foundation, Inc., 59 Temple
|
|
# Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
#
|
|
#
|
|
|
|
from django.conf.urls import include, url
|
|
|
|
from stock.views import *
|
|
|
|
urlpatterns = [
|
|
# Stock urls
|
|
url(r"^new/counter/(?P<counter_id>[0-9]+)$", StockCreateView.as_view(), name="new"),
|
|
url(r"^edit/(?P<stock_id>[0-9]+)$", StockEditView.as_view(), name="edit"),
|
|
url(r"^list$", StockListView.as_view(), name="list"),
|
|
# StockItem urls
|
|
url(r"^(?P<stock_id>[0-9]+)$", StockItemList.as_view(), name="items_list"),
|
|
url(
|
|
r"^(?P<stock_id>[0-9]+)/stock_item/new_item$",
|
|
StockItemCreateView.as_view(),
|
|
name="new_item",
|
|
),
|
|
url(
|
|
r"^stock_item/(?P<item_id>[0-9]+)/edit$",
|
|
StockItemEditView.as_view(),
|
|
name="edit_item",
|
|
),
|
|
url(
|
|
r"^(?P<stock_id>[0-9]+)/stock_item/take_items$",
|
|
StockTakeItemsBaseFormView.as_view(),
|
|
name="take_items",
|
|
),
|
|
# ShoppingList urls
|
|
url(
|
|
r"^(?P<stock_id>[0-9]+)/shopping_list/list$",
|
|
StockShoppingListView.as_view(),
|
|
name="shoppinglist_list",
|
|
),
|
|
url(
|
|
r"^(?P<stock_id>[0-9]+)/shopping_list/create$",
|
|
StockItemQuantityBaseFormView.as_view(),
|
|
name="shoppinglist_create",
|
|
),
|
|
url(
|
|
r"^(?P<stock_id>[0-9]+)/shopping_list/(?P<shoppinglist_id>[0-9]+)/items$",
|
|
StockShoppingListItemListView.as_view(),
|
|
name="shoppinglist_items",
|
|
),
|
|
url(
|
|
r"^(?P<stock_id>[0-9]+)/shopping_list/(?P<shoppinglist_id>[0-9]+)/delete$",
|
|
StockShoppingListDeleteView.as_view(),
|
|
name="shoppinglist_delete",
|
|
),
|
|
url(
|
|
r"^(?P<stock_id>[0-9]+)/shopping_list/(?P<shoppinglist_id>[0-9]+)/set_done$",
|
|
StockShopppingListSetDone.as_view(),
|
|
name="shoppinglist_set_done",
|
|
),
|
|
url(
|
|
r"^(?P<stock_id>[0-9]+)/shopping_list/(?P<shoppinglist_id>[0-9]+)/set_todo$",
|
|
StockShopppingListSetTodo.as_view(),
|
|
name="shoppinglist_set_todo",
|
|
),
|
|
url(
|
|
r"^(?P<stock_id>[0-9]+)/shopping_list/(?P<shoppinglist_id>[0-9]+)/update_stock$",
|
|
StockUpdateAfterShopppingBaseFormView.as_view(),
|
|
name="update_after_shopping",
|
|
),
|
|
]
|