# -*- coding:utf-8 -*- # # Copyright 2023 © AE UTBM # ae@utbm.fr / ae.info@utbm.fr # All contributors are listed in the CONTRIBUTORS file. # # This file is part of the website of the UTBM Student Association (AE UTBM), # https://ae.utbm.fr. # # You can find the whole source code at https://github.com/ae-utbm/sith3 # # LICENSED UNDER THE GNU GENERAL PUBLIC LICENSE VERSION 3 (GPLv3) # SEE : https://raw.githubusercontent.com/ae-utbm/sith3/master/LICENSE # OR WITHIN THE LOCAL FILE "LICENSE" # # PREVIOUSLY LICENSED UNDER THE MIT LICENSE, # SEE : https://raw.githubusercontent.com/ae-utbm/sith3/master/LICENSE.old # OR WITHIN THE LOCAL FILE "LICENSE.old" # from django.urls import path from stock.views import * urlpatterns = [ # Stock re_paths path("new/counter//", StockCreateView.as_view(), name="new"), path("edit//", StockEditView.as_view(), name="edit"), path("list/", StockListView.as_view(), name="list"), # StockItem re_paths path("/", StockItemList.as_view(), name="items_list"), path( "/stock_item/new_item/", StockItemCreateView.as_view(), name="new_item", ), path( "stock_item//edit/", StockItemEditView.as_view(), name="edit_item", ), path( "/stock_item/take_items/", StockTakeItemsBaseFormView.as_view(), name="take_items", ), # ShoppingList re_paths path( "/shopping_list/list/", StockShoppingListView.as_view(), name="shoppinglist_list", ), path( "/shopping_list/create/", StockItemQuantityBaseFormView.as_view(), name="shoppinglist_create", ), path( "/shopping_list//items/", StockShoppingListItemListView.as_view(), name="shoppinglist_items", ), path( "/shopping_list//delete/", StockShoppingListDeleteView.as_view(), name="shoppinglist_delete", ), path( "/shopping_list//set_done/", StockShopppingListSetDone.as_view(), name="shoppinglist_set_done", ), path( "/shopping_list//set_todo/", StockShopppingListSetTodo.as_view(), name="shoppinglist_set_todo", ), path( "/shopping_list//update_stock/", StockUpdateAfterShopppingBaseFormView.as_view(), name="update_after_shopping", ), ]