Closed
Description
I have following form controls
/** @var FormBuilderInterface $builder */
$builder
->add('submit','submit', array(
'label' => 'Filter'
))
->add('clear','reset', array(
'label' => 'Clear filter'
));
Form template contains
{% extends 'bootstrap_3_horizontal_layout.html.twig' %}
Styling were applied to Filter. and not to Clear filter control.
I added to the bottom of bootstrap_3_horizontal_layout.html.twig
following lines which fixed the issue:
{% block reset_row -%}
{% spaceless %}
<div class="form-group">
<div class="{{ block('form_label_class') }}"></div>
<div class="{{ block('form_group_class') }}">
{{ form_widget(form) }}
</div>
</div>
{% endspaceless %}
{% endblock reset_row %}
Platform: Symfony 2 Standard Edition 2.6.6
Metadata
Metadata
Assignees
Labels
No labels