Skip to content

Commit

Permalink
Remove extra spaces about field`s label
Browse files Browse the repository at this point in the history
  • Loading branch information
kirya-dev committed Aug 27, 2020
1 parent a6961b8 commit 28d1d32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Resources/views/Form/form_admin_fields.html.twig
Expand Up @@ -154,13 +154,13 @@ file that was distributed with this source code.
{% endif %}

<label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
{% if translation_domain is same as(false) %}
{%- if translation_domain is same as(false) -%}
{{- label -}}
{% elseif not sonata_admin.admin %}
{%- elseif not sonata_admin.admin -%}
{{- label|trans(label_translation_parameters, translation_domain) -}}
{% else %}
{{ label|trans(label_translation_parameters, sonata_admin.field_description.translationDomain ?: admin.translationDomain) }}
{% endif %}
{%- else -%}
{{- label|trans(label_translation_parameters, sonata_admin.field_description.translationDomain ?: admin.translationDomain) -}}
{%- endif -%}
</label>
{% endif %}
{% endapply %}
Expand Down

0 comments on commit 28d1d32

Please sign in to comment.