2017-10-22 18:00:42 +00:00
|
|
|
{% extends 'babybuddy/base.html' %}
|
2019-04-14 04:50:35 +00:00
|
|
|
{% load babybuddy_tags i18n static timers %}
|
2017-08-18 02:15:15 +00:00
|
|
|
|
|
|
|
{% block nav %}
|
|
|
|
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
|
2021-08-30 11:51:19 +00:00
|
|
|
<a class="navbar-brand mr-2" href="/">
|
2018-05-20 22:59:45 +00:00
|
|
|
<img src="{% static "babybuddy/logo/icon-brand.png" %}" width="30" height="30" class="d-inline-block align-top" alt="">
|
2021-08-30 02:35:44 +00:00
|
|
|
<span class="d-none d-lg-inline-block">
|
|
|
|
<span class="text-primary">Baby</span> Buddy
|
|
|
|
</span>
|
2018-05-20 22:59:45 +00:00
|
|
|
</a>
|
2021-08-30 11:51:19 +00:00
|
|
|
<div class="d-lg-none d-md-none d-flex mr-auto p-0 ml-2">
|
|
|
|
<div>
|
|
|
|
<a class="text-muted"
|
|
|
|
href="{% url 'dashboard:dashboard' %}"
|
|
|
|
aria-expanded="false"><i class="icon-2x icon-dashboard" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
2021-08-06 14:56:42 +00:00
|
|
|
<div>
|
2021-08-30 11:51:19 +00:00
|
|
|
<a class="text-muted"
|
2021-08-22 03:42:29 +00:00
|
|
|
href="{% url 'core:timeline' %}"
|
2021-08-30 01:58:25 +00:00
|
|
|
aria-expanded="false"><i class="icon-2x icon-timeline" aria-hidden="true"></i>
|
2021-08-06 14:56:42 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
2021-08-30 11:51:19 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="d-lg-none d-md-none d-flex ml-auto p-0 mr-2">
|
2021-07-31 20:56:48 +00:00
|
|
|
<form action="{% url 'core:timer-add-quick' %}" role="form" method="post" class="mr-2">
|
|
|
|
{% csrf_token %}
|
|
|
|
<label class="sr-only">{% trans "Quick Start Timer" %}</label>
|
|
|
|
<button class="btn m-0 p-0 text-success">
|
2021-08-30 01:58:25 +00:00
|
|
|
<i class="icon-2x icon-timer" aria-hidden="true"></i>
|
2021-07-31 20:56:48 +00:00
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
<div class="dropdown show">
|
2017-10-11 17:54:04 +00:00
|
|
|
<a class="text-success"
|
|
|
|
href="#"
|
|
|
|
role="button"
|
|
|
|
id="nav-quick-add-link"
|
|
|
|
data-toggle="dropdown"
|
|
|
|
aria-haspopup="true"
|
2021-08-30 01:58:25 +00:00
|
|
|
aria-expanded="false"><i class="icon-2x icon-add" aria-hidden="true"></i>
|
2017-10-11 17:54:04 +00:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="nav-quick-add-link">
|
|
|
|
{% if perms.core.add_diaperchange %}
|
2017-12-03 21:52:27 +00:00
|
|
|
<a class="dropdown-item p-2" href="{% url 'core:diaperchange-add' %}">
|
2021-08-30 01:58:25 +00:00
|
|
|
<i class="icon-diaperchange" aria-hidden="true"></i>
|
2019-04-14 04:50:35 +00:00
|
|
|
{% trans "Diaper Change" %}
|
2017-10-11 17:54:04 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if perms.core.add_feeding %}
|
2017-12-03 21:52:27 +00:00
|
|
|
<a class="dropdown-item p-2" href="{% url 'core:feeding-add' %}">
|
2021-08-30 01:58:25 +00:00
|
|
|
<i class="icon-feeding" aria-hidden="true"></i>
|
2019-04-14 04:50:35 +00:00
|
|
|
{% trans "Feeding" %}
|
2017-10-11 17:54:04 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
2017-11-04 01:33:34 +00:00
|
|
|
{% if perms.core.add_note %}
|
2017-12-03 21:52:27 +00:00
|
|
|
<a class="dropdown-item p-2" href="{% url 'core:note-add' %}">
|
2021-08-30 01:58:25 +00:00
|
|
|
<i class="icon-note" aria-hidden="true"></i>
|
2019-04-14 04:50:35 +00:00
|
|
|
{% trans "Note" %}
|
2017-11-04 01:33:34 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
2017-10-11 17:54:04 +00:00
|
|
|
{% if perms.core.add_sleep %}
|
2017-12-03 21:52:27 +00:00
|
|
|
<a class="dropdown-item p-2" href="{% url 'core:sleep-add' %}">
|
2021-08-30 01:58:25 +00:00
|
|
|
<i class="icon-sleep" aria-hidden="true"></i>
|
2019-04-14 04:50:35 +00:00
|
|
|
{% trans "Sleep" %}
|
2017-10-11 17:54:04 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
2019-05-17 04:33:26 +00:00
|
|
|
{% if perms.core.add_temperature %}
|
|
|
|
<a class="dropdown-item p-2" href="{% url 'core:temperature-add' %}">
|
2021-08-30 01:58:25 +00:00
|
|
|
<i class="icon-temperature" aria-hidden="true"></i>
|
2019-05-17 04:33:26 +00:00
|
|
|
{% trans "Temperature" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2017-10-11 17:54:04 +00:00
|
|
|
{% if perms.core.add_tummytime %}
|
2017-12-03 21:52:27 +00:00
|
|
|
<a class="dropdown-item p-2" href="{% url 'core:tummytime-add' %}">
|
2021-08-30 01:58:25 +00:00
|
|
|
<i class="icon-tummytime" aria-hidden="true"></i>
|
2019-04-14 04:50:35 +00:00
|
|
|
{% trans "Tummy Time" %}
|
2017-10-11 17:54:04 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
2017-11-10 02:15:09 +00:00
|
|
|
{% if perms.core.add_weight %}
|
2017-12-03 21:52:27 +00:00
|
|
|
<a class="dropdown-item p-2" href="{% url 'core:weight-add' %}">
|
2021-08-30 01:58:25 +00:00
|
|
|
<i class="icon-weight" aria-hidden="true"></i>
|
2019-04-14 04:50:35 +00:00
|
|
|
{% trans "Weight" %}
|
2017-11-10 02:15:09 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
2017-10-11 17:54:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-10 14:08:03 +00:00
|
|
|
|
2017-08-18 02:15:15 +00:00
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse"
|
2021-08-30 02:35:44 +00:00
|
|
|
data-target="#navbar-app" aria-controls="navbar-app"
|
|
|
|
aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
2017-08-20 16:29:19 +00:00
|
|
|
<div class="collapse navbar-collapse" id="navbar-app">
|
2021-08-30 02:35:44 +00:00
|
|
|
<ul class="navbar-nav mr-auto">
|
|
|
|
<li class="nav-item{% if request.path == '/' %} active{% endif %}">
|
|
|
|
<a class="nav-link" href="{% url 'dashboard:dashboard' %}">
|
|
|
|
<i class="icon-dashboard" aria-hidden="true"></i>
|
|
|
|
{% trans "Dashboard" %}
|
|
|
|
</a>
|
|
|
|
</li>
|
2017-11-10 00:39:50 +00:00
|
|
|
|
2021-08-30 02:35:44 +00:00
|
|
|
<li class="nav-item{% if request.path == '/timeline' %} active{% endif %}">
|
|
|
|
<a class="nav-link" href="{% url 'core:timeline' %}">
|
|
|
|
<i class="icon-timeline" aria-hidden="true"></i>
|
|
|
|
{% trans "Timeline" %}
|
|
|
|
</a>
|
|
|
|
</li>
|
2017-08-18 02:15:15 +00:00
|
|
|
|
2021-08-30 02:35:44 +00:00
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a id="nav-children-menu-link"
|
|
|
|
class="nav-link dropdown-toggle"
|
|
|
|
href="#"
|
|
|
|
data-toggle="dropdown"
|
|
|
|
aria-haspopup="true"
|
|
|
|
aria-expanded="false"><i class="icon-child" aria-hidden="true"></i>
|
|
|
|
{% trans "Children" %}
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu" aria-labelledby="nav-children-menu-link">
|
2017-08-18 02:15:15 +00:00
|
|
|
|
2021-08-30 02:35:44 +00:00
|
|
|
{% if perms.core.view_child %}
|
|
|
|
<a class="dropdown-item{% if request.path == '/children/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:child-list' %}">
|
|
|
|
<i class="icon-child" aria-hidden="true"></i>
|
|
|
|
{% trans "Children" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if perms.core.add_child %}
|
|
|
|
<a class="dropdown-item pl-5{% if request.path == '/children/add/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:child-add' %}"><i class="icon-add" aria-hidden="true"></i>
|
|
|
|
{% trans "Child" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2017-08-18 02:15:15 +00:00
|
|
|
|
2021-08-30 02:35:44 +00:00
|
|
|
{% if perms.core.view_note %}
|
|
|
|
<a class="dropdown-item{% if request.path == '/notes/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:note-list' %}">
|
|
|
|
<i class="icon-note" aria-hidden="true"></i>
|
|
|
|
{% trans "Notes" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if perms.core.add_note %}
|
|
|
|
<a class="dropdown-item pl-5{% if request.path == '/notes/add/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:note-add' %}"><i class="icon-add" aria-hidden="true"></i>
|
|
|
|
{% trans "Note" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2017-08-18 02:15:15 +00:00
|
|
|
|
2021-08-30 02:35:44 +00:00
|
|
|
{% if perms.core.view_temperature %}
|
|
|
|
<a class="dropdown-item{% if request.path == '/temperature/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:temperature-list' %}">
|
|
|
|
<i class="icon-temperature" aria-hidden="true"></i>
|
|
|
|
{% trans "Temperature" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if perms.core.add_temperature %}
|
|
|
|
<a class="dropdown-item pl-5{% if request.path == '/temperature/add/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:temperature-add' %}"><i class="icon-add" aria-hidden="true"></i>
|
|
|
|
{% trans "Temperature reading" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2017-08-18 02:15:15 +00:00
|
|
|
|
2021-08-30 02:35:44 +00:00
|
|
|
{% if perms.core.view_weight %}
|
|
|
|
<a class="dropdown-item{% if request.path == '/weight/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:weight-list' %}">
|
|
|
|
<i class="icon-weight" aria-hidden="true"></i>
|
|
|
|
{% trans "Weight" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if perms.core.add_weight %}
|
|
|
|
<a class="dropdown-item pl-5{% if request.path == '/weight/add/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:weight-add' %}"><i class="icon-add" aria-hidden="true"></i>
|
|
|
|
{% trans "Weight entry" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2017-08-18 03:10:07 +00:00
|
|
|
|
2021-08-30 02:35:44 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
2017-08-20 16:29:19 +00:00
|
|
|
|
|
|
|
<li class="nav-item dropdown">
|
2021-08-30 02:35:44 +00:00
|
|
|
<a id="nav-activity-menu-link"
|
2017-08-21 13:55:06 +00:00
|
|
|
class="nav-link dropdown-toggle"
|
|
|
|
href="#"
|
|
|
|
data-toggle="dropdown"
|
|
|
|
aria-haspopup="true"
|
2021-08-30 02:35:44 +00:00
|
|
|
aria-expanded="false"><i class="icon-activities" aria-hidden="true"></i>
|
|
|
|
{% trans "Activities" %}
|
2017-08-20 16:29:19 +00:00
|
|
|
</a>
|
2021-08-30 02:35:44 +00:00
|
|
|
<div class="dropdown-menu" aria-labelledby="nav-activity-menu-link">
|
|
|
|
|
|
|
|
{% if perms.core.view_diaperchange %}
|
|
|
|
<a class="dropdown-item{% if request.path == '/changes/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:diaperchange-list' %}"><i class="icon-diaperchange" aria-hidden="true"></i>
|
|
|
|
{% trans "Changes" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if perms.core.add_diaperchange %}
|
|
|
|
<a class="dropdown-item pl-5{% if request.path == '/changes/add/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:diaperchange-add' %}"><i class="icon-add" aria-hidden="true"></i>
|
|
|
|
{% trans "Change" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if perms.core.view_feeding %}
|
|
|
|
<a class="dropdown-item{% if request.path == '/feedings/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:feeding-list' %}"><i class="icon-feeding" aria-hidden="true"></i>
|
|
|
|
{% trans "Feedings" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if perms.core.add_diaperchange %}
|
|
|
|
<a class="dropdown-item pl-5{% if request.path == '/feedings/add/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:feeding-add' %}"><i class="icon-add" aria-hidden="true"></i>
|
|
|
|
{% trans "Feeding" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if perms.core.view_sleep %}
|
|
|
|
<a class="dropdown-item{% if request.path == '/sleep/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:sleep-list' %}"><i class="icon-sleep" aria-hidden="true"></i>
|
|
|
|
{% trans "Sleep" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if perms.core.add_sleep %}
|
|
|
|
<a class="dropdown-item pl-5{% if request.path == '/sleep/add/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:sleep-add' %}"><i class="icon-add" aria-hidden="true"></i>
|
|
|
|
{% trans "Sleep entry" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if perms.core.view_tummytime %}
|
|
|
|
<a class="dropdown-item{% if request.path == '/tummy-time/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:tummytime-list' %}"><i class="icon-tummytime" aria-hidden="true"></i>
|
|
|
|
{% trans "Tummy Time" %}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if perms.core.add_tummytime %}
|
|
|
|
<a class="dropdown-item pl-5{% if request.path == '/tummy-time/add/' %} active{% endif %}"
|
|
|
|
href="{% url 'core:tummytime-add' %}"><i class="icon-add" aria-hidden="true"></i>
|
|
|
|
{% trans "Tummy Time entry" %}
|
|
|
|
</a>
|
2017-08-20 16:29:19 +00:00
|
|
|
{% endif %}
|
2021-08-30 02:35:44 +00:00
|
|
|
|
2017-08-20 16:29:19 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
2021-08-30 02:35:44 +00:00
|
|
|
|
|
|
|
{% if perms.core.view_timer %}
|
|
|
|
{% timer_nav %}
|
|
|
|
{% endif %}
|
2017-08-20 16:29:19 +00:00
|
|
|
</ul>
|
2021-08-30 02:35:44 +00:00
|
|
|
|
|
|
|
{% if request.user %}
|
|
|
|
<ul class="navbar-nav ml-auto">
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a id="nav-user-menu-link"
|
|
|
|
class="nav-link dropdown-toggle"
|
|
|
|
href="#"
|
|
|
|
data-toggle="dropdown"
|
|
|
|
aria-haspopup="true"
|
|
|
|
aria-expanded="false">
|
|
|
|
<i class="icon-user" aria-hidden="true"></i>
|
|
|
|
{% firstof user.get_full_name user.get_username %}
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="nav-user-menu-link">
|
|
|
|
<h6 class="dropdown-header">{% trans "User" %}</h6>
|
|
|
|
<a href="{% url 'babybuddy:user-settings' %}" class="dropdown-item">{% trans "Settings" %}</a>
|
|
|
|
<a href="{% url 'babybuddy:user-password' %}" class="dropdown-item">{% trans "Password" %}</a>
|
|
|
|
<a href="{% url 'babybuddy:logout' %}" class="dropdown-item">{% trans "Logout" %}</a>
|
|
|
|
<h6 class="dropdown-header">{% trans "Site" %}</h6>
|
2021-09-25 21:19:53 +00:00
|
|
|
<a href="{% url 'api:api-root' %}" class="dropdown-item">{% trans "API Browser" %}</a>
|
2021-08-30 02:35:44 +00:00
|
|
|
{% if request.user.is_staff %}
|
|
|
|
<a href="{% url 'babybuddy:user-list' %}" class="dropdown-item">{% trans "Users" %}</a>
|
|
|
|
<a href="{% url 'admin:index' %}" class="dropdown-item">{% trans "Database Admin" %}</a>
|
|
|
|
{% endif %}
|
|
|
|
<h6 class="dropdown-header">{% trans "Support" %}</h6>
|
2021-09-25 21:19:53 +00:00
|
|
|
<a href="https://github.com/babybuddy/babybuddy" class="dropdown-item">
|
2021-08-30 02:35:44 +00:00
|
|
|
<i class="icon-source" aria-hidden="true"></i> {% trans "Source Code" %}</a>
|
2021-09-25 21:19:53 +00:00
|
|
|
<a href="https://gitter.im/babybuddy/Lobby" class="dropdown-item">
|
2021-08-30 02:35:44 +00:00
|
|
|
<i class="icon-chat" aria-hidden="true"></i> {% trans "Chat / Support" %}</a>
|
|
|
|
<h6 class="dropdown-header">v{% version_string %}</h6>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2017-08-18 02:15:15 +00:00
|
|
|
</nav>
|
|
|
|
{% endblock %}
|