-
Notifications
You must be signed in to change notification settings - Fork 180
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
Class on labels not set #237
Comments
It seems to be that the file /vendor/braincrafted/bootstrap-bundle/Braincrafted/Bundle/BootstrapBundle/Resources/views/Form/bootstrap.html.twig line 510 - 551 is ignored I tried there to add some text, but never ever it shows up
{% endspaceless %} |
What type of form field are you trying to render? For example, |
I'll chime in because I have a similar problem - I have a
creates <label for="form_bookType_0" class="required">
<input type="radio" id="form_bookType_0" name="form[bookType]" required="required" value="1">
First type
</label>
... while i'd expect the class for label to be |
I found the source of this error, it's {% block choice_widget_expanded %}
{% spaceless %}
<div {{ block('widget_container_attributes') }}>
{% for child in form %}
{% if form.multiple is defined %}
{{ checkbox_row(child, { 'no_form_group': true, "label_attr": label_attr }) }}
{% else %}
{{ radio_row(child, { 'no_form_group': true, "label_attr": label_attr }) }}
{% endif %}
{% endfor %}
</div>
{% endspaceless %}
{% endblock choice_widget_expanded %} |
I've a issue with creating forms. The classes - control-label & col-lg-2 arn't rendered:
Twig:
{{ form_start(form, { 'style': 'horizontal', 'label_col': 2, 'widget_col': 6 }) }}
{{ form_end(form) }}
output:
label class="required" for="productbundle_product_title"
As you can see, the label class has ony "required"
i expected:
control-label col-lg-2 required
The text was updated successfully, but these errors were encountered: