{% load crispy_forms_field %} {% comment %}Removed sr-only class from the field label.{% endcomment %} {% if field.is_hidden %} {{ field }} {% else %} {% if field|is_checkbox %}
{% else %}
{% crispy_field field 'placeholder' field.label 'class' 'form-control' %}
{% endif %} {% endif %}