Update missed BS4 classes for BS5

This commit is contained in:
Christopher C. Wells 2023-04-15 14:03:18 -07:00
parent 694bb3f811
commit 472dba13f8
4 changed files with 6 additions and 7 deletions

View File

@ -200,8 +200,7 @@
{% endif %}
{% if perms.core.add_temperature %}
<a class="dropdown-item ps-5{% if request.path == '/temperature/add/' %} active{% endif %}"
href="{% url 'core:temperature-add' %}"><i class="icon-add"
aria-hidden="true"></i>
href="{% url 'core:temperature-add' %}"><i class="icon-add" aria-hidden="true"></i>
{% trans "Temperature reading" %}
</a>
{% endif %}
@ -214,7 +213,7 @@
</a>
{% endif %}
{% if perms.core.add_weight %}
<a class="dropdown-item pl-5{% if request.path == '/weight/add/' %} active{% endif %}"
<a class="dropdown-item ps-5{% if request.path == '/weight/add/' %} active{% endif %}"
href="{% url 'core:weight-add' %}"><i class="icon-add" aria-hidden="true"></i>
{% trans "Weight entry" %}
</a>

View File

@ -2,7 +2,7 @@
<a href="{% url 'core:child' current_child.slug %}">{{ current_child }}</a>
{% if children.count > 0 %}
<a href="#" class="ml-1 pl-1 pr-1 dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<a href="#" class="ms-1 ps-1 pe-1 dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="visually-hidden">{% trans 'Switch child' %}</span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M3.626 6.832A.5.5 0 0 1 4 6h8a.5.5 0 0 1 .374.832l-4 4.5a.5.5 0 0 1-.748 0l-4-4.5z"></path>
@ -14,7 +14,7 @@
{% for child in children %}
<a class="dropdown-item d-flex align-items-center" href="{% url target_url child.slug %}">
{% include "core/child_thumbnail.html" %}
<span class="text-wrap ml-2">{{ child }}</span>
<span class="text-wrap ms-2">{{ child }}</span>
</a>
{% endfor %}
</div>

View File

@ -20,7 +20,7 @@
{% for child in children %}
<button class="dropdown-item d-flex align-items-center" type="submit" name="child" value="{{ child.pk }}">
{% include "core/child_thumbnail.html" %}
<span class="text-wrap ml-2">{{ child }}</span>
<span class="text-wrap ms-2">{{ child }}</span>
</button>
{% endfor %}
</div>

View File

@ -29,7 +29,7 @@
{% for child in children %}
<button class="dropdown-item d-flex align-items-center" type="submit" name="child" value="{{ child.pk }}">
{% include "core/child_thumbnail.html" %}
<span class="text-wrap ml-2">{{ child }}</span>
<span class="text-wrap ms-2">{{ child }}</span>
</button>
{% endfor %}
{% else %}