简体   繁体   中英

symfony2 twig render form 'choice' as list

How can I (in symfony2 twig) render the form control 'choice' (expanded, checkboxes) as list ('li's, or just with a 'br' inbetwwen each option) and not have all options appear on one line?

I guess I could bach a jQuery together, but isn't there a more native way?

You can override the appropriate theme block. There is a great description in the docs how to do that.

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