@@ -113,10 +113,17 @@ fragment needed to render every part of a form:
113
113
* `bootstrap_3_horizontal_layout.html.twig `_, it's similar to the previous theme,
114
114
but the CSS classes applied are the ones used to display the forms horizontally
115
115
(i.e. the label and the widget in the same row).
116
+ * `bootstrap_4_layout.html.twig `_, same as ``bootstrap_3_layout.html.twig ``, but
117
+ updated for `Bootstrap 4 CSS framework `_ styles.
118
+ * `bootstrap_4_horizontal_layout.html.twig `_, same as ``bootstrap_3_horizontal_layout.html.twig ``
119
+ but updated for Bootstrap 4 styles.
116
120
* `foundation_5_layout.html.twig `_, wraps each form field inside a ``<div> `` element
117
121
with the appropriate CSS classes to apply the default `Foundation CSS framework `_
118
122
styles.
119
123
124
+ .. versionadded :: 3.4
125
+ The Bootstrap 4 form themes were introduced in Symfony 3.4.
126
+
120
127
.. caution ::
121
128
122
129
When you use the Bootstrap form themes and render the fields manually,
@@ -211,7 +218,7 @@ this folder.
211
218
In this example, the customized fragment name is ``integer_widget `` because
212
219
you want to override the HTML ``widget `` for all ``integer `` field types. If
213
220
you need to customize ``textarea `` fields, you would customize ``textarea_widget ``.
214
-
221
+
215
222
The ``integer `` part comes from the class name: ``IntegerType `` becomes ``integer ``,
216
223
based on a standard.
217
224
@@ -1174,6 +1181,9 @@ more details about this concept in Twig, see :ref:`twig-reference-form-variables
1174
1181
.. _`form_table_layout.html.twig` : https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/form_table_layout.html.twig
1175
1182
.. _`bootstrap_3_layout.html.twig` : https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig
1176
1183
.. _`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
1177
- .. _`Bootstrap 3 CSS framework` : http://getbootstrap.com/
1184
+ .. _`bootstrap_4_layout.html.twig` : https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig
1185
+ .. _`bootstrap_4_horizontal_layout.html.twig` : https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_horizontal_layout.html.twig
1186
+ .. _`Bootstrap 3 CSS framework` : https://getbootstrap.com/docs/3.3/
1187
+ .. _`Bootstrap 4 CSS framework` : https://getbootstrap.com/docs/4.0/
1178
1188
.. _`foundation_5_layout.html.twig` : https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Twig/Resources/views/Form/foundation_5_layout.html.twig
1179
1189
.. _`Foundation CSS framework` : http://foundation.zurb.com/
0 commit comments