Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Show the 'optional' label in formsets

Roland Geider4a7478395135
diff --git a/wger/manager/templates/set/formset.html b/wger/manager/templates/set/formset.html
index 24b56954d..ba8b2e2b9 100644
--- a/wger/manager/templates/set/formset.html
+++ b/wger/manager/templates/set/formset.html
@@ -19,6 +19,10 @@
{% if forloop.parentloop.first %}
<div class="col-xs-4">
{{ i.label }}
+ {% if not i.field.required %}
+ <br>
+ <span style="font-size:90%;">— <em>{% trans "Optional" %}</em></span>
+ {% endif %}
</div>
{% endif %}
{% endif %}