Skip to content

Commit

Permalink
Fixed BB-6015.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-oro committed Dec 1, 2016
1 parent bc84647 commit c7221d5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,16 @@

{%- block radio_widget -%}
{% set class_prefix = form.vars.class_prefix|default(class_prefix|default('radio')) %}
{% set attr = layout_attr_defaults(attr, {
'~class': ' custom-radio__control'
}) %}

{%- if label is empty -%}
{% set label = id|humanize %}
{%- endif -%}
<label class="custom-radio {% if form.vars.checked %}checked{% endif %}" data-radio tabindex="0">
{{- parent() -}}
<span class="{{ class_prefix }}__text">{{ label|block_text(translation_domain) }}</span>
<span class="custom-radio__text">{{ label|block_text(translation_domain) }}</span>
</label>
{{- form_errors(form, {'class_prefix': class_prefix}) -}}
{%- endblock radio_widget -%}
Expand Down

0 comments on commit c7221d5

Please sign in to comment.