Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add bootstrap classes for checkboxes in formset
Roland Geider9a8d59d4b450
diff --git a/wger/manager/templates/set/formset.html b/wger/manager/templates/set/formset.htmlindex 327336910..43347108b 100644--- a/wger/manager/templates/set/formset.html+++ b/wger/manager/templates/set/formset.html@@ -9,10 +9,17 @@<div class="row">{% for i in field %}<div class="col-md-3">+ {# field label only for first loop, as a header #}{% if forloop.parentloop.first and not i.is_hidden %}{{ i.label }}{% endif %}- {{i|form_field_add_css:'form-control'}}++ {# Field elements #}+ {% if i|is_checkbox %}+ {{ i|form_field_add_css:'checkbox' }}+ {% else %}+ {{i|form_field_add_css:'form-control'}}+ {% endif %}</div>{% endfor %}</div>