{% set is_inline = inline if inline is defined else (not in_grid and opciones|length <= 3 and (not label or label|length < 50)) %}
{% if label %} {% endif %}
{% for opt in opciones %} {% set opt_value = opt.value if opt.value is defined else opt.valor if opt.valor is defined else opt.label %} {% set sel_list = seleccionados if seleccionados is defined and seleccionados is not none else (valores_seleccionados if valores_seleccionados is defined and valores_seleccionados is not none else []) %} {% set is_checked = opt.checked or (seleccionado is not none and opt_value == seleccionado) or (sel_list and (opt_value in sel_list or (opt_value|string) in sel_list)) %} {% if interactive|default(True) %}
{{ opt.label }}
{% else %}
{% if is_checked %}✓{% endif %} {{ opt.label }}
{% endif %} {% endfor %}