From f5ae1a55a7549aff98fa129120fe225e7c413ff6 Mon Sep 17 00:00:00 2001
From: Christopher Charbonneau Wells <10456740+cdubz@users.noreply.github.com>
Date: Sun, 12 Jun 2022 19:24:00 -0700
Subject: [PATCH] Fix list view classes and colspans and re-sort menu items
(#481)
* Standardize list class and fix colspans
Fixes #469
* Alpha organize new recent menu item additions
---
.../templates/babybuddy/nav-dropdown.html | 134 ++++++++----------
core/templates/core/bmi_list.html | 4 +-
core/templates/core/child_list.html | 2 +-
core/templates/core/diaperchange_list.html | 2 +-
core/templates/core/feeding_list.html | 2 +-
.../core/head_circumference_list.html | 2 +-
core/templates/core/height_list.html | 2 +-
core/templates/core/note_list.html | 4 +-
core/templates/core/pumping_list.html | 2 +-
core/templates/core/sleep_list.html | 2 +-
core/templates/core/temperature_list.html | 2 +-
core/templates/core/timer_list.html | 2 +-
core/templates/core/tummytime_list.html | 2 +-
core/templates/core/weight_list.html | 2 +-
14 files changed, 72 insertions(+), 92 deletions(-)
diff --git a/babybuddy/templates/babybuddy/nav-dropdown.html b/babybuddy/templates/babybuddy/nav-dropdown.html
index 080276a9..6e685b99 100644
--- a/babybuddy/templates/babybuddy/nav-dropdown.html
+++ b/babybuddy/templates/babybuddy/nav-dropdown.html
@@ -69,31 +69,12 @@
{% trans "Sleep" %}
{% endif %}
- {% if perms.core.add_temperature %}
-
-
- {% trans "Temperature" %}
-
- {% endif %}
{% if perms.core.add_tummytime %}
{% trans "Tummy Time" %}
{% endif %}
- {% if perms.core.add_weight %}
-
-
- {% trans "Weight" %}
-
- {% endif %}
- {% if perms.core.add_pumping %}
-
-
- {% trans "Pumping" %}
-
- {% endif %}
-
@@ -172,6 +153,48 @@
@@ -275,13 +256,27 @@
{% trans "Feedings" %}
{% endif %}
- {% if perms.core.add_diaperchange %}
+ {% if perms.core.add_feeding %}
{% trans "Feeding" %}
{% endif %}
+ {% if perms.core.view_pumping %}
+
+
+ {% trans "Pumping" %}
+
+ {% endif %}
+ {% if perms.core.add_pumping %}
+
+ {% trans "Pumping entry" %}
+
+ {% endif %}
+
{% if perms.core.view_sleep %}
@@ -307,21 +302,6 @@
{% trans "Tummy Time entry" %}
{% endif %}
-
-
- {% if perms.core.view_pumping %}
-
-
- {% trans "Pumping" %}
-
- {% endif %}
- {% if perms.core.add_pumping %}
-
- {% trans "Pumping entry" %}
-
- {% endif %}
diff --git a/core/templates/core/bmi_list.html b/core/templates/core/bmi_list.html
index 78be8494..abbc24f2 100644
--- a/core/templates/core/bmi_list.html
+++ b/core/templates/core/bmi_list.html
@@ -18,7 +18,7 @@
{% include 'babybuddy/filter.html' %}
-
+
{% trans "Actions" %} |
@@ -67,7 +67,7 @@
{% endif %}
{% empty %}
- {% trans "No bmi entries found." %} |
+ {% trans "No BMI entries found." %} |
{% endfor %}
diff --git a/core/templates/core/child_list.html b/core/templates/core/child_list.html
index 9d55f3d0..589c5b6a 100644
--- a/core/templates/core/child_list.html
+++ b/core/templates/core/child_list.html
@@ -64,7 +64,7 @@
{% empty %}
- {% trans "No children found." %} |
+ {% trans "No children found." %} |
{% endfor %}
diff --git a/core/templates/core/diaperchange_list.html b/core/templates/core/diaperchange_list.html
index 28455049..09e6cf87 100644
--- a/core/templates/core/diaperchange_list.html
+++ b/core/templates/core/diaperchange_list.html
@@ -18,7 +18,7 @@
{% include 'babybuddy/filter.html' %}
-
+
{% trans "Actions" %} |
diff --git a/core/templates/core/feeding_list.html b/core/templates/core/feeding_list.html
index e21336e4..4dc9e9ec 100644
--- a/core/templates/core/feeding_list.html
+++ b/core/templates/core/feeding_list.html
@@ -18,7 +18,7 @@
{% include 'babybuddy/filter.html' %}
-
+
{% trans "Actions" %} |
diff --git a/core/templates/core/head_circumference_list.html b/core/templates/core/head_circumference_list.html
index 0b1208c4..88772556 100644
--- a/core/templates/core/head_circumference_list.html
+++ b/core/templates/core/head_circumference_list.html
@@ -18,7 +18,7 @@
{% include 'babybuddy/filter.html' %}
-
+
{% trans "Actions" %} |
diff --git a/core/templates/core/height_list.html b/core/templates/core/height_list.html
index 660b1d3d..2abb39f9 100644
--- a/core/templates/core/height_list.html
+++ b/core/templates/core/height_list.html
@@ -18,7 +18,7 @@
{% include 'babybuddy/filter.html' %}
-
+
{% trans "Actions" %} |
diff --git a/core/templates/core/note_list.html b/core/templates/core/note_list.html
index c24eb9f9..571e3d23 100644
--- a/core/templates/core/note_list.html
+++ b/core/templates/core/note_list.html
@@ -18,7 +18,7 @@
{% include 'babybuddy/filter.html' %}
-
+
{% trans "Actions" %} |
@@ -61,7 +61,7 @@
{% empty %}
- {% trans "No notes found." %} |
+ {% trans "No notes found." %} |
{% endfor %}
diff --git a/core/templates/core/pumping_list.html b/core/templates/core/pumping_list.html
index 4f6a9c3c..47ea15e4 100644
--- a/core/templates/core/pumping_list.html
+++ b/core/templates/core/pumping_list.html
@@ -18,7 +18,7 @@
{% include 'babybuddy/filter.html' %}
-
+
{% trans "Actions" %} |
diff --git a/core/templates/core/sleep_list.html b/core/templates/core/sleep_list.html
index a1210cbd..23a2bc3d 100644
--- a/core/templates/core/sleep_list.html
+++ b/core/templates/core/sleep_list.html
@@ -18,7 +18,7 @@
{% include 'babybuddy/filter.html' %}
-
+
{% trans "Actions" %} |
diff --git a/core/templates/core/temperature_list.html b/core/templates/core/temperature_list.html
index 2493e150..93100178 100644
--- a/core/templates/core/temperature_list.html
+++ b/core/templates/core/temperature_list.html
@@ -18,7 +18,7 @@
{% include 'babybuddy/filter.html' %}
-
+
{% trans "Actions" %} |
diff --git a/core/templates/core/timer_list.html b/core/templates/core/timer_list.html
index b6b7d42d..8043d38e 100644
--- a/core/templates/core/timer_list.html
+++ b/core/templates/core/timer_list.html
@@ -18,7 +18,7 @@
{% include 'babybuddy/filter.html' %}
-
+
{% trans "Start" %} |
diff --git a/core/templates/core/tummytime_list.html b/core/templates/core/tummytime_list.html
index 5377f89e..e0cd5fe6 100644
--- a/core/templates/core/tummytime_list.html
+++ b/core/templates/core/tummytime_list.html
@@ -17,7 +17,7 @@
{% include 'babybuddy/filter.html' %}
-
+
{% trans "Actions" %} |
diff --git a/core/templates/core/weight_list.html b/core/templates/core/weight_list.html
index c2b0fd55..c9bda834 100644
--- a/core/templates/core/weight_list.html
+++ b/core/templates/core/weight_list.html
@@ -18,7 +18,7 @@
{% include 'babybuddy/filter.html' %}