Skip to content

Commit 8578924

Browse files
committed
Tweaks
1 parent f47dced commit 8578924

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

form/form_customization.rst

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -92,22 +92,23 @@ control over how each form field is rendered, so you can fully customize them:
9292
Form Field Helpers
9393
------------------
9494

95-
The ``form_*()`` helpers render each part of the form field, including all its needed HTML elements. Most developers
96-
like this behavior, but some designers struggle with it, because it hides all the HTML in form themes which are not
97-
easy to manage by them.
98-
99-
That's why some Twig form helpers are available to render the value of each form field part without adding any
100-
HTML around it:
101-
102-
* ``field_name``
103-
* ``field_value``
104-
* ``field_label``
105-
* ``field_help``
106-
* ``field_errors``
107-
* ``field_choices`` (an iterator of the field choices; e.g. for ``<select>``)
108-
109-
When using these helpers, you must write all the HTML contents for all form fields, which some people prefer to better
110-
control the generated HTML without having to deal with form themes:
95+
The ``form_*()`` helpers shown in the previous section render different parts of
96+
the form field, including all its HTML elements. Some developers and designers
97+
struggle with this behavior, because it hides all the HTML elements in form
98+
themes which are not trivial to customize.
99+
100+
That's why Symfony provides other Twig form helpers that render the value of
101+
each form field part without adding any HTML around it:
102+
103+
* ``field_name()``
104+
* ``field_value()``
105+
* ``field_label()``
106+
* ``field_help()``
107+
* ``field_errors()``
108+
* ``field_choices()`` (an iterator for choice fields; e.g. for ``<select>``)
109+
110+
When using these helpers, you must write all the HTML contents for all form
111+
fields, so you no longer have to deal with form themes:
111112

112113
.. code-block:: html+twig
113114

0 commit comments

Comments
 (0)