mirror of https://github.com/snachodog/mybuddy.git
Implement breadcrumbs.
This commit is contained in:
parent
90a74c94be
commit
5f3cadd38b
|
@ -143,4 +143,4 @@ $list-group-action-hover-color: $list-group-action-color;
|
|||
// Breadcrumbs
|
||||
|
||||
$breadcrumb-bg: none;
|
||||
$breadcrumb-active-color: $white;
|
||||
$breadcrumb-active-color: $gray-600;
|
||||
|
|
|
@ -18,6 +18,14 @@
|
|||
<body style="padding-top: 3rem;">
|
||||
|
||||
{% block nav %}{% endblock %}
|
||||
|
||||
<nav aria-label="breadcrumb" role="navigation">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="/">Home</a></li>
|
||||
{% block breadcrumbs %}{% endblock %}
|
||||
</ol>
|
||||
</nav>
|
||||
|
||||
{% block page %}{% endblock %}
|
||||
|
||||
{% if debug %}
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
{{ path }}
|
||||
|
||||
<nav aria-label="breadcrumb" role="navigation">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="#">Children</a></li>
|
||||
<li class="breadcrumb-item">Fake</li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Dashboard</li>
|
||||
</ol>
|
||||
</nav>
|
|
@ -1,5 +1,5 @@
|
|||
{% extends 'babyblotter/base.html' %}
|
||||
{% load babyblotter timers %}
|
||||
{% load timers %}
|
||||
|
||||
{% block nav %}
|
||||
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
|
||||
|
@ -153,7 +153,4 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{% breadcrumbs %}
|
||||
|
||||
{% endblock %}
|
|
@ -1,6 +1,5 @@
|
|||
{% extends 'babyblotter/nav-dropdown.html' %}
|
||||
{% load static %}
|
||||
{% load timers %}
|
||||
{% load static timers %}
|
||||
|
||||
{% block page %}
|
||||
<div id="view-{{ request.resolver_match.view_name }}" class="container-fluid">
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django import template
|
||||
|
||||
|
||||
register = template.Library()
|
||||
|
||||
|
||||
@register.inclusion_tag('babyblotter/breadcrumbs.html', takes_context=True)
|
||||
def breadcrumbs(context):
|
||||
request = context['request'] or None
|
||||
# TODO: Process path and send breadcrumbs down.
|
||||
return {'path': request.path}
|
|
@ -3,6 +3,12 @@
|
|||
|
||||
{% block title %}Delete a Child{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'child-list' %}">Children</a></li>
|
||||
<li class="breadcrumb-item font-weight-bold"><a href="{% url 'child' object.slug %}">{{ object }}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Delete</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form role="form" method="post">
|
||||
{% csrf_token %}
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
{% block title %}{{ object }}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'child-list' %}">Children</a></li>
|
||||
<li class="breadcrumb-item font-weight-bold">{{ object }}</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="jumbotron text-center">
|
||||
<div class="display-3">{{ object }}</div>
|
||||
|
|
|
@ -1,13 +1,23 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
|
||||
{% block title %}
|
||||
{% if request.resolver_match.url_name == 'child-update' %}
|
||||
{% if object %}
|
||||
{{ object }}
|
||||
{% else %}
|
||||
Add a Child
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'child-list' %}">Children</a></li>
|
||||
{% if object %}
|
||||
<li class="breadcrumb-item font-weight-bold"><a href="{% url 'child' object.slug %}">{{ object }}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Update</li>
|
||||
{% else %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Add a Child</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if object %}
|
||||
<h1>Update <span class="text-info">{{ object }}</span></h1>
|
||||
|
|
|
@ -3,6 +3,10 @@
|
|||
|
||||
{% block title %}Children{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Children</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Children</h1>
|
||||
<div class="table-responsive">
|
||||
|
@ -18,20 +22,14 @@
|
|||
<tbody>
|
||||
{% for child in object_list %}
|
||||
<tr>
|
||||
<th scope="row">{{ child.first_name }}</th>
|
||||
<th scope="row"><a href="{% url 'child' child.slug %}">{{ child.first_name }}</a></th>
|
||||
<td>{{ child.last_name }}</td>
|
||||
<td>{{ child.birth_date }}</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group btn-group-sm" role="group" aria-label="Actions">
|
||||
|
||||
{% if perms.core.view_child %}
|
||||
<a href="{% url 'dashboard-child' child.slug %}" class="btn btn-success">
|
||||
<i class="icon icon-dashboard" aria-hidden="true"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if perms.core.change_child %}
|
||||
<a href="{% url 'child-update' child.slug %}" class="btn btn-primary">
|
||||
<a href="{% url 'child-update' child.slug %}" class="btn btn-warning">
|
||||
<i class="icon icon-update" aria-hidden="true"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
|
||||
{% block title %}Delete a Diaper Change{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'diaperchange-list' %}">Diaper Changes</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Delete</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form role="form" method="post">
|
||||
{% csrf_token %}
|
||||
|
|
|
@ -8,6 +8,15 @@
|
|||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'diaperchange-list' %}">Diaper Changes</a></li>
|
||||
{% if object %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Update</li>
|
||||
{% else %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Add</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if object %}
|
||||
<h1>Update <span class="text-info">{{ object }}</span></h1>
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
|
||||
{% block title %}Diaper Changes{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Diaper Changes</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Diaper Changes</h1>
|
||||
<div class="table-responsive">
|
||||
|
@ -21,7 +25,7 @@
|
|||
<tbody>
|
||||
{% for change in object_list %}
|
||||
<tr>
|
||||
<th scope="row">{{ change.child }}</th>
|
||||
<th scope="row"><a href="{% url 'child' change.child.slug %}">{{ change.child }}</a></th>
|
||||
<td class="text-center">{{ change.wet|bool_icon }}</td>
|
||||
<td class="text-center">{{ change.solid|bool_icon }}</td>
|
||||
<td>{{ change.color }}</td>
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
|
||||
{% block title %}Delete a Feeding{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'feeding-list' %}">Feedings</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Delete</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form role="form" method="post">
|
||||
{% csrf_token %}
|
||||
|
|
|
@ -8,6 +8,15 @@
|
|||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'feeding-list' %}">Feedings</a></li>
|
||||
{% if object %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Update</li>
|
||||
{% else %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Add</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if object %}
|
||||
<h1>Update <span class="text-info">{{ object }}</span></h1>
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
|
||||
{% block title %}Feedings{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Feedings</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Feedings</h1>
|
||||
<div class="table-responsive">
|
||||
|
@ -22,7 +26,7 @@
|
|||
<tbody>
|
||||
{% for feeding in object_list %}
|
||||
<tr>
|
||||
<th scope="row">{{ feeding.child }}</th>
|
||||
<th scope="row"><a href="{% url 'child' feeding.child.slug %}">{{ feeding.child }}</a></th>
|
||||
<td>{{ feeding.method }}</td>
|
||||
<td>{{ feeding.type }}</td>
|
||||
<td>
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
|
||||
{% block title %}Delete a Note{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'note-list' %}">Notes</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Delete</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form role="form" method="post">
|
||||
{% csrf_token %}
|
||||
|
|
|
@ -8,6 +8,15 @@
|
|||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'note-list' %}">Notes</a></li>
|
||||
{% if object %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Update</li>
|
||||
{% else %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Add</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if object %}
|
||||
<h1>Update <span class="text-info">{{ object }}</span></h1>
|
||||
|
|
|
@ -3,6 +3,10 @@
|
|||
|
||||
{% block title %}Notes{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Notes</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Notes</h1>
|
||||
<div class="table-responsive">
|
||||
|
@ -18,7 +22,7 @@
|
|||
<tbody>
|
||||
{% for note in object_list %}
|
||||
<tr>
|
||||
<th scope="row">{{ note.child }}</th>
|
||||
<th scope="row"><a href="{% url 'child' note.child.slug %}">{{ note.child }}</a></th>
|
||||
<td>{{ note.note }}</td>
|
||||
<td>{{ note.time }}</td>
|
||||
<td class="text-center">
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
|
||||
{% block title %}Delete a Sleep Entry{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'sleep-list' %}">Sleep</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Delete</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form role="form" method="post">
|
||||
{% csrf_token %}
|
||||
|
|
|
@ -8,6 +8,15 @@
|
|||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'sleep-list' %}">Sleep</a></li>
|
||||
{% if object %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Update</li>
|
||||
{% else %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Add</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if object %}
|
||||
<h1>Update <span class="text-info">{{ object }}</span></h1>
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
|
||||
{% block title %}Sleep{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Sleep</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Sleep</h1>
|
||||
<div class="table-responsive">
|
||||
|
@ -20,7 +24,7 @@
|
|||
<tbody>
|
||||
{% for sleep in object_list %}
|
||||
<tr>
|
||||
<th scope="row">{{ sleep.child }}</th>
|
||||
<th scope="row"><a href="{% url 'child' sleep.child.slug %}">{{ sleep.child }}</a></th>
|
||||
<td>{{ sleep.duration|duration_string }}</td>
|
||||
<td>{{ sleep.start|date:'n/j/y G:i' }}</td>
|
||||
<td>{{ sleep.end|date:'n/j/y G:i' }}</td>
|
||||
|
|
|
@ -3,6 +3,12 @@
|
|||
|
||||
{% block title %}Delete {{ object }}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'timer-list' %}">Timers</a></li>
|
||||
<li class="breadcrumb-item font-weight-bold"><a href="{% url 'timer-detail' object.id %}">{{ object }}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Delete</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form role="form" method="post">
|
||||
{% csrf_token %}
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% load timers %}
|
||||
{% load duration %}
|
||||
{% load duration timers %}
|
||||
|
||||
{% block title %}{{ object }}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'timer-list' %}">Timers</a></li>
|
||||
<li class="breadcrumb-item font-weight-bold">{{ object }}</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="jumbotron text-center{% if not object.active %} text-danger{% endif %}">
|
||||
|
||||
|
@ -53,7 +57,7 @@
|
|||
href="{% url 'timer-update' timer.id %}"
|
||||
role="button"><i class="icon icon-update" aria-hidden="true"></i></a>
|
||||
|
||||
<a class="btn btn-dark"
|
||||
<a class="btn btn-secondary"
|
||||
href="{% url 'timer-restart' timer.id %}"
|
||||
role="button"><i class="icon icon-refresh" aria-hidden="true"></i></a>
|
||||
|
||||
|
|
|
@ -3,6 +3,16 @@
|
|||
|
||||
{% block title %}Timer{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'timer-list' %}">Timers</a></li>
|
||||
{% if object %}
|
||||
<li class="breadcrumb-item font-weight-bold"><a href="{% url 'timer-detail' object.id %}">{{ object }}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Update</li>
|
||||
{% else %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Start</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if object %}
|
||||
<h1>Update <span class="text-info">{{ object }}</span></h1>
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% load bootstrap %}
|
||||
{% load duration %}
|
||||
{% load widget_tweaks %}
|
||||
{% load bootstrap duration widget_tweaks %}
|
||||
|
||||
{% block title %}Sleep{% endblock %}
|
||||
{% block title %}Timers{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Timers</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Timers</h1>
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
|
||||
{% block title %}Delete a Tummy Time Entry{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'tummytime-list' %}">Tummy Time</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Delete</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form role="form" method="post">
|
||||
{% csrf_token %}
|
||||
|
|
|
@ -8,6 +8,15 @@
|
|||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'tummytime-list' %}">Tummy Time</a></li>
|
||||
{% if object %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Update</li>
|
||||
{% else %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Add</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if object %}
|
||||
<h1>Update <span class="text-info">{{ object }}</span></h1>
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
|
||||
{% block title %}Tummy Time{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item active" aria-current="page">Tummy Time</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Tummy Time</h1>
|
||||
<div class="table-responsive">
|
||||
|
@ -21,7 +25,7 @@
|
|||
<tbody>
|
||||
{% for tummytime in object_list %}
|
||||
<tr>
|
||||
<th scope="row">{{ tummytime.child }}</th>
|
||||
<th scope="row"><a href="{% url 'child' tummytime.child.slug %}">{{ tummytime.child }}</a></th>
|
||||
<td>{{ tummytime.duration|duration_string }}</td>
|
||||
<td>{{ tummytime.start|date:'n/j/y G:i' }}</td>
|
||||
<td>{{ tummytime.end|date:'n/j/y G:i' }}</td>
|
||||
|
|
|
@ -3,25 +3,14 @@
|
|||
|
||||
{% block title %}Dashboard - {{ object }}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'child-list' %}">Children</a></li>
|
||||
<li class="breadcrumb-item font-weight-bold"><a href="{% url 'child' object.slug %}">{{ object }}</a></li>
|
||||
<li class="breadcrumb-item active" aria-current="page">Dashboard</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="dropdown">
|
||||
<button id="reports-dropdown"
|
||||
class="btn btn-success dropdown-toggle"
|
||||
type="button"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false"><i class="icon icon-graph" aria-hidden="true"></i> Reports</button>
|
||||
<div class="dropdown-menu" aria-labelledby="reports-dropdown">
|
||||
<a class="dropdown-item" href="{% url 'reports:report-diaperchange-types-child' object.slug %}">Diaper Change Types</a>
|
||||
<a class="dropdown-item" href="{% url 'reports:report-diaperchange-lifetimes-child' object.slug %}">Diaper Lifetimes</a>
|
||||
<a class="dropdown-item" href="{% url 'reports:report-sleep-pattern-child' object.slug %}">Sleep Pattern</a>
|
||||
<a class="dropdown-item" href="{% url 'reports:report-sleep-totals-child' object.slug %}">Sleep Totals</a>
|
||||
<a class="dropdown-item" href="{% url 'reports:report-timeline-child' object.slug %}">Timeline</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row align-items-start mt-4">
|
||||
<div class="row align-items-start">
|
||||
<div class="col-lg-4 col-md-6 col-sm-12">
|
||||
{% card_feeding_last object %}
|
||||
{% card_feeding_last_method object %}
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
{% block title %}Diaper Lifetimes - {{ object }}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
{{ block.super }}
|
||||
<li class="breadcrumb-item active" aria-current="page">Diaper Lifetimes</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block javascript %}
|
||||
{{ block.super }}
|
||||
{{ javascript|safe }}
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
{% block title %}Diaper Change Types - {{ object }}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
{{ block.super }}
|
||||
<li class="breadcrumb-item active" aria-current="page">Diaper Types</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block javascript %}
|
||||
{{ block.super }}
|
||||
{{ javascript|safe }}
|
||||
|
|
|
@ -3,6 +3,12 @@
|
|||
|
||||
{% block title %}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'child-list' %}">Children</a></li>
|
||||
<li class="breadcrumb-item font-weight-bold"><a href="{% url 'child' object.slug %}">{{ object }}</a></li>
|
||||
<li class="breadcrumb-item">Reports</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container-fluid">
|
||||
{{ html|safe }}
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
{% block title %}Sleep Patterns - {{ object }}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
{{ block.super }}
|
||||
<li class="breadcrumb-item active" aria-current="page">Sleep Pattern</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block javascript %}
|
||||
{{ block.super }}
|
||||
{{ javascript|safe }}
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
{% block title %}Sleep Totals - {{ object }}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
{{ block.super }}
|
||||
<li class="breadcrumb-item active" aria-current="page">Sleep Totals</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block javascript %}
|
||||
{{ block.super }}
|
||||
{{ javascript|safe }}
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
{% extends 'babyblotter/page.html' %}
|
||||
{% extends 'reports/report_base.html' %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}Timeline - {{ object }}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
{{ block.super }}
|
||||
<li class="breadcrumb-item active" aria-current="page">Timeline</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="text-center">Timeline</h1>
|
||||
<h2 class="text-center text-muted">{{ object }}</h2>
|
||||
|
|
Loading…
Reference in New Issue