Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add correct boostrap classes for checkboxes

Roland Geiderbfb57c611d98
diff --git a/wger/core/templates/tags/render_form_element.html b/wger/core/templates/tags/render_form_element.html
index b990886b8..1ed80a375 100644
--- a/wger/core/templates/tags/render_form_element.html
+++ b/wger/core/templates/tags/render_form_element.html
@@ -15,6 +15,8 @@
<div class="col-md-9">
{% if not field|is_checkbox and not field|is_fileupload %}
{{ field|form_field_add_css:'form-control' }}
+ {% elif field|is_checkbox %}
+ {{ field|form_field_add_css:'checkbox' }}
{% else %}
{{ field }}
{% endif %}