Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ file that was distributed with this source code.
style="display:none;"
{% endif %}
>
{{ nested_field.vars.label|trans({}, nested_field.vars['sonata_admin'].admin.translationDomain
|default(nested_field.vars.translation_domain)
) }}
{% if nested_field.vars.translation_domain is same as(false) %}
{{ nested_field.vars.label }}
{% else %}
{% set translationDomain = nested_field.vars.translation_domain|default(nested_field.vars['sonata_admin'].admin.translationDomain) %}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At first sight, there is no other variable using camel case in this file, excepting this property:

sonata_admin.field_description.associationadmin.formfielddescriptions[field_name].translationDomain

{{ nested_field.vars.label|trans({}, translationDomain) }}
{% endif %}
</th>
{% endif %}
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@ file that was distributed with this source code.
<div>
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
{% for name, form_group in associationAdmin.formgroups %}
{% for form_group in associationAdmin.formgroups %}
<li class="{% if loop.first %}active{% endif %}">
<a
href="#{{ id }}_{{ loop.parent.loop.index }}_{{ loop.index }}"
data-toggle="tab"
>
<i class="icon-exclamation-sign has-errors hide"></i>
{{ form_group.label|trans({}, form_group.translation_domain|default(associationAdmin.translationDomain)) }}
{% if form_group.translation_domain is same as(false) %}
{{ form_group.label }}
{% else %}
{% set translationDomain = form_group.translation_domain|default(associationAdmin.translationDomain) %}
{{ form_group.label|trans({}, translationDomain) }}
{% endif %}
</a>
</li>
{% endfor %}
Expand Down