You are here

bat-event-series-add-list.html.twig in Booking and Availability Management Tools for Drupal 8

Default theme implementation to list event series types available for adding event.

Available variables:

  • types: A list of event series types, each with the following properties:

    • add_link: Link to create a piece of content of this type.
    • description: Description of this type of content.

File

modules/bat_event_series/templates/bat-event-series-add-list.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to list event series types available for adding event.
  5. *
  6. * Available variables:
  7. * - types: A list of event series types, each with the following properties:
  8. * - add_link: Link to create a piece of content of this type.
  9. * - description: Description of this type of content.
  10. *
  11. * @see template_preprocess_bat_type_add_list()
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. {% if types is not empty %}
  17. <ul class="admin-list">
  18. {% for type in types %}
  19. <li class="clearfix"><span class="label">{{ type.add_link }}</span></li>
  20. {% endfor %}
  21. </ul>
  22. {% else %}
  23. <p>
  24. {% set create_content = path('entity.bat_event_series_type.collection') %}
  25. {% trans %}
  26. You have not created any event series type yet. Go to the <a href="{{ create_content }}">event series type creation page</a> to add a new event series type.
  27. {% endtrans %}
  28. </p>
  29. {% endif %}