add edit_lineup dashboard
This commit is contained in:
@@ -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",
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user