2022-01-07 19:28:33 +01:00
|
|
|
from django.urls import path
|
2021-12-09 16:53:44 +01:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
2021-12-16 18:42:21 +01:00
|
|
|
# Chronos
|
2021-12-09 16:53:44 +01:00
|
|
|
chrono_urlpatterns = [
|
2021-12-19 09:30:51 +01:00
|
|
|
path(r"", views.chrono_listing, name="chrono_list"),
|
2021-12-19 19:59:20 +01:00
|
|
|
path(
|
|
|
|
r"gymnast/<int:gymnast_id>/",
|
|
|
|
views.chrono_listing,
|
|
|
|
name="chrono_list_for_gymnast",
|
|
|
|
),
|
2021-12-24 07:48:46 +01:00
|
|
|
path(r"add/", views.chrono_create_or_update, name="chrono_create"),
|
2021-12-19 09:30:51 +01:00
|
|
|
path(
|
2021-12-24 07:48:46 +01:00
|
|
|
r"add/<int:gymnast_id>/",
|
2021-12-19 09:30:51 +01:00
|
|
|
views.chrono_create_or_update,
|
|
|
|
name="chrono_create_for_gymnast",
|
|
|
|
),
|
2022-02-01 11:08:02 +01:00
|
|
|
path(r"edit/<int:chrono_id>/", views.chrono_create_or_update, name="chrono_update"),
|
2022-01-25 19:03:43 +01:00
|
|
|
path(r"details/<int:chrono_id>/", views.jump_chrono_details, name="jump_chrono_details"),
|
|
|
|
path(r"details/<int:chrono_id>/add/", views.jump_chrono_values_create_or_update, name="jump_chrono_values_create_or_update"),
|
|
|
|
path(r"<int:chrono_id>/add_jump_chrono_value/", views.add_jump_chrono_value, name="add_jump_chrono_value"),
|
|
|
|
path(r"<int:chrono_id>/remove_jump_chrono_value/", views.remove_jump_chrono_value, name="remove_jump_chrono_value"),
|
2022-01-27 07:54:29 +01:00
|
|
|
path(r"detailed_score_for_date_range/<int:gymnast_id>/", views.average_jump_chrono_details, name="average_jump_chrono_details"),
|
2021-12-09 16:53:44 +01:00
|
|
|
]
|
|
|
|
|
2021-12-16 18:42:21 +01:00
|
|
|
# Learned Skill
|
2021-12-09 16:53:44 +01:00
|
|
|
learnedskill_urlpatterns = [
|
2021-12-24 07:48:46 +01:00
|
|
|
path(r"add/", views.learnedskill_create_or_update, name="learnedskill_create"),
|
2021-12-19 09:30:51 +01:00
|
|
|
path(
|
2021-12-24 07:48:46 +01:00
|
|
|
r"add/<int:gymnast_id>/",
|
2021-12-19 09:30:51 +01:00
|
|
|
views.learnedskill_create_or_update,
|
|
|
|
name="learnedskill_create",
|
|
|
|
),
|
2021-12-09 16:53:44 +01:00
|
|
|
path(r"new/", views.gymnast_learn_skill),
|
|
|
|
]
|
|
|
|
|
2021-12-16 18:42:21 +01:00
|
|
|
# Score
|
2021-12-09 16:53:44 +01:00
|
|
|
score_urlpatterns = [
|
2021-12-19 19:59:20 +01:00
|
|
|
path(r"", views.score_listing),
|
|
|
|
path(
|
|
|
|
r"gymnast/<int:gymnast_id>/",
|
|
|
|
views.score_listing,
|
|
|
|
name="score_list_for_gymnast",
|
|
|
|
),
|
2021-12-09 16:53:44 +01:00
|
|
|
path(
|
2021-12-19 19:59:20 +01:00
|
|
|
r"add/<int:gymnast_id>",
|
2021-12-09 16:53:44 +01:00
|
|
|
views.score_create_or_update,
|
|
|
|
name="score_create_for_gymnast",
|
|
|
|
),
|
|
|
|
path(r"add", views.score_create_or_update, name="score_create"),
|
2022-02-01 11:08:02 +01:00
|
|
|
path(r"edit/<int:score_id>", views.score_create_or_update, name="score_update"),
|
2021-12-09 16:53:44 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
# 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"),
|
2021-12-19 09:30:51 +01:00
|
|
|
path(
|
2021-12-19 19:59:20 +01:00
|
|
|
r"add/<int:gymnast_id>",
|
2021-12-19 09:30:51 +01:00
|
|
|
views.accident_create_or_update,
|
|
|
|
name="accident_create_for_gymnast",
|
|
|
|
),
|
2021-12-09 16:53:44 +01:00
|
|
|
path(
|
2022-02-01 11:08:02 +01:00
|
|
|
r"edit/<int:accident_id>/",
|
2021-12-09 16:53:44 +01:00
|
|
|
views.accident_create_or_update,
|
|
|
|
name="accident_update",
|
|
|
|
),
|
2022-02-01 11:08:02 +01:00
|
|
|
path(r"<int:accident_id>/", views.accident_detail, name="accident_details"),
|
2021-12-09 16:53:44 +01:00
|
|
|
]
|
|
|
|
|
2021-12-16 18:42:21 +01:00
|
|
|
# Minstate
|
2021-12-09 16:53:44 +01:00
|
|
|
mindstate_urlpatterns = [
|
|
|
|
path(r"", views.mindstate_listing, name="mindstate_list"),
|
2021-12-19 09:30:51 +01:00
|
|
|
path(
|
2021-12-19 19:59:20 +01:00
|
|
|
r"gymnast/<int:gymnast_id>/",
|
2021-12-19 09:30:51 +01:00
|
|
|
views.mindstate_listing,
|
2021-12-19 19:59:20 +01:00
|
|
|
name="mindstate_list_for_gymnast",
|
2021-12-19 09:30:51 +01:00
|
|
|
),
|
2021-12-09 16:53:44 +01:00
|
|
|
path(r"add/", views.mindstate_create_or_update, name="mindstate_create"),
|
2021-12-19 09:30:51 +01:00
|
|
|
path(
|
2021-12-19 19:59:20 +01:00
|
|
|
r"add/<int:gymnast_id>",
|
2021-12-19 09:30:51 +01:00
|
|
|
views.mindstate_create_or_update,
|
|
|
|
name="mindstate_create_for_gymnast",
|
|
|
|
),
|
2021-12-09 16:53:44 +01:00
|
|
|
path(
|
2022-02-01 11:08:02 +01:00
|
|
|
r"edit/<int:mindstate_id>/",
|
2021-12-09 16:53:44 +01:00
|
|
|
views.mindstate_create_or_update,
|
|
|
|
name="mindstate_update",
|
|
|
|
),
|
2022-02-01 11:08:02 +01:00
|
|
|
path(r"<int:mindstate_id>/", views.mindstate_detail, name="mindstate_details"),
|
2021-12-16 09:49:36 +01:00
|
|
|
]
|
|
|
|
|
2021-12-16 18:42:21 +01:00
|
|
|
# Height & Weight
|
2021-12-16 09:49:36 +01:00
|
|
|
heightweight_urlpatterns = [
|
2021-12-19 19:59:20 +01:00
|
|
|
path(
|
|
|
|
r"gymnast/<int:gymnast_id>/",
|
|
|
|
views.heightweight_listing,
|
|
|
|
name="heightweight_list_for_gymnast",
|
|
|
|
),
|
2021-12-16 09:49:36 +01:00
|
|
|
path(r"add/", views.heightweight_create_or_update, name="heightweight_create"),
|
2021-12-19 09:30:51 +01:00
|
|
|
path(
|
2021-12-19 19:59:20 +01:00
|
|
|
r"add/<int:gymnast_id>",
|
2021-12-19 09:30:51 +01:00
|
|
|
views.heightweight_create_or_update,
|
|
|
|
name="heightweight_create_for_gymnast",
|
|
|
|
),
|
2021-12-16 09:49:36 +01:00
|
|
|
path(
|
2022-02-01 11:08:02 +01:00
|
|
|
r"edit/<int:heightweight_id>/",
|
2021-12-16 09:49:36 +01:00
|
|
|
views.heightweight_create_or_update,
|
|
|
|
name="heightweight_update",
|
|
|
|
),
|
2021-12-19 09:30:51 +01:00
|
|
|
]
|
2021-12-24 07:48:46 +01:00
|
|
|
|
|
|
|
# Routine done
|
|
|
|
routinedone_urlpatterns = [
|
|
|
|
path(
|
|
|
|
r"add/",
|
|
|
|
views.routinedone_create_or_update,
|
|
|
|
name="routinedone_create"
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
r"add/<int:gymnast_id>/",
|
|
|
|
views.routinedone_create_or_update,
|
|
|
|
name="routinedone_create_for_gymnast",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
r"edit/<int:routinedone_id>/",
|
|
|
|
views.routinedone_create_or_update,
|
|
|
|
name="routinedone_update",
|
|
|
|
),
|
2021-12-24 19:59:12 +01:00
|
|
|
path(
|
|
|
|
r"gymnast/<int:gymnast_id>/",
|
|
|
|
views.routine_done_listing,
|
|
|
|
name="routinedone_list_for_gymnast",
|
|
|
|
),
|
|
|
|
path(r"", views.routine_done_listing, name="routinedone_list"),
|
2022-01-05 18:44:15 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
# Plan
|
|
|
|
plan_urlpatterns = [
|
|
|
|
path(r"add/", views.plan_create_or_update, name="plan_create"),
|
|
|
|
path(
|
|
|
|
r"add/<int:gymnast_id>/",
|
|
|
|
views.plan_create_or_update,
|
|
|
|
name="add_plan_for_gymnast",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
r"add/<int:gymnast_id>/<int:skill_id>/",
|
|
|
|
views.plan_create_or_update,
|
|
|
|
name="add_skill_for_gymnast",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
r"edit/<int:plan_id>/",
|
|
|
|
views.plan_create_or_update,
|
|
|
|
name="plan_update",
|
|
|
|
),
|
2022-01-07 19:28:33 +01:00
|
|
|
]
|