You are here

form-element-label--dropdown.html.twig in Open Social 8.8

Default theme implementation for a form element label.

Available variables:

  • element: an input element.
  • title: The label's text.
  • title_display: Elements title_display setting.
  • description: element description.
  • required: An indicator for whether the associated form element is required.
  • attributes: A list of HTML attributes for the label.

File

themes/socialbase/templates/form/form-element-label--dropdown.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a form element label.
  5. *
  6. * Available variables:
  7. * - element: an input element.
  8. * - title: The label's text.
  9. * - title_display: Elements title_display setting.
  10. * - description: element description.
  11. * - required: An indicator for whether the associated form element is required.
  12. * - attributes: A list of HTML attributes for the label.
  13. *
  14. * @see template_preprocess_form_element_label()
  15. *
  16. * @ingroup templates
  17. */
  18. #}
  19. <label{{ attributes.removeAttribute('data-original-title', 'data-toggle')}} class="block">
  20. <svg class="icon-small">
  21. <use xlink:href="#icon-{{ icon }}"></use>
  22. </svg>
  23. <span>{{ title }}</span>
  24. <span>{{ element }}</span>
  25. </label>