You are here

input--gin-lb.html.twig in Gin Layout Builder 1.0.x

Default theme implementation 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--gin-lb.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation 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. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. {% set classes =[
  16. attributes.type != 'submit' and attributes.type != 'radio' ? 'form-element',
  17. attributes.type == 'radio' ? 'form-boolean--type-radio'
  18. ]
  19. %}
  20. <input{{ glb_classes(attributes.addClass(classes)) }} />{{ children }}