You are here

paragraphs-sets-add-dialog.html.twig in Paragraphs Sets 8

Same filename and directory in other branches
  1. 8.2 templates/paragraphs-sets-add-dialog.html.twig

Default theme implementation of modal add paragraph dialog template.

Following classes have custom use:

  • paragraphs-add-dialog - is used to wrap the dialog.
  • paragraphs-add-dialog-row - is used to wrap the paragraph type rows.

File

templates/paragraphs-sets-add-dialog.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation of modal add paragraph dialog template.
  5. *
  6. * Following classes have custom use:
  7. * - paragraphs-add-dialog - is used to wrap the dialog.
  8. * - paragraphs-add-dialog-row - is used to wrap the paragraph type rows.
  9. *
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. {{ add }}
  15. <div class="paragraphs-add-dialog js-hide">
  16. {% if buttons %}
  17. <label>{{ buttons_title }}</label>
  18. <ul class="paragraphs-add-dialog-list">
  19. {% for button in buttons %}
  20. <li class="paragraphs-add-dialog-row">
  21. {{ button }}
  22. </li>
  23. {% endfor %}
  24. </ul>
  25. {% endif %}
  26. {% if sets %}
  27. <label>{{ sets_title }}</label>
  28. <ul class="paragraphs-add-dialog-list">
  29. {% for set in sets %}
  30. <li class="paragraphs-add-dialog-row">
  31. {{ set }}
  32. </li>
  33. {% endfor %}
  34. </ul>
  35. {% endif %}
  36. </div>