8000 Add form_theme in error customization · symfony/symfony-docs@d5c5ff1 · GitHub
[go: up one dir, main page]

Skip to content

Commit d5c5ff1

Browse files
rubenrubiobxabbuh
authored andcommitted
Add form_theme in error customization
User form_theme __self in error examples as in other examples of the page.
1 parent ecde568 commit d5c5ff1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

form/form_customization.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,8 @@ and customize the ``form_errors`` fragment.
866866

867867
.. code-block:: html+twig
868868

869+
{% form_theme form _self %}
870+
869871
{# form_errors.html.twig #}
870872
{% block form_errors %}
871873
{% spaceless %}
@@ -926,6 +928,8 @@ fields (e.g. a whole form), and not just an individual field.
926928

927929
.. code-block:: html+twig
928930

931+
{% form_theme form _self %}
932+
929933
{# form_errors.html.twig #}
930934
{% block form_errors %}
931935
{% spaceless %}

0 commit comments

Comments
 (0)
0