From af3b4b1dc57264ac032d7cee147f8db0e8ab5c4c Mon Sep 17 00:00:00 2001 From: Jean-Christophe Cuvelier Date: Fri, 18 Sep 2015 13:19:08 +0200 Subject: [PATCH 1/2] Added a reference to the Foundation form theme --- cookbook/form/form_customization.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cookbook/form/form_customization.rst b/cookbook/form/form_customization.rst index f56639d750c..230644916c5 100644 --- a/cookbook/form/form_customization.rst +++ b/cookbook/form/form_customization.rst @@ -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_layout.html.twig`_, wraps each form field inside a ``
`` element + with the appropriate CSS classes to apply the default `Foundation CSS framework`_ + styles. .. caution:: @@ -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_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/foundation_layout.html.twig +.. _`Foundation CSS framework`: http://foundation.zurb.com/ From c7e68d7a1468eeb28621855bcafe074f9fe4de0f Mon Sep 17 00:00:00 2001 From: Jean-Christophe Cuvelier Date: Wed, 23 Sep 2015 16:02:04 +0200 Subject: [PATCH 2/2] Impact change on the proposal for Foundation alternative in Symfony --- cookbook/form/form_customization.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/form/form_customization.rst b/cookbook/form/form_customization.rst index 230644916c5..f56e479944b 100644 --- a/cookbook/form/form_customization.rst +++ b/cookbook/form/form_customization.rst @@ -113,7 +113,7 @@ 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_layout.html.twig`_, wraps each form field inside a ``
`` element +* `foundation_5_layout.html.twig`_, wraps each form field inside a ``
`` element with the appropriate CSS classes to apply the default `Foundation CSS framework`_ styles. @@ -1090,5 +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_layout.html.twig`: https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/foundation_layout.html.twig +.. _`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/