Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

34 lines
1.2KB

  1. {% macro list_tickets(tickets) %}
  2. <table class="table table-condensed">
  3. <thead>
  4. <tr>
  5. <th>Sujet</th>
  6. <th>Statut</th>
  7. <th>Dernier message</th>
  8. <th>Actions</th>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. {% for ticket in tickets %}
  13. <tr>
  14. <td>{{ ticket.subject }}</td>
  15. <td>
  16. {% set value = ticket.status %}
  17. {% include '@LcSov/admin/ticket/field/status.html.twig' with {status: ticket.status}%}
  18. </td>
  19. <td>
  20. {% set item = ticket %}
  21. {% include '@LcSov/admin/ticket/field/lastmessage.html.twig' %}
  22. </td>
  23. <td>
  24. <a class="btn-sm btn-success" data-toggle="tooltip" title="{{ 'detail'|sov_trans_admin_action }}"
  25. href="{{ ea_url_short("App\\Controller\\Ticket\\TicketAdminController", 'detail', ticket.id) }}">
  26. <i class="fas fa-eye"></i>
  27. </a>
  28. </td>
  29. </tr>
  30. {% endfor %}
  31. </tbody>
  32. </table>
  33. {% endmacro list_tickets %}