简体   繁体   中英

How to add a break after Symfony's formType labels

I have some issues to put a break after my input's labels generated by my Symfony's Form.
Here is the form: my form Here is my twig: my twig And this is what I have now, I just want to return on the line after each label so my quizz finally looks like a quizz;): what i have

If you know the way to do this...

You should take a look at form_theme and make a custom one.

Did you try calling form_row(form.choix) instead of form_widget(form.choix) ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM