mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-19 08:44:24 +00:00
23 lines
793 B
Twig
23 lines
793 B
Twig
{% if selected|length > 0 %}
|
|
<ul class="custom_fields choice">
|
|
{%- for choice in choices -%}
|
|
{% if choice['slug'] in selected %}{%- set is_selected = true -%}{%- else -%}{%- set is_selected = false -%}{%- endif -%}
|
|
{%- if is_selected -%}
|
|
<li class="{% if is_selected or expanded == 1 %} selected {% endif %}">
|
|
{%- if is_selected -%}
|
|
<i class="fa fa-check-square-o"></i>
|
|
{%- else -%}
|
|
<i class="fa fa-square-o"></i>
|
|
{%- endif -%}
|
|
{%- if choice['slug'] is not same as('_other') -%}
|
|
{{ choice['name']|localize_translatable_string }}
|
|
{%- else -%}
|
|
{{ choice['name'] }}
|
|
{%- endif -%}
|
|
</li>
|
|
{%- endif -%}
|
|
{%- endfor -%}
|
|
</ul>
|
|
{% else %}
|
|
<div class="custom_fields_choice empty">{{ 'None'|trans }}</div>
|
|
{% endif %} |