@@ -320,16 +320,16 @@ suitable for being rendered in an HTML form.
320
320
321
321
As short as this rendering is, it's not very flexible. Usually, you'll need more
322
322
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:
325
325
326
326
.. configuration-block ::
327
327
328
328
.. code-block :: yaml
329
329
330
330
# config/packages/twig.yaml
331
331
twig :
332
- form_themes : ['bootstrap_4_layout .html.twig']
332
+ form_themes : ['bootstrap_5_layout .html.twig']
333
333
334
334
.. code-block :: xml
335
335
@@ -344,7 +344,7 @@ can set this option to generate forms compatible with the Bootstrap 4 CSS framew
344
344
https://symfony.com/schema/dic/twig/twig-1.0.xsd" >
345
345
346
346
<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 >
348
348
<!-- ... -->
349
349
</twig : config >
350
350
</container >
@@ -355,13 +355,13 @@ can set this option to generate forms compatible with the Bootstrap 4 CSS framew
355
355
use Symfony\Config\TwigConfig;
356
356
357
357
return static function (TwigConfig $twig) {
358
- $twig->formThemes(['bootstrap_4_layout .html.twig']);
358
+ $twig->formThemes(['bootstrap_5_layout .html.twig']);
359
359
360
360
// ...
361
361
};
362
362
363
363
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
365
365
:ref: `create your own Symfony form theme <create-your-own-form-theme >`.
366
366
367
367
In addition to form themes, Symfony allows you to
0 commit comments