8000 minor #13685 Update form_customization.rst (ThomasLandauer) · symfony/symfony-docs@ca80512 · GitHub
[go: up one dir, main page]

Skip to content

Commit ca80512

Browse files
committed
minor #13685 Update form_customization.rst (ThomasLandauer)
This PR was squashed before being merged into the 4.4 branch. Discussion ---------- Update form_customization.rst Follow up of #13684 This is meant to be a caution box and a link to https://symfony.com/doc/4.4/form/bootstrap4.html#error-messages - if I didn't get it right, please fix it :-) Commits ------- 50dfc90 Update form_customization.rst
2 parents f484056 + 50dfc90 commit ca80512

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

form/bootstrap4.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ If you prefer to apply the Bootstrap styles on a form to form basis, include the
7777
{{ form(form) }}
7878
{% endblock %}
7979

80+
.. _reference-forms-bootstrap-error-messages:
81+
8082
Error Messages
8183
--------------
8284

form/form_customization.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ Renders any errors for the given field.
255255
{# render any "global" errors not associated to any form field #}
256256
{{ form_errors(form) }}
257257
258+
.. caution::
259+
260+
In the Bootstrap 4 form theme, ``form_errors()`` is already included
261+
in ``form_label()``, see ":ref:`reference-forms-bootstrap-error-messages`"
4B5D 262+
258263
.. _reference-forms-twig-widget:
259264

260265
form_widget(form_view, variables)

0 commit comments

Comments
 (0)
0