You are here

file-upload-help.html.twig in Open Social 8.3

Theme override to display help text for file fields.

Available variables:

  • description: The normal description for this field, specified by the user.
  • descriptions: Lines of help text for uploading a file.
  • popover: Markup to display the descriptions as a popover instead.

File

themes/socialbase/templates/file/file-upload-help.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Theme override to display help text for file fields.
  5. *
  6. * Available variables:
  7. * - description: The normal description for this field, specified by the user.
  8. * - descriptions: Lines of help text for uploading a file.
  9. * - popover: Markup to display the descriptions as a popover instead.
  10. *
  11. * @see template_preprocess_file_upload_help()
  12. */
  13. #}
  14. {% if popover %}
  15. {{ popover }}
  16. {% else %}
  17. {{ descriptions|safe_join('<br>') }}
  18. {% endif %}
  19. {% if popover and description %}
  20. &bullet;
  21. {% endif %}
  22. {% if description %}
  23. {{ description }}
  24. {% endif %}