input--textfield.html.twig 817 B

12345678910111213141516171819202122232425262728
  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. <div class="input-wrapper search-with-clear">
  16. <input{{ attributes }} />{{ children }}
  17. {% if attributes.id == 'edit-combine' %}
  18. <button type="button" class="clear-input" aria-label="Effacer la recherche">
  19. <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor"
  20. stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  21. <line x1="18" y1="6" x2="6" y2="18"/>
  22. <line x1="6" y1="6" x2="18" y2="18"/>
  23. </svg>
  24. </button>
  25. {% endif %}
  26. </div>