mirror of https://github.com/snachodog/mybuddy.git
update field references in pumping_list
This commit is contained in:
parent
c3648ee7c9
commit
54c305fc46
|
@ -1,5 +1,5 @@
|
||||||
{% extends 'babybuddy/page.html' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load datetime i18n widget_tweaks %}
|
{% load datetime duration i18n widget_tweaks %}
|
||||||
|
|
||||||
{% block title %}{% trans "Pumping" %}{% endblock %}
|
{% block title %}{% trans "Pumping" %}{% endblock %}
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
||||||
<th>{% trans "Child" %}</th>
|
<th>{% trans "Child" %}</th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<th>{% trans "Amount" %}</th>
|
<th>{% trans "Amount" %}</th>
|
||||||
|
<th>{% trans "Duration" %}</th>
|
||||||
<th>{% trans "Tags" %}</th>
|
<th>{% trans "Tags" %}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -50,23 +51,24 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<th scope="row">{{ pumping.time|datetime_short }}</th>
|
<th scope="row">{{ pumping.start|datetime_short }}</th>
|
||||||
{% if not unique_child %}
|
{% if not unique_child %}
|
||||||
<td><a href="{% url 'core:child' pumping.child.slug %}">{{ pumping.child }}</a></td>
|
<td><a href="{% url 'core:child' pumping.child.slug %}">{{ pumping.child }}</a></td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td>{{ pumping.amount }}</td>
|
<td>{{ pumping.amount }}</td>
|
||||||
|
<td>{{ pumping.duration|duration_string }}</td>
|
||||||
<td>
|
<td>
|
||||||
{% include "core/render_tag_list.html" with tags=pumping.tags.all %}
|
{% include "core/render_tag_list.html" with tags=pumping.tags.all %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% if pumping.notes %}
|
{% if pumping.notes %}
|
||||||
<tr class="{{ row_class }} row-details">
|
<tr class="{{ row_class }} row-details">
|
||||||
<td colspan="4"><i class="icon-note me-2" aria-hidden="true"></i>{{ pumping.notes }}</td>
|
<td colspan="5"><i class="icon-note me-2" aria-hidden="true"></i>{{ pumping.notes }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="4">{% trans "No pumping entries found." %}</th>
|
<th colspan="5">{% trans "No pumping entries found." %}</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in New Issue