2017-08-15 19:14:03 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.conf.urls import url
|
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
urlpatterns = [
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^children/$', views.ChildList.as_view(), name='child-list'),
|
|
|
|
url(r'^children/add/$', views.ChildAdd.as_view(), name='child-add'),
|
2017-10-20 19:23:26 +00:00
|
|
|
url(r'^children/(?P<slug>[^/.]+)/$', views.ChildDetail.as_view(),
|
|
|
|
name='child'),
|
2017-10-22 02:14:44 +00:00
|
|
|
url(r'^children/(?P<slug>[^/.]+)/edit/$', views.ChildUpdate.as_view(),
|
2017-08-16 12:49:58 +00:00
|
|
|
name='child-update'),
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^children/(?P<slug>[^/.]+)/delete/$', views.ChildDelete.as_view(),
|
2017-08-18 12:17:45 +00:00
|
|
|
name='child-delete'),
|
2017-08-16 15:16:27 +00:00
|
|
|
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^changes/$', views.DiaperChangeList.as_view(),
|
2017-08-16 15:16:27 +00:00
|
|
|
name='diaperchange-list'),
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^changes/add/$', views.DiaperChangeAdd.as_view(),
|
2017-08-16 15:16:27 +00:00
|
|
|
name='diaperchange-add'),
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^changes/(?P<pk>[0-9]+)/$', views.DiaperChangeUpdate.as_view(),
|
2017-08-16 15:16:27 +00:00
|
|
|
name='diaperchange-update'),
|
2017-08-22 17:36:49 +00:00
|
|
|
url(r'^changes/(?P<pk>[0-9]+)/delete/$',
|
|
|
|
views.DiaperChangeDelete.as_view(), name='diaperchange-delete'),
|
2017-08-16 15:16:27 +00:00
|
|
|
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^feedings/$', views.FeedingList.as_view(), name='feeding-list'),
|
|
|
|
url(r'^feedings/add/$', views.FeedingAdd.as_view(), name='feeding-add'),
|
|
|
|
url(r'^feedings/(?P<pk>[0-9]+)/$', views.FeedingUpdate.as_view(),
|
2017-08-16 15:16:27 +00:00
|
|
|
name='feeding-update'),
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^feedings/(?P<pk>[0-9]+)/delete/$', views.FeedingDelete.as_view(),
|
2017-08-16 15:16:27 +00:00
|
|
|
name='feeding-delete'),
|
|
|
|
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^notes/$', views.NoteList.as_view(), name='note-list'),
|
|
|
|
url(r'^notes/add/$', views.NoteAdd.as_view(), name='note-add'),
|
|
|
|
url(r'^notes/(?P<pk>[0-9]+)/$', views.NoteUpdate.as_view(),
|
2017-08-16 15:16:27 +00:00
|
|
|
name='note-update'),
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^notes/(?P<pk>[0-9]+)/delete/$', views.NoteDelete.as_view(),
|
2017-08-16 15:16:27 +00:00
|
|
|
name='note-delete'),
|
|
|
|
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^sleep/$', views.SleepList.as_view(), name='sleep-list'),
|
|
|
|
url(r'^sleep/add/$', views.SleepAdd.as_view(), name='sleep-add'),
|
|
|
|
url(r'^sleep/(?P<pk>[0-9]+)/$', views.SleepUpdate.as_view(),
|
2017-08-16 15:16:27 +00:00
|
|
|
name='sleep-update'),
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^sleep/(?P<pk>[0-9]+)/delete/$', views.SleepDelete.as_view(),
|
2017-08-16 15:16:27 +00:00
|
|
|
name='sleep-delete'),
|
|
|
|
|
2017-09-09 15:54:34 +00:00
|
|
|
url(r'^timers/$', views.TimerList.as_view(), name='timer-list'),
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^timer/add/$', views.TimerAdd.as_view(), name='timer-add'),
|
|
|
|
url(r'^timer/add/quick/$', views.TimerAddQuick.as_view(),
|
2017-08-18 03:10:07 +00:00
|
|
|
name='timer-add-quick'),
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^timer/(?P<pk>[0-9]+)/$', views.TimerDetail.as_view(),
|
2017-08-18 03:45:56 +00:00
|
|
|
name='timer-detail'),
|
2017-10-22 02:14:44 +00:00
|
|
|
url(r'^timer/(?P<pk>[0-9]+)/edit/$', views.TimerUpdate.as_view(),
|
|
|
|
name='timer-update'),
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^timer/(?P<pk>[0-9]+)/delete/$', views.TimerDelete.as_view(),
|
2017-08-18 04:55:57 +00:00
|
|
|
name='timer-delete'),
|
2017-09-08 18:36:22 +00:00
|
|
|
url(r'^timer/(?P<pk>[0-9]+)/stop/$', views.TimerStop.as_view(),
|
|
|
|
name='timer-stop'),
|
2017-09-09 16:57:31 +00:00
|
|
|
url(r'^timer/(?P<pk>[0-9]+)/restart/$', views.TimerRestart.as_view(),
|
|
|
|
name='timer-restart'),
|
2017-08-17 01:57:01 +00:00
|
|
|
|
2017-08-22 17:36:49 +00:00
|
|
|
url(r'^tummy-time/$', views.TummyTimeList.as_view(),
|
|
|
|
name='tummytime-list'),
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^tummy-time/add/$', views.TummyTimeAdd.as_view(),
|
2017-08-16 15:16:27 +00:00
|
|
|
name='tummytime-add'),
|
2017-08-21 23:19:48 +00:00
|
|
|
url(r'^tummy-time/(?P<pk>[0-9]+)/$', views.TummyTimeUpdate.as_view(),
|
2017-08-16 15:16:27 +00:00
|
|
|
name='tummytime-update'),
|
2017-08-22 17:36:49 +00:00
|
|
|
url(r'^tummy-time/(?P<pk>[0-9]+)/delete/$',
|
|
|
|
views.TummyTimeDelete.as_view(), name='tummytime-delete'),
|
2017-08-15 19:14:03 +00:00
|
|
|
]
|