Template source: respons_form_field.html

{% load widget_tweaks %} {% if field.is_hidden %} {{ field }} {% else %} {% comment %} Make the field widget type available to templates so we can mark-up checkboxes differently to other widgets. {% endcomment %} {% block control_group %} <div class="form-group {% if field.errors %}has-error{% endif %}"> {% block label %} {% if not nolabel and field.widget_type != 'CheckboxInput' %} <label for="{{ field.auto_id }}" class="{% if style|default:"stacked" != 'stacked' %}col-sm-4{% endif%} control-label text-muted {% if style|default:"not-small-font" == 'col-md-3 col-sm-3 col-xs-3' %}small-font{% endif%} {% if field.field.required %} required{% endif %}"> {{ field.label|safe }} </label> {% endif %} {% endblock %} {% block controls %} <div class="{% if style|default:"stacked" != 'stacked' %}col-sm-7{% endif %}"> {% render_field field class+="form-control notSoBroadField" %} {% comment %} {% render_field field class+="form-control" %} {% block widget %} {% if field.widget_type == 'CheckboxInput' %} <label for="{{ field.auto_id }}" class="checkbox {% if field.field.required %}required{% endif %}"> {{ field.label|safe }} {% render_field field class+="form-control" %} </label> {% else %} {% render_field field class+="form-control" %} {% endif %} {% endblock %} {% endcomment %} {% block errors %} {% for error in field.errors %} <span class="error-block"><i class="icon-exclamation-sign"></i> {{ error }}</span> {% endfor %} {% endblock %} {% block help_text %} {% if field.help_text %} <span class='help-block'> {# We allow HTML within form help fields #} {{ field.help_text|safe }} </span> {% endif %} {% endblock %} </div> {% endblock %} </div> {% endblock %} {% endif %}