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.
See also
1 theme call to bat-event-series-add-list.html.twig
- EventSeriesController::addPage in modules/
bat_event_series/ src/ Controller/ EventSeriesController.php - Displays add event links for available event series types.
File
modules/bat_event_series/templates/bat-event-series-add-list.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @see template_preprocess_bat_type_add_list()
- *
- * @ingroup themeable
- */
- #}
- {% if types is not empty %}
- <ul class="admin-list">
- {% for type in types %}
- <li class="clearfix"><span class="label">{{ type.add_link }}</span></li>
- {% endfor %}
- </ul>
- {% else %}
- <p>
- {% set create_content = path('entity.bat_event_series_type.collection') %}
- {% trans %}
- 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.
- {% endtrans %}
- </p>
- {% endif %}