{% import "_includes/forms" as forms %}
{% set input %}
{% for option in allOptions %}
{{ forms.lightswitch({
on: (option in field.options),
small: true,
name: 'options[]',
value: option
}) }}
{{ option }}
{% endfor %}
{% endset %}
{{ forms.field({
label: "Options"|t('app'),
instructions: "Choose which position options should be available to your field."|t('app'),
}, input) }}