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-16 16:46:26 +00:00
|
|
|
url(r'^$', views.Dashboard.as_view(), name='index'),
|
2017-08-16 13:12:49 +00:00
|
|
|
|
|
|
|
url(r'children/$', views.ChildList.as_view(), name='child-list'),
|
|
|
|
url(r'children/add/$', views.ChildAdd.as_view(), name='child-add'),
|
|
|
|
url(r'children/(?P<pk>[0-9]+)/$', views.ChildUpdate.as_view(),
|
2017-08-16 12:49:58 +00:00
|
|
|
name='child-update'),
|
2017-08-16 13:12:49 +00:00
|
|
|
url(r'children/(?P<pk>[0-9]+)/delete/$', views.ChildDelete.as_view(),
|
2017-08-16 12:49:58 +00:00
|
|
|
name='child-delete'),
|
2017-08-16 15:16:27 +00:00
|
|
|
|
|
|
|
url(r'changes/$', views.DiaperChangeList.as_view(),
|
|
|
|
name='diaperchange-list'),
|
|
|
|
url(r'changes/add/$', views.DiaperChangeAdd.as_view(),
|
|
|
|
name='diaperchange-add'),
|
|
|
|
url(r'changes/(?P<pk>[0-9]+)/$', views.DiaperChangeUpdate.as_view(),
|
|
|
|
name='diaperchange-update'),
|
|
|
|
url(r'changes/(?P<pk>[0-9]+)/delete/$', views.DiaperChangeDelete.as_view(),
|
|
|
|
name='diaperchange-delete'),
|
|
|
|
|
|
|
|
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(),
|
|
|
|
name='feeding-update'),
|
|
|
|
url(r'feedings/(?P<pk>[0-9]+)/delete/$', views.FeedingDelete.as_view(),
|
|
|
|
name='feeding-delete'),
|
|
|
|
|
|
|
|
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(),
|
|
|
|
name='note-update'),
|
|
|
|
url(r'notes/(?P<pk>[0-9]+)/delete/$', views.NoteDelete.as_view(),
|
|
|
|
name='note-delete'),
|
|
|
|
|
|
|
|
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(),
|
|
|
|
name='sleep-update'),
|
|
|
|
url(r'sleep/(?P<pk>[0-9]+)/delete/$', views.SleepDelete.as_view(),
|
|
|
|
name='sleep-delete'),
|
|
|
|
|
2017-08-17 01:57:01 +00:00
|
|
|
url(r'timer/add/$', views.TimerAdd.as_view(), name='timer-add'),
|
|
|
|
|
2017-08-16 15:16:27 +00:00
|
|
|
url(r'tummy-time/$', views.TummyTimeList.as_view(), name='tummytime-list'),
|
|
|
|
url(r'tummy-time/add/$', views.TummyTimeAdd.as_view(),
|
|
|
|
name='tummytime-add'),
|
|
|
|
url(r'tummy-time/(?P<pk>[0-9]+)/$', views.TummyTimeUpdate.as_view(),
|
|
|
|
name='tummytime-update'),
|
|
|
|
url(r'tummy-time/(?P<pk>[0-9]+)/delete/$', views.TummyTimeDelete.as_view(),
|
|
|
|
name='tummytime-delete'),
|
2017-08-15 19:14:03 +00:00
|
|
|
]
|