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' %}
|
{% extends 'babybuddy/page.html' %}
|
||||||
{% load i18n widget_tweaks %}
|
{% load i18n widget_tweaks %}
|
||||||
|
|
||||||
{% block title %}{% trans "Delete a Pumping Reading" %}{% endblock %}
|
{% block title %}{% trans "Delete a Pumping Entry" %}{% endblock %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
<li class="breadcrumb-item"><a href="{% url 'core:pumping-list' %}">{% trans "Pumping" %}</a></li>
|
<li class="breadcrumb-item"><a href="{% url 'core:pumping-list' %}">{% trans "Pumping" %}</a></li>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{% if object %}
|
{% if object %}
|
||||||
{{ object }}
|
{{ object }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% trans "Add a Pumping Reading" %}
|
{% trans "Add a Pumping Entry" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
{% if object %}
|
{% if object %}
|
||||||
<li class="breadcrumb-item active" aria-current="page">{% trans "Update" %}</li>
|
<li class="breadcrumb-item active" aria-current="page">{% trans "Update" %}</li>
|
||||||
{% else %}
|
{% 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 %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,7 @@ class PumpingAdd(CoreAddView):
|
||||||
permission_required = ("core.add_pumping",)
|
permission_required = ("core.add_pumping",)
|
||||||
form_class = forms.PumpingForm
|
form_class = forms.PumpingForm
|
||||||
success_url = reverse_lazy("core:pumping-list")
|
success_url = reverse_lazy("core:pumping-list")
|
||||||
success_message = _("%(model)s reading added!")
|
success_message = _("%(model)s entry added!")
|
||||||
|
|
||||||
|
|
||||||
class PumpingUpdate(CoreUpdateView):
|
class PumpingUpdate(CoreUpdateView):
|
||||||
|
@ -142,7 +142,7 @@ class PumpingUpdate(CoreUpdateView):
|
||||||
permission_required = ("core.change_pumping",)
|
permission_required = ("core.change_pumping",)
|
||||||
form_class = forms.PumpingForm
|
form_class = forms.PumpingForm
|
||||||
success_url = reverse_lazy("core:pumping-list")
|
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):
|
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
|
The Measurements menu provides the option to view and track your baby's
|
||||||
measurements of temperature, weight, height, head circumference and BMI.
|
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
|
Selecting any of the measurements will open that specific page with all related
|
||||||
measurements listed.
|
measurements listed.
|
||||||
|
|
|
@ -16,7 +16,7 @@ def pumping_amounts(objects):
|
||||||
"""
|
"""
|
||||||
objects = objects.order_by("-time")
|
objects = objects.order_by("-time")
|
||||||
|
|
||||||
trace = go.Scatter(
|
trace = go.Bar(
|
||||||
name=_("Pumping"),
|
name=_("Pumping"),
|
||||||
x=list(objects.values_list("time", flat=True)),
|
x=list(objects.values_list("time", flat=True)),
|
||||||
y=list(objects.values_list("amount", flat=True)),
|
y=list(objects.values_list("amount", flat=True)),
|
||||||
|
|
Loading…
Reference in New Issue