8000 Simplified the form theming docs by javiereguiluz · Pull Request #10926 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Simplified the form theming docs #10926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed some issues
  • Loading branch information
javiereguiluz committed Jan 25, 2019
commit 01600c751990f9a82f62591241ebc8bf59bea40e
2 changes: 1 addition & 1 deletion components/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ between Twig and several Symfony components:

The TwigBridge integration provides you with several
:ref:`Twig Functions <reference-form-twig-functions-variables>`
that help you render the HTML widget, label, help and error for each field
that help you render the HTML widget, label, help and errors for each field
(as well as a few other things). To configure the integration, you'll need
to bootstrap or access Twig and add the :class:`Symfony\\Bridge\\Twig\\Extension\\FormExtension`::

Expand Down
5 changes: 3 additions & 2 deletions form/create_custom_field_type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ shipping options.
Creating a Template for the Field
---------------------------------

Each field type is rendered by a template fragment, which is determined in part by
the class name of your type. For more information, see :ref:`form-customization-form-themes`.
Each field type is rendered by a template fragment whose name is determined in
part by the class name of your type. Read the :ref:`from fragment naming <form-fragment-naming>`
rules for more details.

.. note::

Expand Down
2 changes: 1 addition & 1 deletion form/form_themes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Symfony and how to create your own custom form theme.
Symfony Built-In Form Themes
----------------------------

Symfony comes with several **built-in form themes** that makes your forms look
Symfony comes with several **built-in form themes** that make your forms look
great when using some of the most popular CSS frameworks. Each theme is defined
in a single Twig template:

Expand Down
2 changes: 1 addition & 1 deletion reference/configuration/twig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ all the forms of the application:

# config/packages/twig.yaml
twig:
form_themes: ['bootstrap_4_layout.html.twig', form/my_theme.html.twig']
form_themes: ['bootstrap_4_layout.html.twig', 'form/my_theme.html.twig']
# ...

.. code-block:: xml
Expand Down
0