{%
  set classes = [
    'form-group',
    title_display not in ['after', 'before'] ? 'form-no-label',
    disabled == 'disabled' ? 'form-disabled',
    errors ? 'error has-error',
  ]
%}{%
  set description_classes = [
    'help-block',
    description_display == 'invisible' ? 'visually-hidden',
  ]
%}

<div{{ attributes.addClass(classes).removeClass('form-inline') }}>

  {% if prefix is not empty %}
    {{ prefix }}
  {% endif %}

  <label class="control-label switch">
    {{ label }}
  </label>


  {% if description.content %}
    <div{{ description.attributes.addClass(description_classes) }}>
      {{ description.content }}
    </div>
  {% endif %}


  {% if suffix is not empty %}
    {{ suffix }}
  {% endif %}

</div>
