admin.html.twig 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {% autoescape false %}
  2. {{ search_form }}
  3. <table class="table table-hover table-striped">
  4. <thead>
  5. <tr>
  6. <th>{{ 'CreatedAt'|get_lang }}</th>
  7. <th>{{ 'Status'|get_lang }}</th>
  8. <th>{{ 'Records'|get_lang }}</th>
  9. <th>{{ 'Course'|get_lang }}</th>
  10. <th>{{ 'Session'|get_lang }}</th>
  11. <th>{{ 'Participants'|get_lang }}</th>
  12. <th>{{ 'Actions'|get_lang }}</th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. {% for meeting in meetings %}
  17. <tr id="meeting-{{ meeting.id }}">
  18. {% if meeting.visibility == 0 %}
  19. <td class="muted">{{ meeting.created_at }}</td>
  20. {% else %}
  21. <td>{{ meeting.created_at }}</td>
  22. {% endif %}
  23. <td>
  24. {% if meeting.status == 1 %}
  25. <span class="label label-success">{{ 'MeetingOpened'|get_lang }}</span>
  26. {% else %}
  27. <span class="label label-info">{{ 'MeetingClosed'|get_lang }}</span>
  28. {% endif %}
  29. </td>
  30. <td>
  31. {% if meeting.record == 1 %}
  32. {# Record list #}
  33. {{ meeting.show_links }}
  34. {% endif %}
  35. </td>
  36. <td>{{ meeting.course ?: '-' }}</td>
  37. <td>{{ meeting.session ?: '-' }}</td>
  38. <td>
  39. {{ meeting.participants ? meeting.participants|join('<br>') : '-' }}
  40. </td>
  41. <td>
  42. {{ meeting.action_links }}
  43. </td>
  44. </tr>
  45. {% endfor %}
  46. </tbody>
  47. </table>
  48. {% endautoescape %}