-
-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb487b4
commit 4508203
Showing
5 changed files
with
111 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{% extends 'babybuddy/page.html' %} | ||
{% load i18n %} | ||
{% block title %} | ||
{% if request.resolver_match.url_name == 'tag-update' %} | ||
{% trans "Update a Tag" %} | ||
{% else %} | ||
{% trans "Add a Tag" %} | ||
{% endif %} | ||
{% endblock %} | ||
{% block breadcrumbs %} | ||
<li class="breadcrumb-item"> | ||
<a href="{% url 'core:tag-list' %}">{% trans "Tags" %}</a> | ||
</li> | ||
<li class="breadcrumb-item active">{{ object }}</li> | ||
{% endblock %} | ||
{% block content %} | ||
<h1>{{ object }}</h1> | ||
<div class="container"> | ||
<div class="row gy-4"> | ||
<div class="col-12 col-md-6"> | ||
<h3>{% trans "Tagged Measurements" %}</h3> | ||
<div class="list-group"> | ||
<a href="{% url 'core:bmi-list' %}?tag={{ object.id }}&filtered=1" | ||
class="list-group-item d-flex justify-content-between align-items-center list-group-item-action"> | ||
{% trans "BMI Measurements" %} | ||
<span class="badge bg-dark rounded-pill">{{ tag.bmi__count|default:0 }}</span> | ||
</a> | ||
<a href="{% url 'core:head-circumference-list' %}?tag={{ object.id }}&filtered=1" | ||
class="list-group-item d-flex justify-content-between align-items-center list-group-item-action"> | ||
{% trans "Head Circumference Measurements" %} | ||
<span class="badge bg-dark rounded-pill">{{ tag.headcircumference__count|default:0 }}</span> | ||
</a> | ||
<a href="{% url 'core:height-list' %}?tag={{ object.id }}&filtered=1" | ||
class="list-group-item d-flex justify-content-between align-items-center list-group-item-action"> | ||
{% trans "Height Measurements" %} | ||
<span class="badge bg-dark rounded-pill">{{ tag.height__count|default:0 }}</span> | ||
</a> | ||
<a href="{% url 'core:temperature-list' %}?tag={{ object.id }}&filtered=1" | ||
class="list-group-item d-flex justify-content-between align-items-center list-group-item-action"> | ||
{% trans "Temperature Measurements" %} | ||
<span class="badge bg-dark rounded-pill">{{ tag.temperature__count|default:0 }}</span> | ||
</a> | ||
<a href="{% url 'core:weight-list' %}?tag={{ object.id }}&filtered=1" | ||
class="list-group-item d-flex justify-content-between align-items-center list-group-item-action"> | ||
{% trans "Weight Measurements" %} | ||
<span class="badge bg-dark rounded-pill">{{ tag.weight__count|default:0 }}</span> | ||
</a> | ||
</div> | ||
</div> | ||
<div class="col-12 col-md-6"> | ||
<h3>{% trans "Tagged Activities" %}</h3> | ||
<div class="list-group"> | ||
<a href="{% url 'core:diaperchange-list' %}?tag={{ object.id }}&filtered=1" | ||
class="list-group-item d-flex justify-content-between align-items-center list-group-item-action"> | ||
{% trans "Diaper Changes" %} | ||
<span class="badge bg-dark rounded-pill">{{ tag.diaperchange__count|default:0 }}</span> | ||
</a> | ||
<a href="{% url 'core:feeding-list' %}?tag={{ object.id }}&filtered=1" | ||
class="list-group-item d-flex justify-content-between align-items-center list-group-item-action"> | ||
{% trans "Feedings" %} | ||
<span class="badge bg-dark rounded-pill">{{ tag.feeding__count|default:0 }}</span> | ||
</a> | ||
<a href="{% url 'core:pumping-list' %}?tag={{ object.id }}&filtered=1" | ||
class="list-group-item d-flex justify-content-between align-items-center list-group-item-action"> | ||
{% trans "Pumpings" %} | ||
<span class="badge bg-dark rounded-pill">{{ tag.pumping__count|default:0 }}</span> | ||
</a> | ||
<a href="{% url 'core:sleep-list' %}?tag={{ object.id }}&filtered=1" | ||
class="list-group-item d-flex justify-content-between align-items-center list-group-item-action"> | ||
{% trans "Sleeps" %} | ||
<span class="badge bg-dark rounded-pill">{{ tag.sleep__count|default:0 }}</span> | ||
</a> | ||
<a href="{% url 'core:tummytime-list' %}?tag={{ object.id }}&filtered=1" | ||
class="list-group-item d-flex justify-content-between align-items-center list-group-item-action"> | ||
{% trans "Tummy Times" %} | ||
<span class="badge bg-dark rounded-pill">{{ tag.tummytime__count|default:0 }}</span> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters