{% 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 %}
{% if not layout %}
{% endif %}
{% block controls %}
{% block widget %}
{% if form_display == 'tabular' %}
{% include "arctic/partials/form_field_parts/form_field_tabular.html" %}
{% elif form_display == 'float-label' %}
{% include "arctic/partials/form_field_parts/form_field_float.html" %}
{% else %}
{# default #}
{% include "arctic/partials/form_field_parts/form_field_stacked.html" %}
{% endif %}
{% endblock %}
{% block errors %}
{% for error in field.errors %}
{{ error }}
{% endfor %}
{% endblock %}