Self hosted FLOSS fitness/workout, nutrition and weight tracker
Fix dropdowns
Rolande16ede02fb12
diff --git a/wger/core/templates/license/list.html b/wger/core/templates/license/list.htmlindex 4c8b7afdc..921bd59d8 100644--- a/wger/core/templates/license/list.html+++ b/wger/core/templates/license/list.html@@ -12,14 +12,10 @@<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown"><span class="{% fa_class 'cog' %}"></span></button>- <ul class="dropdown-menu" role="menu">- <li>- <a href="{% url 'core:license:edit' license.id %}" class="wger-modal-dialog">{% trans 'Edit' %}</a>- </li>- <li>- <a href="{% url 'core:license:delete' license.id %}" class="wger-modal-dialog">{% trans 'Delete' %}</a>- </li>- </ul>+ <div class="dropdown-menu" role="menu">+ <a href="{% url 'core:license:edit' license.id %}" class="dropdown-item wger-modal-dialog">{% trans 'Edit' %}</a>+ <a href="{% url 'core:license:delete' license.id %}" class="dropdown-item wger-modal-dialog">{% trans 'Delete' %}</a>+ </div></div>{{license}}</li>diff --git a/wger/core/templates/repetition_unit/list.html b/wger/core/templates/repetition_unit/list.htmlindex 529953b52..5d61c856a 100644--- a/wger/core/templates/repetition_unit/list.html+++ b/wger/core/templates/repetition_unit/list.html@@ -14,12 +14,8 @@<span class="{% fa_class 'cog' %}"></span></button><ul class="dropdown-menu" role="menu">- <li>- <a href="{% url 'core:repetition-unit:edit' unit.id %}" class="wger-modal-dialog">{% trans 'Edit' %}</a>- </li>- <li>- <a href="{% url 'core:repetition-unit:delete' unit.id %}" class="wger-modal-dialog">{% trans 'Delete' %}</a>- </li>+ <a href="{% url 'core:repetition-unit:edit' unit.id %}" class="wger-modal-dialog dropdown-item">{% trans 'Edit' %}</a>+ <a href="{% url 'core:repetition-unit:delete' unit.id %}" class="wger-modal-dialog dropdown-item">{% trans 'Delete' %}</a></ul></div>{% endif %}diff --git a/wger/core/templates/user/overview.html b/wger/core/templates/user/overview.htmlindex 443b68287..8d23def56 100644--- a/wger/core/templates/user/overview.html+++ b/wger/core/templates/user/overview.html@@ -201,32 +201,22 @@<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">{% trans "Actions" %} <span class="caret"></span></button>- <ul class="dropdown-menu" role="menu">- <li>- <a href="{% url 'core:user:edit' current_user.pk %}" class="wger-modal-dialog">{% trans "Edit"%}</a>- </li>- <li class="divider"></li>- <li>+ <div class="dropdown-menu" role="menu">+ <a href="{% url 'core:user:edit' current_user.pk %}" class="wger-modal-dialog dropdown-item">{% trans "Edit"%}</a>+ <div class="dropdown-divider"></div>{% if current_user.is_active %}- <a href="{% url 'core:user:deactivate' current_user.pk %}" >{% trans "Deactivate user"%}</a>- {% else %}- <a href="{% url 'core:user:activate' current_user.pk %}">{% trans "Activate user"%}</a>- {% endif %}- </li>- <li>- <a data-url="{% url 'gym:gym:reset-user-password' current_user.pk %}" data-toggle="modal" data-target="#confirmation-modal">{% trans "Reset user password" %}</a>- </li>+ <a href="{% url 'core:user:deactivate' current_user.pk %}" class="dropdown-item">{% trans "Deactivate user"%}</a>+ {% else %}+ <a href="{% url 'core:user:activate' current_user.pk %}" class="dropdown-item">{% trans "Activate user"%}</a>+ {% endif %}+ <a data-url="{% url 'gym:gym:reset-user-password' current_user.pk %}" data-toggle="modal" data-target="#confirmation-modal" class="dropdown-item">{% trans "Reset user password" %}</a>{% if perms.gym.manage_gym or perms.gym.manage_gyms %}{% if current_user.userprofile.gym %}- <li>- <a href="{% url 'gym:gym:edit-user-permission' current_user.pk %}" class="wger-modal-dialog">{% trans "Roles"%}</a>- </li>+ <a href="{% url 'gym:gym:edit-user-permission' current_user.pk %}" class="wger-modal-dialog dropdown-item">{% trans "Roles"%}</a>{% endif %}{% endif %}- <li>- <a href="{% url 'core:user:delete' current_user.pk %}" class="wger-modal-dialog">{% trans "Delete"%}</a>- </li>- </ul>+ <a href="{% url 'core:user:delete' current_user.pk %}" class="wger-modal-dialog dropdown-item">{% trans "Delete"%}</a>+ </div></div><div id="confirmation-modal" class="modal fade" tabindex="-1" role="dialog">@@ -332,14 +322,10 @@<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">{% trans "Actions" %} <span class="caret"></span></button>- <ul class="dropdown-menu" role="menu">- <li>- <a href="{% url 'gym:contract:list' current_user.id %}">{% trans "Overview"%}</a>- </li>- <li>- <a href="{% url 'gym:contract:add' current_user.pk %}">{% trans "Add"%}</a>- </li>- </ul>+ <div class="dropdown-menu" role="menu">+ <a href="{% url 'gym:contract:list' current_user.id %}" class="dropdown-item">{% trans "Overview"%}</a>+ <a href="{% url 'gym:contract:add' current_user.pk %}" class="dropdown-item">{% trans "Add"%}</a>+ </div></div><h4>{% trans "Contracts" %} <small>({% blocktrans with number=5 %}last {{ number }}{% endblocktrans %})</small></h4>@@ -375,14 +361,10 @@<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">{% trans "Actions" %} <span class="caret"></span></button>- <ul class="dropdown-menu" role="menu">- <li>- <a href="{% url 'gym:admin_note:list' current_user.pk %}">{% trans "Overview" %}</a>- </li>- <li>- <a href="{% url 'gym:admin_note:add' current_user.pk %}" class="wger-modal-dialog">{% trans "Add"%}</a>- </li>- </ul>+ <div class="dropdown-menu" role="menu">+ <a href="{% url 'gym:admin_note:list' current_user.pk %}" class="dropdown-item">{% trans "Overview" %}</a>+ <a href="{% url 'gym:admin_note:add' current_user.pk %}" class="wger-modal-dialog dropdown-item">{% trans "Add"%}</a>+ </div></div><h4>{% trans "Notes" %} <small>({% blocktrans with number=5 %}last {{ number }}{% endblocktrans %})</small></h4>@@ -415,14 +397,10 @@<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">{% trans "Actions" %} <span class="caret"></span></button>- <ul class="dropdown-menu" role="menu">- <li>- <a href="{% url 'gym:document:list' current_user.pk %}">{% trans "Overview" %}</a>- </li>- <li>- <a href="{% url 'gym:document:add' current_user.pk %}">{% trans "Add"%}</a>- </li>- </ul>+ <div class="dropdown-menu" role="menu">+ <a href="{% url 'gym:document:list' current_user.pk %}" class="dropdown-item">{% trans "Overview" %}</a>+ <a href="{% url 'gym:document:add' current_user.pk %}" class="dropdown-item">{% trans "Add"%}</a>+ </div></div><h4>{% trans "Documents" %} <small>({% blocktrans with number=5 %}last {{ number }}{% endblocktrans %})</small></h4>@@ -464,12 +442,9 @@<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">{% trans "Actions" %} <span class="caret"></span></button>- <ul class="dropdown-menu" role="menu">-- <li>- <a href="{% url 'gym:user_config:edit' current_user.gymuserconfig.pk %}" class="wger-modal-dialog">{% trans "Edit"%}</a>- </li>- </ul>+ <div class="dropdown-menu" role="menu">+ <a href="{% url 'gym:user_config:edit' current_user.gymuserconfig.pk %}" class="wger-modal-dialog dropdown-item">{% trans "Edit"%}</a>+ </div></div>{% endif %}diff --git a/wger/core/templates/weight_unit/list.html b/wger/core/templates/weight_unit/list.htmlindex b31dcacfe..d868c3ceb 100644--- a/wger/core/templates/weight_unit/list.html+++ b/wger/core/templates/weight_unit/list.html@@ -13,14 +13,10 @@<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown"><span class="{% fa_class 'cog' %}"></span></button>- <ul class="dropdown-menu" role="menu">- <li>- <a href="{% url 'core:weight-unit:edit' unit.id %}" class="wger-modal-dialog">{% trans 'Edit' %}</a>- </li>- <li>- <a href="{% url 'core:weight-unit:delete' unit.id %}" class="wger-modal-dialog">{% trans 'Delete' %}</a>- </li>- </ul>+ <div class="dropdown-menu" role="menu">+ <a href="{% url 'core:weight-unit:edit' unit.id %}" class="wger-modal-dialog dropdown-item">{% trans 'Edit' %}</a>+ <a href="{% url 'core:weight-unit:delete' unit.id %}" class="wger-modal-dialog dropdown-item">{% trans 'Delete' %}</a>+ </div></div>{% endif %}{{unit}}diff --git a/wger/exercises/templates/categories/admin-overview.html b/wger/exercises/templates/categories/admin-overview.htmlindex e325e97a9..11e50f894 100644--- a/wger/exercises/templates/categories/admin-overview.html+++ b/wger/exercises/templates/categories/admin-overview.html@@ -12,14 +12,10 @@<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown"><span class="{% fa_class 'cog' %}"></span></button>- <ul class="dropdown-menu" role="menu">- <li>- <a href="{% url 'exercise:category:edit' category.id %}" class="wger-modal-dialog">{% trans 'Edit' %}</a>- </li>- <li>- <a href="{% url 'exercise:category:delete' category.id %}" class="wger-modal-dialog">{% trans 'Delete' %}</a>- </li>- </ul>+ <div class="dropdown-menu" role="menu">+ <a href="{% url 'exercise:category:edit' category.id %}" class="wger-modal-dialog dropdown-item">{% trans 'Edit' %}</a>+ <a href="{% url 'exercise:category:delete' category.id %}" class="wger-modal-dialog dropdown-item">{% trans 'Delete' %}</a>+ </div></div>{{ category }}</li>diff --git a/wger/exercises/templates/equipment/list.html b/wger/exercises/templates/equipment/list.htmlindex 89ef9d3f4..b50a13269 100644--- a/wger/exercises/templates/equipment/list.html+++ b/wger/exercises/templates/equipment/list.html@@ -12,14 +12,10 @@<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown"><span class="{% fa_class 'cog' %}"></span></button>- <ul class="dropdown-menu" role="menu">- <li>- <a href="{% url 'exercise:equipment:edit' equipment.id %}" class="wger-modal-dialog">{% trans 'Edit' %}</a>- </li>- <li>- <a href="{% url 'exercise:equipment:delete' equipment.id %}" class="wger-modal-dialog">{% trans 'Delete' %}</a>- </li>- </ul>+ <div class="dropdown-menu" role="menu">+ <a href="{% url 'exercise:equipment:edit' equipment.id %}" class="wger-modal-dialog dropdown-item">{% trans 'Edit' %}</a>+ <a href="{% url 'exercise:equipment:delete' equipment.id %}" class="wger-modal-dialog dropdown-item">{% trans 'Delete' %}</a>+ </div></div>{{equipment.name}}</li>diff --git a/wger/exercises/templates/muscles/admin-overview.html b/wger/exercises/templates/muscles/admin-overview.htmlindex 9b28aa626..0f5a5d38f 100644--- a/wger/exercises/templates/muscles/admin-overview.html+++ b/wger/exercises/templates/muscles/admin-overview.html@@ -12,14 +12,10 @@<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown"><span class="{% fa_class 'cog' %}"></span></button>- <ul class="dropdown-menu" role="menu">- <li>- <a href="{% url 'exercise:muscle:edit' muscle.id %}" class="wger-modal-dialog">{% trans 'Edit' %}</a>- </li>- <li>- <a href="{% url 'exercise:muscle:delete' muscle.id %}" class="wger-modal-dialog">{% trans 'Delete' %}</a>- </li>- </ul>+ <div class="dropdown-menu" role="menu">+ <a href="{% url 'exercise:muscle:edit' muscle.id %}" class="wger-modal-dialog dropdown-item">{% trans 'Edit' %}</a>+ <a href="{% url 'exercise:muscle:delete' muscle.id %}" class="wger-modal-dialog dropdown-item">{% trans 'Delete' %}</a>+ </div></div>{{ muscle }}</li>diff --git a/wger/gym/templates/gym/list.html b/wger/gym/templates/gym/list.htmlindex 8a2199a28..326970ac6 100644--- a/wger/gym/templates/gym/list.html+++ b/wger/gym/templates/gym/list.html@@ -15,14 +15,10 @@<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown"><span class="{% fa_class 'cog' %}"></span></button>- <ul class="dropdown-menu" role="menu">- <li>- <a href="{% url 'gym:gym:edit' gym.id %}" class="wger-modal-dialog">{% trans 'Edit' %}</a>- </li>- <li>- <a href="{% url 'gym:gym:delete' gym.id %}" class="wger-modal-dialog">{% trans 'Delete' %}</a>- </li>- </ul>+ <div class="dropdown-menu" role="menu">+ <a href="{% url 'gym:gym:edit' gym.id %}" class="wger-modal-dialog dropdown-item">{% trans 'Edit' %}</a>+ <a href="{% url 'gym:gym:delete' gym.id %}" class="wger-modal-dialog dropdown-item">{% trans 'Delete' %}</a>+ </div></div><a href="{% url 'gym:gym:user-list' gym.pk %}">{{gym}}</a></li>@@ -43,11 +39,9 @@<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown">{% trans "Actions" %} <span class="caret"></span></button>- <ul class="dropdown-menu" role="menu">- <li>- <a href="{% url 'config:gym_config:edit' %}" class="wger-modal-dialog">{% trans "Edit"%}</a>- </li>- </ul>+ <div class="dropdown-menu" role="menu">+ <a href="{% url 'config:gym_config:edit' %}" class="wger-modal-dialog dropdown-item">{% trans "Edit"%}</a>+ </div></div>{% endif %}<h4>{% trans "Global gym configuration" %}</h4>diff --git a/wger/manager/templates/calendar/partial_overview_table.html b/wger/manager/templates/calendar/partial_overview_table.htmlindex 4980275d2..33eacafbd 100644--- a/wger/manager/templates/calendar/partial_overview_table.html+++ b/wger/manager/templates/calendar/partial_overview_table.html@@ -6,31 +6,27 @@{% if is_owner %}{% if value.session %}- <div class="btn-group" role="group">- <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">- {% trans "Workout session" %}- <span class="caret"></span>- </button>- <ul class="dropdown-menu">- <li>- <a href="{% url 'manager:session:edit' value.session.pk %}" class="wger-modal-dialog">+ <div class="btn-group"">+ <div class="btn-group" role="group">+ <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">+ {% trans "Workout session" %}+ <span class="caret"></span>+ </button>+ <div class="dropdown-menu">+ <a href="{% url 'manager:session:edit' value.session.pk %}" class="wger-modal-dialog dropdown-item"><span class="{% fa_class 'pencil-square-o' %}"></span>{% trans "Edit" %}</a>- </li>- <li>- <a href="{% url 'manager:session:delete' value.session.pk %}" class="wger-modal-dialog">+ <a href="{% url 'manager:session:delete' value.session.pk %}" class="wger-modal-dialog dropdown-item"><span class="{% fa_class 'trash' %}"></span>{% trans "Delete" %}</a>- </li>- <li>- <a href="{% url 'manager:session:delete' value.session.pk 'logs' %}" class="wger-modal-dialog">+ <a href="{% url 'manager:session:delete' value.session.pk 'logs' %}" class="wger-modal-dialog dropdown-item"><span class="{% fa_class 'trash' %}"></span>{% trans "Delete with logs" %}</a>- </li>- </ul>+ </div>+ </div></div>{% else %}<a href="{% url 'manager:session:add' value.workout.id date|date:'Y' date|date:'m' date|date:'d' %}" class="btn btn-default btn-block wger-modal-dialog">{% trans "Add workout impression" %}</a>@@ -60,4 +56,4 @@<td>{{value.session.notes|default:'-/-'}}</td></tr></table>-{% endif %}\ No newline at end of file+{% endif %}diff --git a/wger/manager/templates/schedule/view.html b/wger/manager/templates/schedule/view.htmlindex 3681f37e1..0233de3be 100644--- a/wger/manager/templates/schedule/view.html+++ b/wger/manager/templates/schedule/view.html@@ -317,38 +317,32 @@ an appointment for each training day with the appropriate exercises.{% endblockt{# #}{% block options %}<div class="btn-group">- <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">- <span class="{% fa_class 'cog' %}"></span>- {% trans "Options" %}- </button>- <ul class="dropdown-menu">- <li>- <a href="#" data-toggle="modal" data-target="#export-ical-popup">- <span class="{% fa_class 'calendar' %}"></span>- {% trans "Export calendar file" %}- </a>- </li>- <li>- <a data-toggle="modal" data-target="#download-pdf-popup">- <span class="{% fa_class 'download' %}"></span>- {% trans "Download as PDF" %}- </a>- </li>- {% if is_owner %}- <li>- <a href="{% url 'manager:schedule:edit' schedule.id %}" class="wger-modal-dialog">- <span class="{% fa_class 'pencil-square-o' %}"></span>- {% trans "Edit schedule" %}- </a>- </li>- <li role="separator" class="divider"></li>- <li>- <a href="{% url 'manager:schedule:delete' schedule.id %}" class="wger-modal-dialog">- <span class="{% fa_class 'trash' %}"></span>- {% trans "Delete schedule" %}- </a>- </li>- {% endif %}- </ul>+ <div class="btn-group">+ <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">+ <span class="{% fa_class 'cog' %}"></span>+ {% trans "Options" %}+ </button>+ <div class="dropdown-menu">+ <a href="#" data-toggle="modal" data-target="#export-ical-popup" class="dropdown-item">+ <span class="{% fa_class 'calendar' %}"></span>+ {% trans "Export calendar file" %}+ </a>+ <a data-toggle="modal" data-target="#download-pdf-popup" class="dropdown-item">+ <span class="{% fa_class 'download' %}"></span>+ {% trans "Download as PDF" %}+ </a>+ {% if is_owner %}+ <a href="{% url 'manager:schedule:edit' schedule.id %}" class="wger-modal-dialog dropdown-item">+ <span class="{% fa_class 'pencil-square-o' %}"></span>+ {% trans "Edit schedule" %}+ </a>+ <div role="separator" class="dropdown-divider"></div>+ <a href="{% url 'manager:schedule:delete' schedule.id %}" class="wger-modal-dialog dropdown-item">+ <span class="{% fa_class 'trash' %}"></span>+ {% trans "Delete schedule" %}+ </a>+ {% endif %}+ </div>+ </div></div>{% endblock %}diff --git a/wger/nutrition/templates/ingredient/view.html b/wger/nutrition/templates/ingredient/view.htmlindex 9e19651c6..ea5f661c9 100644--- a/wger/nutrition/templates/ingredient/view.html+++ b/wger/nutrition/templates/ingredient/view.html@@ -235,26 +235,26 @@ the search.{% endblocktrans %}{% block options %}{% if perms.nutrition.delete_ingredient %}<div class="btn-group">- <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">- <span class="{% fa_class 'cog' %}"></span>- {% trans "Options" %}- </button>- <ul class="dropdown-menu">- <li>+ <div class="btn-group">+ <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">+ <span class="{% fa_class 'cog' %}"></span>+ {% trans "Options" %}+ </button>+ <div class="dropdown-menu"><a href="{% url 'nutrition:ingredient:edit' ingredient.id %}"title="{% trans 'Edit ingredient' %}"- {% auto_link_css request.user_agent.is_mobile %}>+ class="dropdown-item"><span class="{% fa_class 'pencil-square-o' %}"></span>- {% trans 'Edit ingredient' %}</a>- </li>- <li role="separator" class="divider"></li>- <li>+ {% trans 'Edit ingredient' %}+ </a>+ <div role="separator" class="dropdown-divider"></div><a href="{% url 'nutrition:ingredient:delete' ingredient.id %}"- title="{% trans 'Delete ingredient' %}" {% auto_link_css request.user_agent.is_mobile "wger-modal-dialog" %}>+ title="{% trans 'Delete ingredient' %}" class="wger-modal-dialog dropdown-item" ><span class="{% fa_class 'trash' %}"></span>- {% trans 'Delete' %}</a>- </li>- </ul>+ {% trans 'Delete' %}+ </a>+ </div>+ </div></div>{% endif %}{% endblock %}diff --git a/wger/nutrition/templates/plan/view.html b/wger/nutrition/templates/plan/view.htmlindex dfeae3cc6..b7620f09d 100644--- a/wger/nutrition/templates/plan/view.html+++ b/wger/nutrition/templates/plan/view.html@@ -288,34 +288,26 @@ function wgerCustomModalInit()<span class="{% fa_class 'cog' %}"></span>{% trans "Options" %}</button>- <ul class="dropdown-menu">- <li>- <a href="{% url 'nutrition:plan:export-pdf' plan.id uid token %}" target="_blank">- <span class="{% fa_class 'download' %}"></span>- {% trans "Download as PDF" %}- </a>- </li>+ <div class="dropdown-menu">+ <a href="{% url 'nutrition:plan:export-pdf' plan.id uid token %}" target="_blank" class="dropdown-item">+ <span class="{% fa_class 'download' %}"></span>+ {% trans "Download as PDF" %}+ </a>{% if is_owner %}- <li>- <a href="{% url 'nutrition:plan:edit' plan.id %}" class="wger-modal-dialog">+ <a href="{% url 'nutrition:plan:edit' plan.id %}" class="wger-modal-dialog dropdown-item"><span class="{% fa_class 'pencil-square-o' %}"></span>{% trans "Edit nutrition plan" %}</a>- </li>- <li>- <a href="{% url 'nutrition:plan:copy' plan.id %}">+ <a href="{% url 'nutrition:plan:copy' plan.id %}" class="dropdown-item"><span class="{% fa_class 'clone' %}"></span>{% trans "Make a copy of this nutrition plan" %}</a>- </li>- <li role="separator" class="divider"></li>- <li>- <a href="{% url 'nutrition:plan:delete' plan.id %}" class="wger-modal-dialog">+ <div role="separator" class="divider"></div>+ <a href="{% url 'nutrition:plan:delete' plan.id %}" class="wger-modal-dialog dropdown-item"><span class="{% fa_class 'trash' %}"></span>{% trans "Delete nutrition plan" %}</a>- </li>{% endif %}- </ul>+ </div></div>{% endblock %}diff --git a/wger/nutrition/templates/units/list.html b/wger/nutrition/templates/units/list.htmlindex 30f36ea89..dc66920af 100644--- a/wger/nutrition/templates/units/list.html+++ b/wger/nutrition/templates/units/list.html@@ -14,14 +14,11 @@<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown"><span class="{% fa_class 'cog' %}"></span></button>- <ul class="dropdown-menu" role="menu">- <li>- <a href="{% url 'nutrition:weight_unit:edit' unit.id %}" class="wger-modal-dialog">{% trans 'Edit' %}</a>- </li>- <li>- <a href="{% url 'nutrition:weight_unit:delete' unit.id %}" class="wger-modal-dialog">{% trans 'Delete' %}</a>- </li>- </ul>+ <div class="dropdown-menu" role="menu">+ <a href="{% url 'nutrition:weight_unit:edit' unit.id %}" class="wger-modal-dialog dropdown-item">{% trans 'Edit' %}</a>+ <div class="dropdown-divider"></div>+ <a href="{% url 'nutrition:weight_unit:delete' unit.id %}" class="wger-modal-dialog dropdown-item">{% trans 'Delete' %}</a>+ </div></div>{{unit.name}}</li>