8000 minor #8095 Add form_theme in error customization (rubenrubiob) · symfony/symfony-docs@f82712e · GitHub
[go: up one dir, main page]

Skip to content

Commit f82712e

Browse files
committed
minor #8095 Add form_theme in error customization (rubenrubiob)
This PR was submitted for the 3.3 branch but it was merged into the 2.7 branch instead (closes #8095). Discussion ---------- Add form_theme in error customization User form_theme __self in error examples as in other examples of the page. Commits ------- d5c5ff1 Add form_theme in error customization
2 parents ecde568 + d5c5ff1 commit f82712e

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