{% if field.options %}
<fieldset role="group"
  {% if field.label %}
  aria-label="{{ field.label|striptags }}"
  {% endif %}
  >
  {% if field.label %}
     <legend class="breakdance-form-field__label">{{ field.label }}{{ field.advanced.required ? '<span class="breakdance-form-field__required">*</span>' : '' }}</legend>
  {% endif %}
  {% for option in field.options %}
      <div class="breakdance-form-checkbox">
          <input
              type="checkbox"
              name="{{ field.name }}{{ loop.length > 1 ? '[]' }}"
              value="{{ option.value ?? option.label | escape }}"
              id="{{ field.advanced.id }}-{{ loop.index }}"
              {{ option.selected ? 'checked' }}
              {% if field.advanced.conditional %}
                {{ macros.conditionalFormFieldAttributes(field.advanced.condition) }}
              {% endif %}
          >
          <label class="breakdance-form-checkbox__text" for="{{ field.advanced.id }}-{{ loop.index }}">{{ option.label }}</label>
      </div>
  {% endfor %}
</fieldset>
{% endif %}

