You are here

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.

File

modules/support_ticket/templates/support-ticket-add-list.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to list support ticket types available for adding
  5. * tickets.
  6. *
  7. * This list is displayed on the Add support ticket admin page.
  8. *
  9. * Available variables:
  10. * - types: A list of support ticket types, each with the following properties:
  11. * - add_link: Link to create a ticket of this type.
  12. * - description: Description of this ticket type.
  13. *
  14. * @see template_preprocess_support_ticket_add_list()
  15. *
  16. * @ingroup themeable
  17. */
  18. #}
  19. {% if types is not empty %}
  20. <dl>
  21. {% for type in types %}
  22. <dt>{{ type.add_link }}</dt>
  23. <dd>{{ type.description }}</dd>
  24. {% endfor %}
  25. </dl>
  26. {% else %}
  27. <p>
  28. {% set create_tickets = path('support_ticket.type_add') %}
  29. {% trans %}
  30. 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.
  31. {% endtrans %}
  32. </p>
  33. {% endif %}