file input--autocomplete.html.twig

Theme override to display an input form element.

Available variables:

  • attributes: A list of HTML attributes for the input element.
  • children: Optional additional rendered elements.

File

templates/form/input--autocomplete.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display an input 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 uikit_preprocess_input()
  12. *
  13. * @ingroup uikit_themeable
  14. */
  15. #}
  16. {%
  17. set classes = [
  18. 'uk-input',
  19. errors ? 'uk-form-danger',
  20. ]
  21. %}
  22. <div class="uk-inline">
  23. <span class="uk-form-icon uk-form-icon-flip" uk-icon="icon: refresh"></span>
  24. <input{{ attributes.addClass(classes) }} />{{ children }}
  25. </div>

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Log in