8000 [Twig][Form] Twig theme for Foundation 6 by Lyssal · Pull Request #34880 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Twig][Form] Twig theme for Foundation 6 #34880

New issue 8000

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2020

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: nex 7833 t, 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
0