Self hosted FLOSS fitness/workout, nutrition and weight tracker
Don't render the column divs for hidden elements
Roland Geider1312865f5796
diff --git a/wger/manager/templates/set/formset.html b/wger/manager/templates/set/formset.htmlindex 43347108b..b983263db 100644--- a/wger/manager/templates/set/formset.html+++ b/wger/manager/templates/set/formset.html@@ -8,7 +8,10 @@<div class="container-fluid"><div class="row">{% for i in field %}- <div class="col-md-3">+ {% if not i.is_hidden %}+ <div class="col-md-4">+ {% endif %}+{# field label only for first loop, as a header #}{% if forloop.parentloop.first and not i.is_hidden %}{{ i.label }}@@ -20,7 +23,10 @@{% else %}{{i|form_field_add_css:'form-control'}}{% endif %}++ {% if not i.is_hidden %}</div>+ {% endif %}{% endfor %}</div></div>