Skip to content

Conversation

Lyssal
Copy link
Contributor

@Lyssal Lyssal commented Dec 8, 2019

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

public function buildForm(FormBuilderInterface $builder, array $options): void
{
    $builder
        // ...
        ->add('checkbox-switch', Type\CheckboxType::class, [
            'attr' => [
                'class' => 'switch-input',
            ],
        ])
    ;
}

@fabpot fabpot force-pushed the twig-form-foundation-6 branch from 815cdc4 to e47a134 Compare January 10, 2020 08:11
@fabpot
Copy link
Member

fabpot commented Jan 10, 2020

Thank you @Lyssal.

@fabpot fabpot closed this in c146de1 Jan 10, 2020
@fabpot fabpot merged commit e47a134 into symfony:master Jan 10, 2020
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.1 May 4, 2020
@fabpot fabpot mentioned this pull request May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants