input--checkbox--gin-lb.html.twig in Gin Layout Builder 1.0.x
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.
File
templates/form/input--checkbox--gin-lb.html.twigView source
- {#
- /**
- * @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()
- */
- #}
- {% if autocomplete_message %}
- <div class="claro-autocomplete">
- <input{{ attributes }}/>
- <div hidden class="claro-autocomplete__message">{{autocomplete_message}}</div>
- </div>
- {{ children }}
- {% else %}
- <input{{ glb_classes(attributes) }}/>{{ children }}
- <span class="glb-checkbox-toggle">
- <span class="glb-checkbox-toggle__inner"></span>
- </span>
- {% endif %}