mirror of https://github.com/snachodog/mybuddy.git
Change reading to entry and other PR feedback
This commit is contained in:
parent
8b5c3eb5b9
commit
9b4bbef5bf
|
@ -1,7 +1,7 @@
|
|||
{% extends 'babybuddy/page.html' %}
|
||||
{% load i18n widget_tweaks %}
|
||||
|
||||
{% block title %}{% trans "Delete a Pumping Reading" %}{% endblock %}
|
||||
{% block title %}{% trans "Delete a Pumping Entry" %}{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="breadcrumb-item"><a href="{% url 'core:pumping-list' %}">{% trans "Pumping" %}</a></li>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{% if object %}
|
||||
{{ object }}
|
||||
{% else %}
|
||||
{% trans "Add a Pumping Reading" %}
|
||||
{% trans "Add a Pumping Entry" %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
|||
{% if object %}
|
||||
<li class="breadcrumb-item active" aria-current="page">{% trans "Update" %}</li>
|
||||
{% else %}
|
||||
<li class="breadcrumb-item active" aria-current="page">{% trans "Add a Pumping Reading" %}</li>
|
||||
<li class="breadcrumb-item active" aria-current="page">{% trans "Add a Pumping Entry" %}</li>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -134,7 +134,7 @@ class PumpingAdd(CoreAddView):
|
|||
permission_required = ("core.add_pumping",)
|
||||
form_class = forms.PumpingForm
|
||||
success_url = reverse_lazy("core:pumping-list")
|
||||
success_message = _("%(model)s reading added!")
|
||||
success_message = _("%(model)s entry added!")
|
||||
|
||||
|
||||
class PumpingUpdate(CoreUpdateView):
|
||||
|
@ -142,7 +142,7 @@ class PumpingUpdate(CoreUpdateView):
|
|||
permission_required = ("core.change_pumping",)
|
||||
form_class = forms.PumpingForm
|
||||
success_url = reverse_lazy("core:pumping-list")
|
||||
success_message = _("%(model)s reading for %(child)s updated.")
|
||||
success_message = _("%(model)s entry for %(child)s updated.")
|
||||
|
||||
|
||||
class PumpingDelete(CoreDeleteView):
|
||||
|
|
|
@ -45,7 +45,6 @@ ability to edit any entry.
|
|||
|
||||
The Measurements menu provides the option to view and track your baby's
|
||||
measurements of temperature, weight, height, head circumference and BMI.
|
||||
This section also includes the mother's measurements for pumping pumped.
|
||||
|
||||
Selecting any of the measurements will open that specific page with all related
|
||||
measurements listed.
|
||||
|
|
|
@ -16,7 +16,7 @@ def pumping_amounts(objects):
|
|||
"""
|
||||
objects = objects.order_by("-time")
|
||||
|
||||
trace = go.Scatter(
|
||||
trace = go.Bar(
|
||||
name=_("Pumping"),
|
||||
x=list(objects.values_list("time", flat=True)),
|
||||
y=list(objects.values_list("amount", flat=True)),
|
||||
|
|
Loading…
Reference in New Issue