mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
Remove student card creation from CounterClick view and use fragment instead
Intercept htmx on submit requests, this allows auto submit from nfc fields Fix super call with parameters Add loading wheel on student card form for counter_click.jinja
This commit is contained in:
1 parent
1da45fdffc
commit
b81cf49d0a
8 files changed
+196
-97
No files matched your search
+10
-1
@@ -52,7 +52,11 @@ from counter.views.home import (
|
||||
CounterMain,
|
||||
)
|
||||
from counter.views.invoice import InvoiceCallView
|
||||
from counter.views.student_card import StudentCardDeleteView, StudentCardFormView
|
||||
from counter.views.student_card import (
|
||||
StudentCardDeleteView,
|
||||
StudentCardFormFragmentView,
|
||||
StudentCardFormView,
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
path("<int:counter_id>/", CounterMain.as_view(), name="details"),
|
||||
@@ -77,6 +81,11 @@ urlpatterns = [
|
||||
StudentCardFormView.as_view(),
|
||||
name="add_student_card",
|
||||
),
|
||||
path(
|
||||
"customer/<int:customer_id>/card/add/counter/<int:counter_id>/",
|
||||
StudentCardFormFragmentView.as_view(),
|
||||
name="add_student_card_fragment",
|
||||
),
|
||||
path(
|
||||
"customer/<int:customer_id>/card/delete/<int:card_id>/",
|
||||
StudentCardDeleteView.as_view(),
|
||||
|
||||
Reference in new issue
Block a user