Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Move delete option in context to the bottom

Roland Geidera90c58f64a7b
diff --git a/wger/config/templates/language/view.html b/wger/config/templates/language/view.html
index cc376df0a..c6a1f66c8 100644
--- a/wger/config/templates/language/view.html
+++ b/wger/config/templates/language/view.html
@@ -96,6 +96,7 @@ in A).{% endblocktrans %}</p>
{% trans "Edit" %}
</a>
</li>
+ <li role="separator" class="divider"></li>
<li>
<a href="{% url 'core:language:delete' view_language.id %}" class="wger-modal-dialog">
<span class="{% fa_class 'trash' %}"></span>
@@ -104,4 +105,4 @@ in A).{% endblocktrans %}</p>
</li>
</ul>
</div>
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/wger/nutrition/templates/ingredient/view.html b/wger/nutrition/templates/ingredient/view.html
index 0b6355b6c..1e7714190 100644
--- a/wger/nutrition/templates/ingredient/view.html
+++ b/wger/nutrition/templates/ingredient/view.html
@@ -240,13 +240,6 @@ the search.{% endblocktrans %}
{% trans "Options" %}
</button>
<ul class="dropdown-menu">
- <li>
- <a href="{% url 'nutrition:ingredient:delete' ingredient.id %}"
- title="{% trans 'Delete ingredient' %}" {% auto_link_css flavour "wger-modal-dialog" %}>
- <span class="{% fa_class 'trash' %}"></span>
- {% trans 'Delete' %}</a>
- </li>
- <li role="separator" class="divider"></li>
<li>
<a href="{% url 'nutrition:ingredient:edit' ingredient.id %}"
title="{% trans 'Edit ingredient' %}"
@@ -254,7 +247,14 @@ the search.{% endblocktrans %}
<span class="{% fa_class 'pencil-square-o' %}"></span>
{% trans 'Edit ingredient' %}</a>
</li>
+ <li role="separator" class="divider"></li>
+ <li>
+ <a href="{% url 'nutrition:ingredient:delete' ingredient.id %}"
+ title="{% trans 'Delete ingredient' %}" {% auto_link_css flavour "wger-modal-dialog" %}>
+ <span class="{% fa_class 'trash' %}"></span>
+ {% trans 'Delete' %}</a>
+ </li>
</ul>
</div>
{% endif %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}