support-ticket-add-list.html.twig in Support Ticketing System 8
Default theme implementation to list support ticket types available for adding tickets.
This list is displayed on the Add support ticket admin page.
Available variables:
- types: A list of support ticket types, each with the following properties:
- add_link: Link to create a ticket of this type.
- description: Description of this ticket type.
See also
1 theme call to support-ticket-add-list.html.twig
- SupportTicketController::addPage in modules/
support_ticket/ src/ Controller/ SupportTicketController.php - Displays add content links for available support ticket types.
File
modules/support_ticket/templates/support-ticket-add-list.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to list support ticket types available for adding
- * tickets.
- *
- * This list is displayed on the Add support ticket admin page.
- *
- * Available variables:
- * - types: A list of support ticket types, each with the following properties:
- * - add_link: Link to create a ticket of this type.
- * - description: Description of this ticket type.
- *
- * @see template_preprocess_support_ticket_add_list()
- *
- * @ingroup themeable
- */
- #}
- {% if types is not empty %}
- <dl>
- {% for type in types %}
- <dt>{{ type.add_link }}</dt>
- <dd>{{ type.description }}</dd>
- {% endfor %}
- </dl>
- {% else %}
- <p>
- {% set create_tickets = path('support_ticket.type_add') %}
- {% trans %}
- You have not created any support ticket types yet. Go to the <a href="{{ create_tickets }}">support ticket type creation page</a> to add a new ticket type.
- {% endtrans %}
- </p>
- {% endif %}