From e3d7d64c3583730eefaee120acc1c48eb552ccf3 Mon Sep 17 00:00:00 2001 From: Christopher Charbonneau Wells Date: Thu, 24 Aug 2017 15:40:11 -0400 Subject: [PATCH] Add Reports menu to child dashboard. --- babyblotter/urls.py | 2 +- .../templates/cards/diaperchange_types.html | 2 +- dashboard/templates/dashboard/child.html | 23 +++++++++++++++++-- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/babyblotter/urls.py b/babyblotter/urls.py index 2fba4f98..66d01cca 100644 --- a/babyblotter/urls.py +++ b/babyblotter/urls.py @@ -16,5 +16,5 @@ urlpatterns = [ url(r'', include('api.urls', namespace='api')), url(r'', include('core.urls')), url(r'', include('dashboard.urls')), - url(r'', include('reports.urls')), + url(r'', include('reports.urls', namespace='reports')), ] diff --git a/dashboard/templates/cards/diaperchange_types.html b/dashboard/templates/cards/diaperchange_types.html index 7e058184..cfbb3551 100644 --- a/dashboard/templates/cards/diaperchange_types.html +++ b/dashboard/templates/cards/diaperchange_types.html @@ -1,6 +1,6 @@ {% extends 'cards/diaperchange.html' %} -{% block header %}Diaper Changes{% endblock %} +{% block header %}Diaper Change Types{% endblock %} {% block title %} Past Week diff --git a/dashboard/templates/dashboard/child.html b/dashboard/templates/dashboard/child.html index 9e56e92a..ce92e87c 100644 --- a/dashboard/templates/dashboard/child.html +++ b/dashboard/templates/dashboard/child.html @@ -4,8 +4,27 @@ {% block title %}Dashboard - {{ object }}{% endblock %} {% block content %} -

{{ object }}

-
+ +
+

{{ object }}

+ + +
+ +