Skip to content

Commit 244c88f

Browse files
committed
minor #16226 [Form] Upgrade Bootstrap 4 theme references to Bootstrap 5 theme (gnito-org)
This PR was merged into the 5.3 branch. Discussion ---------- [Form] Upgrade Bootstrap 4 theme references to Bootstrap 5 theme <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 846e5b1 Upgrade Bootstrap 4 theme references to Bootstrap 5 theme
2 parents 47d6c3b + 846e5b1 commit 244c88f

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

form/form_customization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Renders any errors for the given field.
258258
259259
.. caution::
260260

261-
In the :ref:`error messages of Bootstrap 4 Form Theme <reference-forms-bootstrap4-error-messages>`,
261+
In the :ref:`error messages of Bootstrap 5 Form Theme <reference-forms-bootstrap5-error-messages>`,
262262
``form_errors()`` is already included in ``form_label()``.
263263

264264
.. _reference-forms-twig-widget:

form/form_themes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ want to use another theme for all the forms of your app, configure it in the
7676
7777
# config/packages/twig.yaml
7878
twig:
79-
form_themes: ['bootstrap_4_horizontal_layout.html.twig']
79+
form_themes: ['bootstrap_5_horizontal_layout.html.twig']
8080
# ...
8181
8282
.. code-block:: xml
@@ -91,7 +91,7 @@ want to use another theme for all the forms of your app, configure it in the
9191
http://symfony.com/schema/dic/twig https://symfony.com/schema/dic/twig/twig-1.0.xsd">
9292
9393
<twig:config>
94-
<twig:form-theme>bootstrap_4_horizontal_layout.html.twig</twig:form-theme>
94+
<twig:form-theme>bootstrap_5_horizontal_layout.html.twig</twig:form-theme>
9595
<!-- ... -->
9696
</twig:config>
9797
</container>
@@ -103,7 +103,7 @@ want to use another theme for all the forms of your app, configure it in the
103103
104104
return static function (TwigConfig $twig) {
105105
$twig->formThemes([
106-
'bootstrap_4_horizontal_layout.html.twig',
106+
'bootstrap_5_horizontal_layout.html.twig',
107107
]);
108108
109109
// ...

forms.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,16 +320,16 @@ suitable for being rendered in an HTML form.
320320

321321
As short as this rendering is, it's not very flexible. Usually, you'll need more
322322
control about how the entire form or some of its fields look. For example, thanks
323-
to the :doc:`Bootstrap 4 integration with Symfony forms </form/bootstrap4>` you
324-
can set this option to generate forms compatible with the Bootstrap 4 CSS framework:
323+
to the :doc:`Bootstrap 5 integration with Symfony forms </form/bootstrap5>` you
324+
can set this option to generate forms compatible with the Bootstrap 5 CSS framework:
325325

326326
.. configuration-block::
327327

328328
.. code-block:: yaml
329329
330330
# config/packages/twig.yaml
331331
twig:
332-
form_themes: ['bootstrap_4_layout.html.twig']
332+
form_themes: ['bootstrap_5_layout.html.twig']
333333
334334
.. code-block:: xml
335335
@@ -344,7 +344,7 @@ can set this option to generate forms compatible with the Bootstrap 4 CSS framew
344344
https://symfony.com/schema/dic/twig/twig-1.0.xsd">
345345
346346
<twig:config>
347-
<twig:form-theme>bootstrap_4_layout.html.twig</twig:form-theme>
347+
<twig:form-theme>bootstrap_5_layout.html.twig</twig:form-theme>
348348
<!-- ... -->
349349
</twig:config>
350350
</container>
@@ -355,13 +355,13 @@ can set this option to generate forms compatible with the Bootstrap 4 CSS framew
355355
use Symfony\Config\TwigConfig;
356356
357357
return static function (TwigConfig $twig) {
358-
$twig->formThemes(['bootstrap_4_layout.html.twig']);
358+
$twig->formThemes(['bootstrap_5_layout.html.twig']);
359359
360360
// ...
361361
};
362362
363363
The :ref:`built-in Symfony form themes <symfony-builtin-forms>` include
364-
Bootstrap 3 and 4 as well as Foundation 5 and 6. You can also
364+
Bootstrap 3, 4 and 5, Foundation 5 and 6, as well as Tailwind 2. You can also
365365
:ref:`create your own Symfony form theme <create-your-own-form-theme>`.
366366

367367
In addition to form themes, Symfony allows you to

reference/configuration/twig.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ all the forms of the application:
182182
183183
# config/packages/twig.yaml
184184
twig:
185-
form_themes: ['bootstrap_4_layout.html.twig', 'form/my_theme.html.twig']
185+
form_themes: ['bootstrap_5_layout.html.twig', 'form/my_theme.html.twig']
186186
# ...
187187
188188
.. code-block:: xml
@@ -197,7 +197,7 @@ all the forms of the application:
197197
http://symfony.com/schema/dic/twig https://symfony.com/schema/dic/twig/twig-1.0.xsd">
198198
199199
<twig:config>
200-
<twig:form-theme>bootstrap_4_layout.html.twig</twig:form-theme>
200+
<twig:form-theme>bootstrap_5_layout.html.twig</twig:form-theme>
201201
<twig:form-theme>form/my_theme.html.twig</twig:form-theme>
202202
<!-- ... -->
203203
</twig:config>
@@ -210,7 +210,7 @@ all the forms of the application:
210210
211211
return static function (TwigConfig $twig) {
212212
$twig->formThemes([
213-
'bootstrap_4_layout.html.twig',
213+
'bootstrap_5_layout.html.twig',
214214
'form/my_theme.html.twig',
215215
]);
216216

0 commit comments

Comments
 (0)