add edit_lineup dashboard

This commit is contained in:
2022-06-02 14:42:11 -05:00
parent 598ebd6910
commit cd503f639c
48 changed files with 89184 additions and 154 deletions

View File

@@ -2,17 +2,30 @@ from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns
from django.urls import path
from .provider import TeamsnapProvider
from .views import PreferencesFormView, schedule_view, view_event
from .views import (
PreferencesFormView,
dashboard,
edit_lineup,
schedule_view,
view_event,
)
urlpatterns = default_urlpatterns(TeamsnapProvider)
urlpatterns += [
path("preferences/", PreferencesFormView.as_view(), name="preferences"),
path("preferences/", PreferencesFormView.as_view(), name="teamsnap_preferences"),
path("<int:team_id>/schedule/", schedule_view, name="teamsnap_schedule"),
path("<int:team_id>/dashboard/", dashboard, name="teamsnap_dashboard"),
path("dashboard/", dashboard, name="teamsnap_dashboard"),
path("schedule/", schedule_view, name="teamsnap_schedule"),
path(
"<int:team_id>/schedule/view_event/<int:event_id>",
view_event,
name="teamsnap_view_event",
),
path(
"<int:team_id>/schedule/edit_lineup/<int:event_ids>",
edit_lineup,
name="teamsnap_edit_lineup",
),
]