2017-08-15 19:14:03 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2017-12-13 23:12:32 +00:00
|
|
|
from django.urls import path
|
2017-08-15 19:14:03 +00:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
2017-12-03 21:52:27 +00:00
|
|
|
app_name = 'core'
|
|
|
|
|
2017-08-15 19:14:03 +00:00
|
|
|
urlpatterns = [
|
2017-12-13 23:12:32 +00:00
|
|
|
path('children/', views.ChildList.as_view(), name='child-list'),
|
|
|
|
path('children/add/', views.ChildAdd.as_view(), name='child-add'),
|
2021-04-25 10:36:57 +00:00
|
|
|
path('children/<str:slug>/', views.ChildDetail.as_view(), name='child'),
|
2017-12-13 23:12:32 +00:00
|
|
|
path(
|
2021-04-25 10:36:57 +00:00
|
|
|
'children/<str:slug>/edit/',
|
2017-12-13 23:12:32 +00:00
|
|
|
views.ChildUpdate.as_view(),
|
|
|
|
name='child-update'
|
|
|
|
),
|
|
|
|
path(
|
2021-04-25 10:36:57 +00:00
|
|
|
'children/<str:slug>/delete/',
|
2017-12-13 23:12:32 +00:00
|
|
|
views.ChildDelete.as_view(),
|
|
|
|
name='child-delete'
|
|
|
|
),
|
2017-08-16 15:16:27 +00:00
|
|
|
|
2021-08-22 03:42:29 +00:00
|
|
|
path('timeline/', views.Timeline.as_view(), name='timeline'),
|
|
|
|
|
2017-12-13 23:12:32 +00:00
|
|
|
path(
|
|
|
|
'changes/',
|
|
|
|
views.DiaperChangeList.as_view(),
|
|
|
|
name='diaperchange-list'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'changes/add/',
|
|
|
|
views.DiaperChangeAdd.as_view(),
|
|
|
|
name='diaperchange-add'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'changes/<int:pk>/',
|
|
|
|
views.DiaperChangeUpdate.as_view(),
|
|
|
|
name='diaperchange-update'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'changes/<int:pk>/delete/',
|
|
|
|
views.DiaperChangeDelete.as_view(),
|
|
|
|
name='diaperchange-delete'
|
|
|
|
),
|
2017-08-16 15:16:27 +00:00
|
|
|
|
2017-12-13 23:12:32 +00:00
|
|
|
path('feedings/', views.FeedingList.as_view(), name='feeding-list'),
|
|
|
|
path('feedings/add/', views.FeedingAdd.as_view(), name='feeding-add'),
|
|
|
|
path(
|
|
|
|
'feedings/<int:pk>/',
|
|
|
|
views.FeedingUpdate.as_view(),
|
|
|
|
name='feeding-update'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'feedings/<int:pk>/delete/',
|
|
|
|
views.FeedingDelete.as_view(),
|
|
|
|
name='feeding-delete'
|
|
|
|
),
|
2017-08-16 15:16:27 +00:00
|
|
|
|
2017-12-13 23:12:32 +00:00
|
|
|
path('notes/', views.NoteList.as_view(), name='note-list'),
|
|
|
|
path('notes/add/', views.NoteAdd.as_view(), name='note-add'),
|
|
|
|
path('notes/<int:pk>/', views.NoteUpdate.as_view(), name='note-update'),
|
|
|
|
path(
|
|
|
|
'notes/<int:pk>/delete/',
|
|
|
|
views.NoteDelete.as_view(),
|
|
|
|
name='note-delete'
|
|
|
|
),
|
2017-08-16 15:16:27 +00:00
|
|
|
|
2017-12-13 23:12:32 +00:00
|
|
|
path('sleep/', views.SleepList.as_view(), name='sleep-list'),
|
|
|
|
path('sleep/add/', views.SleepAdd.as_view(), name='sleep-add'),
|
|
|
|
path('sleep/<int:pk>/', views.SleepUpdate.as_view(), name='sleep-update'),
|
|
|
|
path(
|
|
|
|
'sleep/<int:pk>/delete/',
|
|
|
|
views.SleepDelete.as_view(),
|
|
|
|
name='sleep-delete'
|
|
|
|
),
|
2017-08-16 15:16:27 +00:00
|
|
|
|
2019-05-17 04:33:26 +00:00
|
|
|
path(
|
|
|
|
'temperature/',
|
|
|
|
views.TemperatureList.as_view(),
|
|
|
|
name='temperature-list'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'temperature/add/',
|
|
|
|
views.TemperatureAdd.as_view(),
|
|
|
|
name='temperature-add'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'temperature/<int:pk>/',
|
|
|
|
views.TemperatureUpdate.as_view(),
|
|
|
|
name='temperature-update'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'temperature/<int:pk>/delete/',
|
|
|
|
views.TemperatureDelete.as_view(),
|
|
|
|
name='temperature-delete'
|
|
|
|
),
|
|
|
|
|
2017-12-13 23:12:32 +00:00
|
|
|
path('timers/', views.TimerList.as_view(), name='timer-list'),
|
2020-02-07 04:14:01 +00:00
|
|
|
path('timers/add/', views.TimerAdd.as_view(), name='timer-add'),
|
2017-12-13 23:12:32 +00:00
|
|
|
path(
|
2020-02-07 04:14:01 +00:00
|
|
|
'timers/add/quick/',
|
2017-12-13 23:12:32 +00:00
|
|
|
views.TimerAddQuick.as_view(),
|
|
|
|
name='timer-add-quick'
|
|
|
|
),
|
2020-02-07 04:14:01 +00:00
|
|
|
path('timers/<int:pk>/', views.TimerDetail.as_view(), name='timer-detail'),
|
2017-12-13 23:12:32 +00:00
|
|
|
path(
|
2020-02-07 04:14:01 +00:00
|
|
|
'timers/<int:pk>/edit/',
|
2017-12-13 23:12:32 +00:00
|
|
|
views.TimerUpdate.as_view(),
|
|
|
|
name='timer-update'
|
|
|
|
),
|
|
|
|
path(
|
2020-02-07 04:14:01 +00:00
|
|
|
'timers/<int:pk>/delete/',
|
2017-12-13 23:12:32 +00:00
|
|
|
views.TimerDelete.as_view(),
|
|
|
|
name='timer-delete'
|
|
|
|
),
|
|
|
|
path(
|
2020-02-07 04:14:01 +00:00
|
|
|
'timers/<int:pk>/stop/',
|
|
|
|
views.TimerStop.as_view(),
|
|
|
|
name='timer-stop'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'timers/<int:pk>/restart/',
|
2017-12-13 23:12:32 +00:00
|
|
|
views.TimerRestart.as_view(),
|
|
|
|
name='timer-restart'
|
|
|
|
),
|
2020-02-07 05:15:36 +00:00
|
|
|
path(
|
|
|
|
'timers/delete-inactive/',
|
|
|
|
views.TimerDeleteInactive.as_view(),
|
|
|
|
name='timer-delete-inactive'
|
|
|
|
),
|
2017-08-17 01:57:01 +00:00
|
|
|
|
2017-12-13 23:12:32 +00:00
|
|
|
path('tummy-time/', views.TummyTimeList.as_view(), name='tummytime-list'),
|
|
|
|
path(
|
|
|
|
'tummy-time/add/',
|
|
|
|
views.TummyTimeAdd.as_view(),
|
|
|
|
name='tummytime-add'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'tummy-time/<int:pk>/',
|
|
|
|
views.TummyTimeUpdate.as_view(),
|
|
|
|
name='tummytime-update'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'tummy-time/<int:pk>/delete/',
|
|
|
|
views.TummyTimeDelete.as_view(),
|
|
|
|
name='tummytime-delete'
|
|
|
|
),
|
2017-11-10 02:15:09 +00:00
|
|
|
|
2017-12-13 23:12:32 +00:00
|
|
|
path('weight/', views.WeightList.as_view(), name='weight-list'),
|
|
|
|
path('weight/add/', views.WeightAdd.as_view(), name='weight-add'),
|
|
|
|
path(
|
|
|
|
'weight/<int:pk>/',
|
|
|
|
views.WeightUpdate.as_view(),
|
|
|
|
name='weight-update'
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
'weight/<int:pk>/delete/',
|
|
|
|
views.WeightDelete.as_view(),
|
|
|
|
name='weight-delete'
|
|
|
|
),
|
2017-08-15 19:14:03 +00:00
|
|
|
]
|