mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
Refactoring Resources/views/CustomFieldsRendering/choice.html.twig : indentation
This commit is contained in:
parent
bfca9baaeb
commit
6af61f71dc
@ -1,23 +1,29 @@
|
|||||||
{% if selected|length > 0 %}
|
{% if selected|length > 0 %}
|
||||||
<ul class="custom_fields choice">
|
<ul class="custom_fields choice">
|
||||||
{%- for choice in choices -%}
|
{%- for choice in choices -%}
|
||||||
{% if choice['slug'] in selected %}{%- set is_selected = true -%}{%- else -%}{%- set is_selected = false -%}{%- endif -%}
|
{% if choice['slug'] in selected %}
|
||||||
{%- if is_selected -%}
|
{%- set is_selected = true -%}
|
||||||
<li class="{% if is_selected or expanded == 1 %} selected {% endif %}">
|
{%- else -%}
|
||||||
{%- if is_selected -%}
|
{%- set is_selected = false -%}
|
||||||
<i class="fa fa-check-square-o"></i>
|
{%- endif -%}
|
||||||
{%- else -%}
|
|
||||||
<i class="fa fa-square-o"></i>
|
{%- if is_selected -%}
|
||||||
{%- endif -%}
|
<li class="{% if is_selected or expanded == 1 %} selected {% endif %}">
|
||||||
{%- if choice['slug'] is not same as('_other') -%}
|
{%- if is_selected -%}
|
||||||
{{ choice['name']|localize_translatable_string }}
|
<i class="fa fa-check-square-o"></i>
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{ choice['name'] }}
|
<i class="fa fa-square-o"></i>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</li>
|
|
||||||
{%- endif -%}
|
{%- if choice['slug'] is not same as('_other') -%}
|
||||||
{%- endfor -%}
|
{{ choice['name']|localize_translatable_string }}
|
||||||
</ul>
|
{%- else -%}
|
||||||
|
{{ choice['name'] }}
|
||||||
|
{%- endif -%}
|
||||||
|
</li>
|
||||||
|
{%- endif -%}
|
||||||
|
{%- endfor -%}
|
||||||
|
</ul>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="custom_fields_choice empty">{{ 'None'|trans }}</div>
|
<div class="custom_fields_choice empty">{{ 'None'|trans }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
Loading…
x
Reference in New Issue
Block a user