teachers_time_by_session_report.html.twig 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {{ form }}
  2. {% if session %}
  3. <h3 class="page-header">{{ session.name }}</h3>
  4. <div class="table-responsive">
  5. <table class="table table-hover table-striped">
  6. <thead>
  7. <tr>
  8. <th>{{ 'OfficialCode'|get_lang }}</th>
  9. <th>{{ 'CoachName'|get_lang }}</th>
  10. <th>{{ 'TimeSpentOnThePlatform'|get_lang }}</th>
  11. <th>{{ 'FirstLoginInPlatform'|get_lang }}</th>
  12. <th>{{ 'LatestLoginInPlatform'|get_lang }}</th>
  13. {% for course_code in courses %}
  14. <th>{{ course_code }}</th>
  15. <th>{{ 'NumberOfWorks'|get_lang }}</th>
  16. <th>{{ 'LastWork'|get_lang }}</th>
  17. <th>{{ 'TimeReportForCourseX'|get_lang|format(course_code) }}</th>
  18. {% endfor %}
  19. </tr>
  20. </thead>
  21. <tbody>
  22. {% for user in users %}
  23. <tr>
  24. {% for data in user %}
  25. <td>{{ data }}</td>
  26. {% endfor %}
  27. </tr>
  28. {% endfor %}
  29. </tbody>
  30. </table>
  31. </div>
  32. {% for row in data %}
  33. <div class="table-responsive">
  34. <table class="table table-hover table-striped">
  35. <thead>
  36. <tr>
  37. <th>{{ 'OfficialCode'|get_lang }}</th>
  38. <th>{{ 'Name'|get_lang }}</th>
  39. <th>{{ 'TimeSpentOnThePlatform'|get_lang }}</th>
  40. <th>{{ 'FirstLoginInPlatform'|get_lang }}</th>
  41. <th>{{ 'LatestLoginInPlatform'|get_lang }}</th>
  42. {% for course in row.courses %}
  43. <th>{{ course.code }}</th>
  44. <th>{{ 'NumberOfWorks'|get_lang }}</th>
  45. <th>{{ 'LastWork'|get_lang }}</th>
  46. <th>{{ 'TimeReportForCourseX'|get_lang|format(course_code) }}</th>
  47. {% endfor %}
  48. </tr>
  49. </thead>
  50. <tbody>
  51. <tr>
  52. <td>{{ row.code }}</td>
  53. <td>{{ row.complete_name }}</td>
  54. <td>{{ row.time_in_platform }}</td>
  55. <td>{{ row.first_connection }}</td>
  56. <td>{{ row.last_connection }}</td>
  57. {% for course in row.courses %}
  58. <td>{{ course.number_of_students }}</td>
  59. <td>{{ course.number_of_works }}</td>
  60. <td>{{ course.last_work }}</td>
  61. <td>{{ course.time_spent_of_course }}</td>
  62. {% endfor %}
  63. </tr>
  64. </tbody>
  65. </table>
  66. </div>
  67. {% endfor %}
  68. {% endif %}