mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-21 09:44:23 +00:00
19 lines
807 B
Twig
19 lines
807 B
Twig
<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'][app.request.locale]|default(choice['name'][locale]|default('Not available in your language'|trans)) }}
|
|
{%- else -%}
|
|
<span class="other">{{ 'Other value'|trans }} :</span> {{ choice['name'] }}
|
|
{%- endif -%}
|
|
</li>
|
|
{%- endif -%}
|
|
{%- endfor -%}
|
|
</ul> |