src/Elements/Bundle/DemiFrontendBundle/Resources/views/Includes/elements/checkboxes/radio.html.twig line 1

Open in your IDE?
  1. <label class="custom-radio {{ styleModifier }}{{ noBox ? ' custom-radio--highlight-text' : '' }}">
  2.     <input class="custom-radio__input" type="radio" name="{{ name }}"
  3.            value="{{ value }}"
  4.         {% if text %}
  5.             data-text="{{ text }}"
  6.         {% endif %}
  7.         {{ isRequired ? 'required': '' }}
  8.         {{ isChecked ? 'checked': '' }} >
  9.     {% if not noBox %}
  10.         <span class="custom-radio__box mr-2 demi-icon demi-icon-check"></span>
  11.     {% endif %}
  12.     <span class="custom-radio__text">
  13.         {% if additionalContent %}
  14.             <span class="row">
  15.                 <span class="col text-left">
  16.                     {{ label }}
  17.                 </span>
  18.                 <span class="col col-auto">
  19.                     {% if icon %}
  20.                         <span aria-hidden="true" class="demi-icon demi-icon-{{ icon }}"></span>
  21.                     {% elseif additionalText %}
  22.                         <span class="small" title="{{ additionalText }}"
  23.                               aria-label="{{ additionalText }}">({{ additionalCount }})</span>
  24.                     {% endif %}
  25.                 </span>
  26.             </span>
  27.         {% else %}
  28.             {{ label }}
  29.         {% endif %}
  30.     </span>
  31. </label>