From 846e5b1219cab53f154f9d23b98b9869f8191486 Mon Sep 17 00:00:00 2001 From: gnito-org <70450336+gnito-org@users.noreply.github.com> Date: Sun, 12 Dec 2021 07:55:59 -0400 Subject: [PATCH] Upgrade Bootstrap 4 theme references to Bootstrap 5 theme --- form/form_customization.rst | 2 +- form/form_themes.rst | 6 +++--- forms.rst | 12 ++++++------ reference/configuration/twig.rst | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/form/form_customization.rst b/form/form_customization.rst index 120f4d52178..78434c258d7 100644 --- a/form/form_customization.rst +++ b/form/form_customization.rst @@ -258,7 +258,7 @@ Renders any errors for the given field. .. caution:: - In the :ref:`error messages of Bootstrap 4 Form Theme `, + In the :ref:`error messages of Bootstrap 5 Form Theme `, ``form_errors()`` is already included in ``form_label()``. .. _reference-forms-twig-widget: diff --git a/form/form_themes.rst b/form/form_themes.rst index 8c32184afb0..d8a264ede7c 100644 --- a/form/form_themes.rst +++ b/form/form_themes.rst @@ -76,7 +76,7 @@ want to use another theme for all the forms of your app, configure it in the # config/packages/twig.yaml twig: - form_themes: ['bootstrap_4_horizontal_layout.html.twig'] + form_themes: ['bootstrap_5_horizontal_layout.html.twig'] # ... .. code-block:: xml @@ -91,7 +91,7 @@ want to use another theme for all the forms of your app, configure it in the http://symfony.com/schema/dic/twig https://symfony.com/schema/dic/twig/twig-1.0.xsd"> - bootstrap_4_horizontal_layout.html.twig + bootstrap_5_horizontal_layout.html.twig @@ -103,7 +103,7 @@ want to use another theme for all the forms of your app, configure it in the return static function (TwigConfig $twig) { $twig->formThemes([ - 'bootstrap_4_horizontal_layout.html.twig', + 'bootstrap_5_horizontal_layout.html.twig', ]); // ... diff --git a/forms.rst b/forms.rst index 74fef0b6600..aa7ae514213 100644 --- a/forms.rst +++ b/forms.rst @@ -320,8 +320,8 @@ suitable for being rendered in an HTML form. As short as this rendering is, it's not very flexible. Usually, you'll need more control about how the entire form or some of its fields look. For example, thanks -to the :doc:`Bootstrap 4 integration with Symfony forms ` you -can set this option to generate forms compatible with the Bootstrap 4 CSS framework: +to the :doc:`Bootstrap 5 integration with Symfony forms ` you +can set this option to generate forms compatible with the Bootstrap 5 CSS framework: .. configuration-block:: @@ -329,7 +329,7 @@ can set this option to generate forms compatible with the Bootstrap 4 CSS framew # config/packages/twig.yaml twig: - form_themes: ['bootstrap_4_layout.html.twig'] + form_themes: ['bootstrap_5_layout.html.twig'] .. code-block:: xml @@ -344,7 +344,7 @@ can set this option to generate forms compatible with the Bootstrap 4 CSS framew https://symfony.com/schema/dic/twig/twig-1.0.xsd"> - bootstrap_4_layout.html.twig + bootstrap_5_layout.html.twig @@ -355,13 +355,13 @@ can set this option to generate forms compatible with the Bootstrap 4 CSS framew use Symfony\Config\TwigConfig; return static function (TwigConfig $twig) { - $twig->formThemes(['bootstrap_4_layout.html.twig']); + $twig->formThemes(['bootstrap_5_layout.html.twig']); // ... }; The :ref:`built-in Symfony form themes ` include -Bootstrap 3 and 4 as well as Foundation 5 and 6. You can also +Bootstrap 3, 4 and 5, Foundation 5 and 6, as well as Tailwind 2. You can also :ref:`create your own Symfony form theme `. In addition to form themes, Symfony allows you to diff --git a/reference/configuration/twig.rst b/reference/configuration/twig.rst index b4893beabae..c673bf7fca8 100644 --- a/reference/configuration/twig.rst +++ b/reference/configuration/twig.rst @@ -182,7 +182,7 @@ all the forms of the application: # config/packages/twig.yaml twig: - form_themes: ['bootstrap_4_layout.html.twig', 'form/my_theme.html.twig'] + form_themes: ['bootstrap_5_layout.html.twig', 'form/my_theme.html.twig'] # ... .. code-block:: xml @@ -197,7 +197,7 @@ all the forms of the application: http://symfony.com/schema/dic/twig https://symfony.com/schema/dic/twig/twig-1.0.xsd"> - bootstrap_4_layout.html.twig + bootstrap_5_layout.html.twig form/my_theme.html.twig @@ -210,7 +210,7 @@ all the forms of the application: return static function (TwigConfig $twig) { $twig->formThemes([ - 'bootstrap_4_layout.html.twig', + 'bootstrap_5_layout.html.twig', 'form/my_theme.html.twig', ]);