Skip to content
New issue

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

Twig: Form #8

Open
hornofj opened this issue Jan 16, 2025 · 0 comments
Open

Twig: Form #8

hornofj opened this issue Jan 16, 2025 · 0 comments

Comments

@hornofj
Copy link
Member

hornofj commented Jan 16, 2025

The form for creating new customer is now rendered by default like this:

{{ form(form) }}

That will automatically render all the form fields in a default layout. When you need another layout to style the form with bootstrap, you need to either create a form template in Symfony, or use the individual twig tags to render the fields separately.
Choose the approach you want to refactor the form into nice layout using bootstrap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant