Skip to content

Commit

Permalink
bug #848 Fixed form theme for inline checkboxes and radios (javieregu…
Browse files Browse the repository at this point in the history
…iluz)

This PR was merged into the master branch.

Discussion
----------

Fixed form theme for inline checkboxes and radios

Update our form theme for the latest bug fix performed by Symfony in symfony/symfony#17600

Commits
-------

a7e8c57 Fixed form theme for inline checkboxes and radios
  • Loading branch information
javiereguiluz committed Feb 3, 2016
2 parents a5bc8d8 + a7e8c57 commit ae8d1b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/views/form/bootstrap_3_layout.html.twig
Expand Up @@ -149,7 +149,7 @@
{%- endblock choice_widget_expanded %}

{% block checkbox_widget -%}
{% set parent_label_class = parent_label_class|default('') -%}
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
{% if 'checkbox-inline' in parent_label_class %}
{{- form_label(form, null, { widget: parent() }) -}}
{% else -%}
Expand All @@ -160,7 +160,7 @@
{%- endblock checkbox_widget %}

{% block radio_widget -%}
{%- set parent_label_class = parent_label_class|default('') -%}
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
{% if 'radio-inline' in parent_label_class %}
{{- form_label(form, null, { widget: parent() }) -}}
{% else -%}
Expand Down

0 comments on commit ae8d1b6

Please sign in to comment.