8000 [Form] Document disabling the usage of globally defined form themes by emodric · Pull Request #8495 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Form] Document disabling the usage of globally defined form themes #8495

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

Merged
merged 2 commits into from
Nov 10, 2017
Merged
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
Minor reword
  • Loading branch information
javiereguiluz authored Oct 29, 2017
commit 14ef7ae628f762433c17bafe8c7b94682a765669
9 changes: 5 additions & 4 deletions form/form_customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,11 @@ themes:

.. caution::

When using the ``only`` keyword, form themes shipped with Symfony
(``form_div_layout.html.twig`` and others) will not be used, so to render your
forms correcly, you need to either provide the base form theme yourself, or
``use`` one of the built in form themes from your own theme:
When using the ``only`` keyword, none of Symfony's built-in form themes
(``form_div_layout.html.twig``, etc.) will be applied. In order to render
your forms correctly, you need to either provide a full-featured form theme
yourself, or extend one of the built-in form themes with Twig's ``use``
keyword instead of ``extends`` to reuse the original theme contents.

.. code-block:: html+twig

Expand Down
0