Skip to content

Commit

Permalink
feature symfony#5702 Added a reference to the Foundation form theme (…
Browse files Browse the repository at this point in the history
…totophe)

This PR was squashed before being merged into the 2.8 branch (closes symfony#5702).

Discussion
----------

Added a reference to the Foundation form theme

| Q | A |
|---|---|
| Doc fix? | no |
| New docs? | yes |
| Applies to | N/A |

See pull request: symfony/symfony#12587

Commits
-------

23c7798 Added a reference to the Foundation form theme
  • Loading branch information
xabbuh committed Oct 3, 2015
2 parents 4d63c3a + 23c7798 commit db48bf7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cookbook/form/form_customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ fragment needed to render every part of a form:
* `bootstrap_3_horizontal_layout.html.twig`_, it's similar to the previous theme,
but the CSS classes applied are the ones used to display the forms horizontally
(i.e. the label and the widget in the same row).
* `foundation_5_layout.html.twig`_, wraps each form field inside a ``<div>`` element
with the appropriate CSS classes to apply the default `Foundation CSS framework`_
styles.

.. caution::

Expand Down Expand Up @@ -1087,3 +1090,5 @@ more details about this concept in Twig, see :ref:`twig-reference-form-variables
.. _`bootstrap_3_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig
.. _`bootstrap_3_horizontal_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_horizontal_layout.html.twig
.. _`Bootstrap 3 CSS framework`: http://getbootstrap.com/
.. _`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 CSS framework`: http://foundation.zurb.com/

0 comments on commit db48bf7

Please sign in to comment.