Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix CSS classes for adminitrating pending ingredients and exercises

Roland Geiderefe64da78831
diff --git a/wger/exercises/templates/exercise/view.html b/wger/exercises/templates/exercise/view.html
index b0f0b09be..560160596 100644
--- a/wger/exercises/templates/exercise/view.html
+++ b/wger/exercises/templates/exercise/view.html
@@ -40,28 +40,24 @@ included in the database.{% endblocktrans %}
</p>
{% if perms.exercises %}
-<div class="container-fluid">
+<div class="row">
<div class="col-md-6">
- <div class="alert alert-success">
- <a href="{% url 'exercise-accept' exercise.id %}">
- <img src="{% static 'images/icons/status-on.svg' %}"
- width="32"
- height="32"
- alt="{% trans 'Accept' %}">
- {% trans "Accept" %}
- </a>
- </div>
+ <a href="{% url 'exercise-accept' exercise.id %}" class="btn btn-default btn-block">
+ <img src="{% static 'images/icons/status-on.svg' %}"
+ width="32"
+ height="32"
+ alt="{% trans 'Accept' %}">
+ {% trans "Accept" %}
+ </a>
</div>
<div class="col-md-6">
- <div class="alert alert-error">
- <a href="{% url 'exercise-decline' exercise.id %}">
- <img src="{% static 'images/icons/status-off.svg' %}"
- width="32"
- height="32"
- alt="{% trans 'Decline' %}">
- {% trans "Decline" %}
- </a>
- </div>
+ <a href="{% url 'exercise-decline' exercise.id %}" class="btn btn-default btn-block">
+ <img src="{% static 'images/icons/status-off.svg' %}"
+ width="32"
+ height="32"
+ alt="{% trans 'Decline' %}">
+ {% trans "Decline" %}
+ </a>
</div>
</div>
{% endif %} {# end check permissions #}
diff --git a/wger/nutrition/templates/ingredient/view.html b/wger/nutrition/templates/ingredient/view.html
index c342c7847..e116e2e27 100644
--- a/wger/nutrition/templates/ingredient/view.html
+++ b/wger/nutrition/templates/ingredient/view.html
@@ -29,26 +29,22 @@ the search.{% endblocktrans %}
{% if perms.exercises %}
<div class="row">
<div class="col-md-6">
- <div class="alert alert-success">
- <a href="{% url 'ingredient-accept' ingredient.id %}">
- <img src="{% static 'images/icons/status-on.svg' %}"
- width="32"
- height="32"
- alt="{% trans 'Accept' %}">
- {% trans "Accept" %}
- </a>
- </div>
+ <a href="{% url 'ingredient-accept' ingredient.id %}" class="btn btn-default btn-block">
+ <img src="{% static 'images/icons/status-on.svg' %}"
+ width="32"
+ height="32"
+ alt="{% trans 'Accept' %}">
+ {% trans "Accept" %}
+ </a>
</div>
<div class="col-md-6">
- <div class="alert alert-error">
- <a href="{% url 'ingredient-decline' ingredient.id %}">
- <img src="{% static 'images/icons/status-off.svg' %}"
- width="32"
- height="32"
- alt="{% trans 'Decline' %}">
- {% trans "Decline" %}
- </a>
- </div>
+ <a href="{% url 'ingredient-decline' ingredient.id %}" class="btn btn-default btn-block">
+ <img src="{% static 'images/icons/status-off.svg' %}"
+ width="32"
+ height="32"
+ alt="{% trans 'Decline' %}">
+ {% trans "Decline" %}
+ </a>
</div>
</div>
{% endif %} {# end check permissions #}