Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Render add link as a green button

Roland Geider0c2aca589965
diff --git a/wger/weight/templates/weight_overview.html b/wger/weight/templates/weight_overview.html
index c94489078..602a01877 100644
--- a/wger/weight/templates/weight_overview.html
+++ b/wger/weight/templates/weight_overview.html
@@ -70,11 +70,6 @@ $(document).ready(function () {
</table>
{% endif %}
<br/>
-<p>
-<a href="{% url 'weight:add' %}"
- {% auto_link_css flavour "wger-modal-dialog" %}
- id="add-weight-entry">{% trans "Add weight entry" %}</a>
-</p>
<p>
<em>{% trans "You can click on a value on the chart to edit it. "%}</em>
@@ -88,6 +83,13 @@ $(document).ready(function () {
Side bar
-->
{% block sidebar %}
+<p>
+ <a href="{% url 'weight:add' %}" class="btn btn-success btn-sm wger-modal-dialog">
+ {% trans "Add weight entry" %}
+ </a>
+</p>
+
+
<h4>{% trans "Filter options" %}</h4>
<p>{% blocktrans %}
Use the second chart to pan or zoom by clicking and dragging the selection. Clicking