From 447862e0f5f91aeee1133b5068f72545af0a9b4e Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 20 Apr 2018 17:08:38 +0200 Subject: [PATCH] be more clear about child form to be themed --- form/form_customization.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/form/form_customization.rst b/form/form_customization.rst index c937933956d..e7fac4a2057 100644 --- a/form/form_customization.rst +++ b/form/form_customization.rst @@ -337,7 +337,7 @@ You can also apply a form theme to a specific child of your form: .. code-block:: html+twig - {% form_theme form.children 'form/fields.html.twig' %} + {% form_theme form.a_child_form 'form/fields.html.twig' %} This is useful when you want to have a custom theme for a nested form that's different than the one of your main form. Just specify both your themes: @@ -346,7 +346,7 @@ different than the one of your main form. Just specify both your themes: {% form_theme form 'form/fields.html.twig' %} - {% form_theme form.children 'form/fields_child.html.twig' %} + {% form_theme form.a_child_form 'form/fields_child.html.twig' %} Form Theming in PHP -------------------