72 lines
2.1 KiB
Python
72 lines
2.1 KiB
Python
# coding=UTF-8
|
|
|
|
from django.urls import path, re_path
|
|
|
|
from . import views
|
|
|
|
# Gymnast
|
|
people_urlpatterns = [
|
|
path(r"lookup/", views.gymnast_lookup),
|
|
path(r"search/", views.gymnast_listing),
|
|
path(r"add/", views.gymnast_create_or_update, name="gymnast_create"),
|
|
path(
|
|
r"edit/<int:gymnastid>/", views.gymnast_create_or_update, name="gymnast_update"
|
|
),
|
|
# re_path(r'^(?P<gymnastid>[0-9]+)/statistics', 'people.views.statistics'),
|
|
re_path(
|
|
r"^(?P<gymnastid>[0-9]+)/tab/(?P<tab>(level|program|routine|scores|event)+)/$",
|
|
views.gymnast_detail,
|
|
name="gymnast_details_to_tab",
|
|
),
|
|
path(r"<int:gymnastid>/", views.gymnast_detail, name="gymnast_details"),
|
|
path(
|
|
r"<int:gymnastid>/level/",
|
|
views.gymnast_display_level,
|
|
name="gymnast_display_level",
|
|
),
|
|
path(
|
|
r"<int:gymnastid>/statistics/",
|
|
views.gymnast_display_stats,
|
|
name="gymnast_display_stats",
|
|
),
|
|
path(
|
|
r"<int:gymnastid>/routine/",
|
|
views.gymnast_display_routines,
|
|
name="gymnast_display_routine",
|
|
),
|
|
path(
|
|
r"<int:gymnastid>/scores_chrono/",
|
|
views.gymnast_display_scores_chrono,
|
|
name="gymnast_display_scores_chrono",
|
|
),
|
|
path(
|
|
r"<int:gymnastid>/event_accident/",
|
|
views.gymnast_display_event_accident,
|
|
name="gymnast_display_event_accident",
|
|
),
|
|
path(
|
|
r"<int:gymnastid>/to-routine/",
|
|
views.link_routine_to_gymnast,
|
|
name="link_routine_to_gymnast",
|
|
),
|
|
path(
|
|
r"<int:gymnastid>/program/",
|
|
views.gymnast_display_program,
|
|
name="gymnast_display_program",
|
|
),
|
|
path(r"", views.gymnast_listing, name="gymnasts_list"),
|
|
]
|
|
|
|
# Accident
|
|
accident_urlpatterns = [
|
|
path(r"search/", views.accident_listing),
|
|
path(r"", views.accident_listing, name="accident_list"),
|
|
path(r"add/", views.accident_create_or_update, name="accident_create"),
|
|
path(
|
|
r"edit/<int:accidentid>/",
|
|
views.accident_create_or_update,
|
|
name="accident_update",
|
|
),
|
|
path(r"<int:accidentid>/", views.accident_detail, name="accident_details"),
|
|
]
|