From 481ee6a89626c8dbf12351a747f235f7c02c5035 Mon Sep 17 00:00:00 2001 From: Jeroen van den Nieuwenhuisen Date: Wed, 28 Oct 2020 14:06:53 +0100 Subject: [PATCH] Make it possible to add extra form row container attributes --- src/Resources/views/Form/form_admin_fields.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/views/Form/form_admin_fields.html.twig b/src/Resources/views/Form/form_admin_fields.html.twig index 23b028d8c17..0b35a82a641 100644 --- a/src/Resources/views/Form/form_admin_fields.html.twig +++ b/src/Resources/views/Form/form_admin_fields.html.twig @@ -357,7 +357,7 @@ file that was distributed with this source code. {% block form_row %} {% set show_label = show_label ?? true %} -
+ {% if sonata_admin.field_description.options is defined %} {% set label = sonata_admin.field_description.options.name|default(label) %} {% endif %}