This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bridge/Twig/Resources/views/Form
Edvinas Klovas 10df5d16c1 Currently if you want to use inline bootstrap form rendering, this is usually
enough:

1. Using bootstrap_3_layout.html.twig
2. Rendering form with `{{ form(form, { 'attr': {'class': 'form-inline'} }) }}`

Form rendering breaks for buttons as the buttons are rendered in a separate
<div> element without any attributes (this is coming from
form_div_layout.html.twig which has this block hard-coded). The rest of the
elements render with <div class="form-group"> which make them compatible with
form-inline attribute in the form (`<form class="form-inline">`).

The problem makes buttons render on new lines for inline forms. Extending
button_row in bootstrap_3_layout.html.twig template fixes this.

Signed-off-by: Edvinas Klovas <edvinas@pnd.io>
2014-12-29 15:30:03 +02:00
..
bootstrap_3_horizontal_layout.html.twig [TwigBridge] Added form_twitter_bootstrap_layout.html.twig 2014-10-01 16:49:30 +02:00
bootstrap_3_layout.html.twig Currently if you want to use inline bootstrap form rendering, this is usually 2014-12-29 15:30:03 +02:00
form_div_layout.html.twig Merge branch '2.5' into 2.6 2014-11-16 18:28:09 +01:00
form_table_layout.html.twig Remove Spaceless Blocks From Twig Templates 2014-07-15 16:12:54 +02:00