2017-10-29 03:01:39 +00:00
|
|
|
{% extends 'cards/base.html' %}
|
2019-04-14 15:40:08 +00:00
|
|
|
{% load i18n %}
|
2017-08-25 21:39:10 +00:00
|
|
|
|
2021-08-04 20:36:00 +00:00
|
|
|
{% block header %}
|
|
|
|
<a href="{% url "core:feeding-list" %}">
|
|
|
|
{% trans "Last Feeding Method" %}
|
|
|
|
</a>
|
|
|
|
{% endblock %}
|
2017-08-25 21:39:10 +00:00
|
|
|
|
|
|
|
{% block title %}
|
2020-02-15 21:34:57 +00:00
|
|
|
{% if feedings|length > 0 %}
|
2023-03-25 19:57:12 +00:00
|
|
|
<div id="feeding-methods-carousel" class="carousel slide" data-bs-interval="false">
|
2020-02-15 21:34:57 +00:00
|
|
|
<div class="carousel-inner">
|
|
|
|
{% for feeding in feedings %}
|
|
|
|
<div class="carousel-item{% if forloop.counter == feedings|length %} active{% endif %}">
|
2020-02-15 22:14:48 +00:00
|
|
|
<div class="last-feeding-method text-center">{{ feeding.get_method_display }}</div>
|
2023-07-09 16:26:13 +00:00
|
|
|
<div class="text-center small text-body-secondary">
|
2020-02-15 21:34:57 +00:00
|
|
|
{% if forloop.last %}
|
|
|
|
{% trans "most recent" %}
|
|
|
|
{% else %}
|
2022-06-05 13:34:52 +00:00
|
|
|
{% blocktrans trimmed with n=forloop.revcounter0 count counter=n %}
|
|
|
|
{{ n }} feeding ago
|
|
|
|
{% plural %}
|
|
|
|
{{ n }} feedings ago
|
2020-02-15 21:34:57 +00:00
|
|
|
{% endblocktrans %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2020-02-15 21:49:49 +00:00
|
|
|
{% if feedings|length > 1 %}
|
2023-03-25 19:57:12 +00:00
|
|
|
<a class="carousel-control-prev"
|
|
|
|
href="#feeding-methods-carousel"
|
|
|
|
role="button"
|
|
|
|
data-bs-slide="prev">
|
2020-02-15 21:49:49 +00:00
|
|
|
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
2023-03-25 19:57:12 +00:00
|
|
|
<span class="visually-hidden">{% trans "Previous" %}</span>
|
2020-02-15 21:49:49 +00:00
|
|
|
</a>
|
2023-03-25 19:57:12 +00:00
|
|
|
<a class="carousel-control-next"
|
|
|
|
href="#feeding-methods-carousel"
|
|
|
|
role="button"
|
|
|
|
data-bs-slide="next">
|
2020-02-15 21:49:49 +00:00
|
|
|
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
2023-03-25 19:57:12 +00:00
|
|
|
<span class="visually-hidden">{% trans "Next" %}</span>
|
2020-02-15 21:49:49 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
2020-02-15 21:34:57 +00:00
|
|
|
</div>
|
2017-10-28 00:12:39 +00:00
|
|
|
{% else %}
|
2019-04-14 15:40:08 +00:00
|
|
|
{% trans "None" %}
|
2017-10-28 00:12:39 +00:00
|
|
|
{% endif %}
|
2020-02-15 21:34:57 +00:00
|
|
|
|
2017-10-24 00:07:45 +00:00
|
|
|
{% endblock %}
|