{% set errors = errors | default([]) %}
{% if isTwoCol|default(false) %}<div class="col-md-6">{% endif %}
<div class="custom-checkbox form-check {{ hasFormGroup|default(true) ? 'form-group' : '' }} {{ (errors | length > 0) ? 'has-error': '' }} {{ disabled|default(false) ? 'disabled' : '' }} {{ styleModifier|default('') }}">
<label>
<input
class="custom-checkbox__input form-check-input {{ (errors | length > 0 )? 'is-invalid': '' }} {{ inputModifier|default('') }}"
type="checkbox"
name="{{ name }}"
id="{{ id }}"
value="{{ value|default('checked') }}"
{{ required|default(false) ? 'required' : '' }}
{{ disabled|default(false) ? 'disabled' : '' }}
{{ checked|default(false) ? 'checked' : '' }}
{% for key, value in inputAttributes | default([]) %}
{{ key }}="{{ value }}"
{% endfor %}
>
<span class="custom-checkbox__box icon icon-checkmark"></span>
<span class="custom-checkbox__text form-check-label {{ textModifier | default(null) }}">
{{ label | raw }}
{% if required|default(false) %}
{% if not noRequireHelper|default(false) %}
<span title="Pflichtfeld" aria-label="Pflichtfeld">*</span>
{% endif %}
{% endif %}
</span>
{{ include('Form/Includes/form-errors.html.twig', _context) }}
{{ include('Form/Includes/form-control-help-text.html.twig', _context) }}
</label>
</div>
{% if isTwoCol|default(false) %}</div>{% endif %}