Sith/counter/urls.py

149 lines
4.4 KiB
Python
Raw Normal View History

2023-04-06 11:08:42 +00:00
# -*- coding:utf-8 -*-
#
# Copyright 2023 © AE UTBM
# ae@utbm.fr / ae.info@utbm.fr
2023-04-06 11:08:42 +00:00
# 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.
#
2023-04-06 11:08:42 +00:00
# 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"
#
2023-04-06 11:08:42 +00:00
# PREVIOUSLY LICENSED UNDER THE MIT LICENSE,
# SEE : https://raw.githubusercontent.com/ae-utbm/sith3/master/LICENSE.old
# OR WITHIN THE LOCAL FILE "LICENSE.old"
#
2023-01-09 21:07:03 +00:00
from django.urls import path
2016-03-28 12:54:35 +00:00
from counter.views import *
urlpatterns = [
2023-01-09 21:07:03 +00:00
path("<int:counter_id>/", CounterMain.as_view(), name="details"),
path(
"<int:counter_id>/click/<int:user_id>/",
2018-10-04 19:29:19 +00:00
CounterClick.as_view(),
name="click",
),
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",
),
2023-01-09 21:07:03 +00:00
path(
"<int:counter_id>/activity/",
2018-10-04 19:29:19 +00:00
CounterActivityView.as_view(),
name="activity",
),
2023-01-09 21:07:03 +00:00
path("<int:counter_id>/stats/", CounterStatView.as_view(), name="stats"),
path("<int:counter_id>/login/", CounterLogin.as_view(), name="login"),
path("<int:counter_id>/logout/", CounterLogout.as_view(), name="logout"),
path(
"eticket/<int:selling_id>/pdf/",
2018-10-04 19:29:19 +00:00
EticketPDFView.as_view(),
name="eticket_pdf",
),
2023-01-09 21:07:03 +00:00
path(
"customer/<int:customer_id>/card/add/",
StudentCardFormView.as_view(),
name="add_student_card",
),
2023-01-09 21:07:03 +00:00
path(
"customer/<int:customer_id>/card/delete/<int:card_id>/",
StudentCardDeleteView.as_view(),
name="delete_student_card",
),
path(
"customer/<int:user_id>/billing_info/create",
create_billing_info,
name="create_billing_info",
),
path(
"customer/<int:user_id>/billing_info/edit",
edit_billing_info,
name="edit_billing_info",
),
2023-01-09 21:07:03 +00:00
path("admin/<int:counter_id>/", CounterEditView.as_view(), name="admin"),
path(
"admin/<int:counter_id>/prop/",
2018-10-04 19:29:19 +00:00
CounterEditPropView.as_view(),
name="prop_admin",
),
2023-01-09 21:07:03 +00:00
path("admin/", CounterListView.as_view(), name="admin_list"),
path("admin/new/", CounterCreateView.as_view(), name="new"),
path(
"admin/delete/<int:counter_id>/",
2018-10-04 19:29:19 +00:00
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",
),
2023-01-09 21:07:03 +00:00
path("admin/product/list/", ProductListView.as_view(), name="product_list"),
path(
"admin/product/list_archived/",
2018-10-04 19:29:19 +00:00
ProductArchivedListView.as_view(),
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(
"admin/producttype/list/",
2018-10-04 19:29:19 +00:00
ProductTypeListView.as_view(),
name="producttype_list",
),
2023-01-09 21:07:03 +00:00
path(
"admin/producttype/create/",
2018-10-04 19:29:19 +00:00
ProductTypeCreateView.as_view(),
name="new_producttype",
),
2023-01-09 21:07:03 +00:00
path(
"admin/producttype/<int:type_id>/",
2018-10-04 19:29:19 +00:00
ProductTypeEditView.as_view(),
name="producttype_edit",
),
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
]