You are here

gdpr_task.html.twig in General Data Protection Regulation 8

gdpr_task.html.twig Default theme implementation to present Task data.

This template is used when viewing Task pages.

Available variables:

  • content: A list of content items. Use 'content' to print all content, or
  • attributes: HTML attributes for the container element.

File

modules/gdpr_tasks/templates/gdpr_task.html.twig
View source
  1. {#
  2. /**
  3. * @file gdpr_task.html.twig
  4. * Default theme implementation to present Task data.
  5. *
  6. * This template is used when viewing Task pages.
  7. *
  8. *
  9. * Available variables:
  10. * - content: A list of content items. Use 'content' to print all content, or
  11. * - attributes: HTML attributes for the container element.
  12. *
  13. * @see template_preprocess_gdpr_task()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. {% if content %}
  19. <details data-drupal-selector="task-summary" id="task-summary" open="open">
  20. <summary role="button" aria-controls="task-summary" aria-expanded="true" aria-pressed="true">Task Summary</summary>
  21. <div class="details-wrapper">
  22. <div{{ attributes.addClass('gdpr_task') }}>
  23. <strong>Type: </strong> {{ type }}
  24. {{- content -}}
  25. </div>
  26. </div>
  27. </details>
  28. {% endif %}
  29. {% if data %}
  30. <details data-drupal-selector="task-data" id="task-data" open="open">
  31. <summary role="button" aria-controls="task-data" aria-expanded="true" aria-pressed="true">Data</summary>
  32. <div class="details-wrapper">
  33. <div{{ attributes.addClass('gdpr_task') }}>
  34. {{ data }}
  35. </div>
  36. </div>
  37. </details>
  38. {% endif %}
  39. {% if actions %}
  40. {{ actions }}
  41. {% endif %}