- Style "Spenden" link as a compact right-aligned button - Replace radio buttons with checkboxes for Gratis/Direkt-bezahlt (toggleable) - Remove "Sonstiges" from payment method dropdown - Disable submit buttons on form submit to prevent double-clicks and give loading feedback (fixes drink_id=None bug caused by disabled button value not being submitted) - Block weak PINs (sequential and repeated digits) - Limit usernames to 2–20 characters - Style PIN errors consistently with other error messages - Add self-service "PIN ändern" page, shown above Logout in 2-column layout - Highlight own username in orange badge (matching staff-target cyan style) - Update booking window: 2026-05-30 10:00 – 2026-06-14 22:00 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
56 lines
1.8 KiB
Python
56 lines
1.8 KiB
Python
from django.urls import path
|
|
|
|
from gaehsnitz.suff import (
|
|
book_view,
|
|
change_pin_view,
|
|
closed_view,
|
|
dashboard_view,
|
|
delete_consumption_view,
|
|
delete_payment_view,
|
|
logout_view,
|
|
me_view,
|
|
name_view,
|
|
pay_view,
|
|
pin_view,
|
|
staff_book_view,
|
|
staff_delete_consumption_view,
|
|
staff_delete_payment_view,
|
|
staff_index_view,
|
|
staff_pay_view,
|
|
staff_pin_reset_view,
|
|
staff_register_view,
|
|
staff_user_view,
|
|
)
|
|
|
|
app_name = "suff"
|
|
|
|
urlpatterns = [
|
|
path("", name_view, name="name"),
|
|
path("closed/", closed_view, name="closed"),
|
|
path("pin/", pin_view, name="pin"),
|
|
path("me/", me_view, name="me"),
|
|
path("me/change-pin/", change_pin_view, name="change_pin"),
|
|
path("book/", book_view, name="book"),
|
|
path("book/<int:consumption_id>/delete/", delete_consumption_view, name="delete_consumption"),
|
|
path("pay/", pay_view, name="pay"),
|
|
path("pay/<int:payment_id>/delete/", delete_payment_view, name="delete_payment"),
|
|
path("dashboard/", dashboard_view, name="dashboard"),
|
|
path("staff/", staff_index_view, name="staff_index"),
|
|
path("staff/new/", staff_register_view, name="staff_register"),
|
|
path("staff/u/<str:username>/", staff_user_view, name="staff_user"),
|
|
path("staff/u/<str:username>/pin/", staff_pin_reset_view, name="staff_pin_reset"),
|
|
path("staff/u/<str:username>/book/", staff_book_view, name="staff_book"),
|
|
path("staff/u/<str:username>/pay/", staff_pay_view, name="staff_pay"),
|
|
path(
|
|
"staff/u/<str:username>/pay/<int:payment_id>/delete/",
|
|
staff_delete_payment_view,
|
|
name="staff_delete_payment",
|
|
),
|
|
path(
|
|
"staff/u/<str:username>/book/<int:consumption_id>/delete/",
|
|
staff_delete_consumption_view,
|
|
name="staff_delete_consumption",
|
|
),
|
|
path("logout/", logout_view, name="logout"),
|
|
]
|