Refactoring Resources/views/CustomFieldsRendering/choice.html.twig : indentation

This commit is contained in:
Marc Ducobu 2015-10-22 15:07:38 +02:00
parent bfca9baaeb
commit 6af61f71dc

View File

@ -1,7 +1,12 @@
{% 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 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 -%}
@ -9,6 +14,7 @@
{%- else -%}
<i class="fa fa-square-o"></i>&nbsp;
{%- endif -%}
{%- if choice['slug'] is not same as('_other') -%}
{{ choice['name']|localize_translatable_string }}
{%- else -%}