8000 be more clear about child form to be themed · symfony/symfony-docs@447862e · GitHub
[go: up one dir, main page]

Skip to content

Commit 447862e

Browse files
committed
be more clear about child form to be themed
1 parent c02348e commit 447862e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

form/form_customization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ You can also apply a form theme to a specific child of your form:
337337

338338
.. code-block:: html+twig
339339

340-
{% form_theme form.children 'form/fields.html.twig' %}
340+
{% form_theme form.a_child_form 'form/fields.html.twig' %}
341341

342342
This is useful when you want to have a custom theme for a nested form that's
343343
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:
346346

347347
{% form_theme form 'form/fields.html.twig' %}
348348

349-
{% form_theme form.children 'form/fields_child.html.twig' %}
349+
{% form_theme form.a_child_form 'form/fields_child.html.twig' %}
350350

351351
Form Theming in PHP
352352
-------------------

0 commit comments

Comments
 (0)
0