You are here

subscription-add-list.html.twig in Mailing List 8

Default theme implementation to list mailing lists available for adding subscriptions.

This list is displayed on the Add subscription admin page.

Available variables:

  • lists: A list of mailing lists, each with the following properties:

    • add_link: Link to create an entry on this list.
    • description: Description of this mailing list.

File

templates/subscription-add-list.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to list mailing lists available for adding subscriptions.
  5. *
  6. * This list is displayed on the Add subscription admin page.
  7. *
  8. * Available variables:
  9. * - lists: A list of mailing lists, each with the following properties:
  10. * - add_link: Link to create an entry on this list.
  11. * - description: Description of this mailing list.
  12. *
  13. * @see template_preprocess_subscription_add_list()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. {% if lists is not empty %}
  19. <ul class="admin-list">
  20. {% for list in lists %}
  21. <li class="clearfix">
  22. <a href="{{ list.add_url }}">
  23. <span class="label">
  24. {{ list.label }}
  25. </span>
  26. <div class="description">
  27. {{ list.description }}
  28. </div>
  29. </a>
  30. </li>
  31. {% endfor %}
  32. </ul>
  33. {% else %}
  34. <p>
  35. {% set create_list = path('mailing_list.list_add') %}
  36. {% trans %}
  37. No mailing lists available at this moment.
  38. {% endtrans %}
  39. </p>
  40. {% endif %}