Skip to content

[Form] Mentioned the form theme for Foundation 6 #13164

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 1 commit into from
Feb 17, 2020
Merged
Changes from all commits
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
10 changes: 9 additions & 1 deletion form/form_themes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,14 @@ in a single Twig template and they are enabled in the
``bootstrap_3_horizontal_layout.html.twig`` but updated for Bootstrap 4 styles.
* `foundation_5_layout.html.twig`_, wraps each form field inside a ``<div>``
element with the appropriate CSS classes to apply the default styles of the
`Foundation CSS framework`_.
version 5 of `Foundation CSS framework`_.
* `foundation_6_layout.html.twig`_, wraps each form field inside a ``<div>``
element with the appropriate CSS classes to apply the default styles of the
version 6 of `Foundation CSS framework`_.

.. versionadded:: 5.1

The ``foundation_6_layout.html.twig`` theme was introduced in Symfony 5.1.

.. tip::

Expand Down Expand Up @@ -599,6 +606,7 @@ is a collection of fields (e.g. a whole form), and not just an individual field:
.. _`Bootstrap 3 CSS framework`: https://getbootstrap.com/docs/3.3/
.. _`Bootstrap 4 CSS framework`: https://getbootstrap.com/docs/4.1/
.. _`foundation_5_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/foundation_5_layout.html.twig
.. _`foundation_6_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/foundation_6_layout.html.twig
.. _`Foundation CSS framework`: http://foundation.zurb.com/
.. _`Twig "use" tag`: https://twig.symfony.com/doc/2.x/tags/use.html
.. _`Twig parent() function`: https://twig.symfony.com/doc/2.x/functions/parent.html