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