root-8.x-1.x-dev/templates/input--checkbox-toggle.html.twig
templates/input--checkbox-toggle.html.twig
{#
/**
* @file
* Theme override for an 'input' #type form element.
*
* Available variables:
* - attributes: A list of HTML attributes for the input element.
* - children: Optional additional rendered elements.
*
* @see template_preprocess_input()
* @see claro_preprocess_input()
*/
#}
{% apply spaceless %}
{% if autocomplete_message %}
<label class="claro-autocomplete switch">
<input{{ attributes }}/>
<div class="claro-autocomplete__message hidden slider round" data-drupal-selector="autocomplete-message">{{ autocomplete_message }}</div>
</label>
{{ children }}
{% else %}
<label class="switch">
<input {{ attributes }} />
<div class="slider round"></div>
{{ children }}
</label>
{% endif %}
{% endapply %}
