2017-04-24 15:51:12 +00:00
|
|
|
#
|
2023-04-04 16:39:45 +00:00
|
|
|
# Copyright 2023 © AE UTBM
|
|
|
|
# ae@utbm.fr / ae.info@utbm.fr
|
2017-04-24 15:51:12 +00:00
|
|
|
#
|
2023-04-04 16:39:45 +00:00
|
|
|
# This file is part of the website of the UTBM Student Association (AE UTBM),
|
|
|
|
# https://ae.utbm.fr.
|
2017-04-24 15:51:12 +00:00
|
|
|
#
|
2024-09-22 23:37:25 +00:00
|
|
|
# You can find the source code of the website at https://github.com/ae-utbm/sith
|
2017-04-24 15:51:12 +00:00
|
|
|
#
|
2023-04-04 16:39:45 +00:00
|
|
|
# LICENSED UNDER THE GNU GENERAL PUBLIC LICENSE VERSION 3 (GPLv3)
|
2024-09-23 08:25:27 +00:00
|
|
|
# SEE : https://raw.githubusercontent.com/ae-utbm/sith/master/LICENSE
|
2023-04-04 16:39:45 +00:00
|
|
|
# OR WITHIN THE LOCAL FILE "LICENSE"
|
2017-04-24 15:51:12 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2023-01-09 21:07:03 +00:00
|
|
|
from django.urls import path
|
2016-03-28 12:54:35 +00:00
|
|
|
|
2024-11-27 18:02:48 +00:00
|
|
|
from counter.views.admin import (
|
2024-10-15 09:36:26 +00:00
|
|
|
ActiveProductListView,
|
|
|
|
ArchivedProductListView,
|
|
|
|
CounterCreateView,
|
|
|
|
CounterDeleteView,
|
|
|
|
CounterEditPropView,
|
|
|
|
CounterEditView,
|
|
|
|
CounterListView,
|
|
|
|
CounterRefillingListView,
|
|
|
|
CounterStatView,
|
|
|
|
ProductCreateView,
|
|
|
|
ProductEditView,
|
|
|
|
ProductTypeCreateView,
|
|
|
|
ProductTypeEditView,
|
|
|
|
ProductTypeListView,
|
|
|
|
RefillingDeleteView,
|
|
|
|
SellingDeleteView,
|
2024-11-27 18:02:48 +00:00
|
|
|
)
|
2024-12-06 23:18:17 +00:00
|
|
|
from counter.views.auth import counter_login, counter_logout
|
2024-11-27 18:02:48 +00:00
|
|
|
from counter.views.cash import (
|
|
|
|
CashSummaryEditView,
|
|
|
|
CashSummaryListView,
|
|
|
|
CounterCashSummaryView,
|
|
|
|
)
|
2024-12-15 20:33:19 +00:00
|
|
|
from counter.views.click import CounterClick, RefillingCreateView
|
2024-11-27 18:02:48 +00:00
|
|
|
from counter.views.eticket import (
|
|
|
|
EticketCreateView,
|
|
|
|
EticketEditView,
|
|
|
|
EticketListView,
|
|
|
|
EticketPDFView,
|
|
|
|
)
|
2024-12-06 23:18:17 +00:00
|
|
|
from counter.views.home import (
|
2024-11-27 18:02:48 +00:00
|
|
|
CounterActivityView,
|
|
|
|
CounterLastOperationsView,
|
|
|
|
CounterMain,
|
2024-10-15 09:36:26 +00:00
|
|
|
)
|
2024-12-06 23:18:17 +00:00
|
|
|
from counter.views.invoice import InvoiceCallView
|
2024-11-14 15:17:10 +00:00
|
|
|
from counter.views.student_card import (
|
|
|
|
StudentCardDeleteView,
|
|
|
|
StudentCardFormView,
|
|
|
|
)
|
2016-03-28 12:54:35 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2023-01-09 21:07:03 +00:00
|
|
|
path("<int:counter_id>/", CounterMain.as_view(), name="details"),
|
2024-10-13 10:32:50 +00:00
|
|
|
path("<int:counter_id>/click/<int:user_id>/", CounterClick.as_view(), name="click"),
|
2024-12-15 20:33:19 +00:00
|
|
|
path(
|
|
|
|
"refill/<int:customer_id>/",
|
|
|
|
RefillingCreateView.as_view(),
|
|
|
|
name="refilling_create",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"<int:counter_id>/last_ops/",
|
2018-10-04 19:29:19 +00:00
|
|
|
CounterLastOperationsView.as_view(),
|
|
|
|
name="last_ops",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"<int:counter_id>/cash_summary/",
|
2018-10-04 19:29:19 +00:00
|
|
|
CounterCashSummaryView.as_view(),
|
|
|
|
name="cash_summary",
|
|
|
|
),
|
2024-10-13 10:32:50 +00:00
|
|
|
path("<int:counter_id>/activity/", CounterActivityView.as_view(), name="activity"),
|
2023-01-09 21:07:03 +00:00
|
|
|
path("<int:counter_id>/stats/", CounterStatView.as_view(), name="stats"),
|
2024-07-21 08:44:43 +00:00
|
|
|
path("<int:counter_id>/login/", counter_login, name="login"),
|
|
|
|
path("<int:counter_id>/logout/", counter_logout, name="logout"),
|
2024-10-13 10:32:50 +00:00
|
|
|
path("eticket/<int:selling_id>/pdf/", EticketPDFView.as_view(), name="eticket_pdf"),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"customer/<int:customer_id>/card/add/",
|
2018-10-19 17:25:55 +00:00
|
|
|
StudentCardFormView.as_view(),
|
|
|
|
name="add_student_card",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
2024-12-08 15:07:25 +00:00
|
|
|
"customer/<int:customer_id>/card/delete/",
|
2018-10-19 17:25:55 +00:00
|
|
|
StudentCardDeleteView.as_view(),
|
|
|
|
name="delete_student_card",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path("admin/<int:counter_id>/", CounterEditView.as_view(), name="admin"),
|
|
|
|
path(
|
2024-10-13 10:32:50 +00:00
|
|
|
"admin/<int:counter_id>/prop/", CounterEditPropView.as_view(), name="prop_admin"
|
2018-10-04 19:29:19 +00:00
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path("admin/", CounterListView.as_view(), name="admin_list"),
|
|
|
|
path("admin/new/", CounterCreateView.as_view(), name="new"),
|
2024-10-13 10:32:50 +00:00
|
|
|
path("admin/delete/<int:counter_id>/", CounterDeleteView.as_view(), name="delete"),
|
2023-01-09 21:07:03 +00:00
|
|
|
path("admin/invoices_call/", InvoiceCallView.as_view(), name="invoices_call"),
|
|
|
|
path(
|
|
|
|
"admin/cash_summary/list/",
|
2018-10-04 19:29:19 +00:00
|
|
|
CashSummaryListView.as_view(),
|
|
|
|
name="cash_summary_list",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"admin/cash_summary/<int:cashsummary_id>/",
|
2018-10-04 19:29:19 +00:00
|
|
|
CashSummaryEditView.as_view(),
|
|
|
|
name="cash_summary_edit",
|
|
|
|
),
|
2024-10-13 10:32:50 +00:00
|
|
|
path("admin/product/list/", ActiveProductListView.as_view(), name="product_list"),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"admin/product/list_archived/",
|
2024-10-13 10:32:50 +00:00
|
|
|
ArchivedProductListView.as_view(),
|
2018-10-04 19:29:19 +00:00
|
|
|
name="product_list_archived",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path("admin/product/create/", ProductCreateView.as_view(), name="new_product"),
|
|
|
|
path(
|
|
|
|
"admin/product/<int:product_id>/",
|
2018-10-04 19:29:19 +00:00
|
|
|
ProductEditView.as_view(),
|
|
|
|
name="product_edit",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
2024-12-18 11:16:24 +00:00
|
|
|
"admin/product-type/list/",
|
2018-10-04 19:29:19 +00:00
|
|
|
ProductTypeListView.as_view(),
|
2024-12-18 11:16:24 +00:00
|
|
|
name="product_type_list",
|
2018-10-04 19:29:19 +00:00
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
2024-12-18 11:16:24 +00:00
|
|
|
"admin/product-type/create/",
|
2018-10-04 19:29:19 +00:00
|
|
|
ProductTypeCreateView.as_view(),
|
2024-12-18 11:16:24 +00:00
|
|
|
name="new_product_type",
|
2018-10-04 19:29:19 +00:00
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
2024-12-18 11:16:24 +00:00
|
|
|
"admin/product-type/<int:type_id>/",
|
2018-10-04 19:29:19 +00:00
|
|
|
ProductTypeEditView.as_view(),
|
2024-12-18 11:16:24 +00:00
|
|
|
name="product_type_edit",
|
2018-10-04 19:29:19 +00:00
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path("admin/eticket/list/", EticketListView.as_view(), name="eticket_list"),
|
|
|
|
path("admin/eticket/new/", EticketCreateView.as_view(), name="new_eticket"),
|
|
|
|
path(
|
|
|
|
"admin/eticket/<int:eticket_id>/",
|
2018-10-04 19:29:19 +00:00
|
|
|
EticketEditView.as_view(),
|
|
|
|
name="edit_eticket",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"admin/selling/<int:selling_id>/delete/",
|
2018-10-04 19:29:19 +00:00
|
|
|
SellingDeleteView.as_view(),
|
|
|
|
name="selling_delete",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"admin/refilling/<int:refilling_id>/delete/",
|
2018-10-04 19:29:19 +00:00
|
|
|
RefillingDeleteView.as_view(),
|
|
|
|
name="refilling_delete",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"admin/<int:counter_id>/refillings/",
|
2018-10-04 19:29:19 +00:00
|
|
|
CounterRefillingListView.as_view(),
|
|
|
|
name="refilling_list",
|
|
|
|
),
|
2016-03-28 12:54:35 +00:00
|
|
|
]
|