|
@@ -80,7 +80,7 @@ file that was distributed with this source code.
|
|
|
|
|
|
{% block checkbox_widget -%}
|
|
|
{% set parent_label_class = parent_label_class|default('') -%}
|
|
|
- {% if 'checkbox-inline' in parent_label_class or sonata_admin.options['use_icheck'] %}
|
|
|
+ {% if 'checkbox-inline' in parent_label_class %}
|
|
|
{{- form_label(form, null, { widget: parent() }) -}}
|
|
|
{% else -%}
|
|
|
<div class="checkbox">
|
|
@@ -91,7 +91,7 @@ file that was distributed with this source code.
|
|
|
|
|
|
{% block radio_widget -%}
|
|
|
{%- set parent_label_class = parent_label_class|default('') -%}
|
|
|
- {% if 'radio-inline' in parent_label_class or sonata_admin.options['use_icheck'] %}
|
|
|
+ {% if 'radio-inline' in parent_label_class %}
|
|
|
{{- form_label(form, null, { widget: parent() }) -}}
|
|
|
{% else -%}
|
|
|
<div class="radio">
|
|
@@ -166,7 +166,11 @@ file that was distributed with this source code.
|
|
|
{% endif %}
|
|
|
<label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
|
|
|
{{- widget|raw -}}
|
|
|
- {{- label is not same as(false) ? label|trans({}, translation_domain) -}}
|
|
|
+ {%- if label is not same as(false) -%}
|
|
|
+ <span class="control-label__text">
|
|
|
+ {{- label|trans({}, translation_domain) -}}
|
|
|
+ </span>
|
|
|
+ {%- endif -%}
|
|
|
</label>
|
|
|
{% endif %}
|
|
|
{% endblock checkbox_radio_label %}
|