feat: add links for bottle feeding (#764)

Co-authored-by: Christopher C. Wells <git-2022@chris-wells.net>
This commit is contained in:
Sebastien Stettler 2024-02-07 12:17:54 +08:00 committed by GitHub
parent f30479db42
commit 682090f594
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -49,6 +49,10 @@
<i class="icon-feeding" aria-hidden="true"></i> <i class="icon-feeding" aria-hidden="true"></i>
{% trans "Feeding" %} {% trans "Feeding" %}
</a> </a>
<a class="dropdown-item p-2" href="{% url 'core:bottle-feeding-add' %}">
<i class="icon-feeding" aria-hidden="true"></i>
{% trans "Bottle Feeding" %}
</a>
{% endif %} {% endif %}
{% if perms.core.add_pumping %} {% if perms.core.add_pumping %}
<a class="dropdown-item p-2" href="{% url 'core:pumping-add' %}"> <a class="dropdown-item p-2" href="{% url 'core:pumping-add' %}">

View File

@ -13,6 +13,10 @@
<a href="{% url 'core:feeding-add' %}" class="btn btn-sm btn-success"> <a href="{% url 'core:feeding-add' %}" class="btn btn-sm btn-success">
<i class="icon-feeding" aria-hidden="true"></i> {% trans "Add Feeding" %} <i class="icon-feeding" aria-hidden="true"></i> {% trans "Add Feeding" %}
</a> </a>
<a href="{% url 'core:bottle-feeding-add' %}"
class="btn btn-sm btn-success">
<i class="icon-feeding" aria-hidden="true"></i> {% trans "Add Bottle Feeding" %}
</a>
{% endif %} {% endif %}
</h1> </h1>
{% include 'babybuddy/filter.html' %} {% include 'babybuddy/filter.html' %}