mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
30 lines
1.2 KiB
Python
30 lines
1.2 KiB
Python
|
|
from django.urls import path
|
|
|
|
from comandas import htmx_views
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path('', views.comandas, name='comandas'),
|
|
path('viewcomanda/', views.viewComanda, name='viewcomanda'),
|
|
path('createComanda/', views.createComanda, name='createComanda'),
|
|
path('editComanda/', views.editComanda, name='editComanda'),
|
|
path('addContaCliente/', views.addContaCliente, name='addContaCliente'),
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
htmx_urlpatterns = [
|
|
# path('listProduct/', htmx_views.listProduct, name='listProduct'),
|
|
path('listProduct/<int:comanda_id>/', htmx_views.listProduct, name='listProduct'),
|
|
path('addProduct<int:product_id>/<int:comanda_id>/', htmx_views.addProduct, name='addProduct'),
|
|
path('removeProductComanda<int:productComanda_id>/', htmx_views.removeProductComanda, name='removeProductComanda'),
|
|
path('editOrders/<int:productComanda_id>/<str:obs>', htmx_views.editOrders, name='editOrders'),
|
|
path('closeComanda<int:comanda_id>/', htmx_views.closeComanda, name='closeComanda'),
|
|
path('reopenComanda<int:comanda_id>/', htmx_views.reopenComanda, name='reopenComanda'),
|
|
path('paymentComanda<int:comanda_id>/', htmx_views.paymentComanda, name='paymentComanda'),
|
|
]
|
|
|
|
urlpatterns += htmx_urlpatterns |