{% load libs_tags %} {% get_form_field_type field as field_type %} {% if placeholder %} {% add_form_widget_attr field 'placeholder' placeholder replace=1 as field %} {% endif %}
{% if not hide_label and "CheckboxInput" not in field_type %} {% elif horizontal and "CheckboxInput" in field_type %} {% endif %} {% if horizontal %}
{% endif %} {% if "CheckboxInput" in field_type %}
{% else %} {% add_form_widget_attr field 'class' 'form-control' as field %} {{ field }} {% endif %} {% if field.errors %} {% for error in field.errors %}{{ error }}
{% endfor %}
{% endif %} {% if horizontal %}
{% endif %}