Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #34880 [Twig][Form] Twig theme for Foundation 6 (Lyssal)
This PR was squashed before being merged into the 5.1-dev branch (closes #34880). Discussion ---------- [Twig][Form] Twig theme for Foundation 6 | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | | License | MIT | Doc PR | - Hi, I propose a form theme for Foundation 6. This layout stylizes buttons, percent / money widgets and permits switch inputs adding a 'switch-input' attribute (as for https://symfony.com/blog/new-in-symfony-4-4-bootstrap-custom-switches). ![Foundation_6](https://user-images.githubusercontent.com/10855303/70390292-184cdc80-19ca-11ea-8ad8-090358dd9e35.png) ```php public function buildForm(FormBuilderInterface $builder, array $options): void { $builder // ... ->add('checkbox-switch', Type\CheckboxType::class, [ 'attr' => [ 'class' => 'switch-input', ], ]) ; } ``` Commits ------- e47a134 [Twig][Form] Twig theme for Foundation 6
- Loading branch information