|
@@ -25,11 +25,7 @@ file that was distributed with this source code.
|
|
|
{% if field_name == '_delete' %}
|
|
|
<th>{% trans from 'SonataAdminBundle' %}action_delete{% endtrans %}</th>
|
|
|
{% else %}
|
|
|
- {% if nested_field.get('sonata_admin').field_description.options.name is defined %}
|
|
|
- <th>{{ nested_field.get('sonata_admin').field_description.options.name }}</th>
|
|
|
- {% else %}
|
|
|
- <th>{{ field_name|trans }}</th>
|
|
|
- {% endif %}
|
|
|
+ <th>{{ nested_field.get('sonata_admin').admin.trans(nested_field.vars.label) }}</th>
|
|
|
{% endif %}
|
|
|
{% endfor %}
|
|
|
</tr>
|