templates/includes/form_elements/includes/form-control-label.html.twig line 1

Open in your IDE?
  1. {% set requiredLabel = requiredLabel|default('form.required'|trans) %}
  2. {% set className = className|default('') %}
  3. {% set switch = switch|default(false) %}
  4. <label class="{{ className }}" for="{{ id }}">
  5.     {% if switch %}
  6.         <span class="option option--left is-active js-switch-toggle__company" id="option1">{{ option1 }}</span>
  7.         <span class="option option--right js-switch-toggle__private" id="option2">{{ option2 }}</span>
  8.     {% endif %}
  9.    {{ label|raw }}
  10.     {% if required %}
  11.         <span class="js-label-required-star" title="{{ requiredLabel }}" aria-label="{{ requiredLabel }}">*</span>
  12.     {% endif %}
  13. </label>