You are here

input--submit--paragraphs_action--image.html.twig in Paragraphs Editor Enhancements 8

Theme implementation for an 'input' #type form element with image.

Available variables:

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

File

templates/input--submit--paragraphs_action--image.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme implementation for an 'input' #type form element with image.
  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. <button {{ attributes }}>
  16. {% if icon_attributes %}
  17. <div {{ icon_attributes }}></div>
  18. {% endif %}
  19. {% if title %}
  20. <div class="paragraphs-label" title="{{- title -}}">{{- title -}}</div>
  21. {% endif %}
  22. {% if description %}
  23. <div class="paragraphs-description"{% if description_id %} id="{{ description_id }}"{% endif %}>{{- description -}}</div>
  24. {% endif %}
  25. {{ children }}
  26. </button>