{% extends 'forms/' ~ layout|default('field') ~ '.html.twig' %} {% block input %} {% for key, text in field.options %} {% set checked = (field.use == 'keys' ? value[key] : key in value) %} {% set childName = name|fieldName ~ '[' ~ (field.use == 'keys' ? key : '') ~ ']' %} {% set key = (field.use == 'keys' ? '1' : key) %} {% endfor %} {% endblock %}