You are here

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.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override for an 'input' #type form element.
  5. *
  6. * Available variables:
  7. * - attributes: A list of HTML attributes for the input element.
  8. * - children: Optional additional rendered elements.
  9. *
  10. * @see template_preprocess_input()
  11. * @see claro_preprocess_input()
  12. */
  13. #}
  14. {% if autocomplete_message %}
  15. <div class="claro-autocomplete">
  16. <input{{ attributes }}/>
  17. <div hidden class="claro-autocomplete__message">{{autocomplete_message}}</div>
  18. </div>
  19. {{ children }}
  20. {% else %}
  21. <input{{ glb_classes(attributes) }}/>{{ children }}
  22. <span class="glb-checkbox-toggle">
  23. <span class="glb-checkbox-toggle__inner"></span>
  24. </span>
  25. {% endif %}