bat-type-group-add-list.html.twig in Booking and Availability Management Tools for Drupal 8
Default theme implementation to list type group bundles available for adding type group.
Available variables:
- types: A list of type group bundles, 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-type-group-add-list.html.twig
- TypeGroupController::addPage in src/
Controller/ TypeGroupController.php - Displays add content links for available type group bundles.
File
templates/bat-type-group-add-list.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to list type group bundles available for adding type group.
- *
- * Available variables:
- * - types: A list of type group bundles, 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_group_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_type_group_bundle.collection') %}
- {% trans %}
- You have not created any type group bundle yet. Go to the <a href="{{ create_content }}">type group bundle creation page</a> to add a new type group bundle.
- {% endtrans %}
- </p>
- {% endif %}