search.html.twig 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {{ search_form }}
  2. {% if user_list is not empty %}
  3. <div class="table-responsive">
  4. <table class="table table-hover table-striped">
  5. <thead>
  6. <tr>
  7. <th>{{ "FirstName"|get_lang }}</th>
  8. <th>{{ "LastName"|get_lang }}</th>
  9. <th class="text-right">&nbsp;</th>
  10. </tr>
  11. </thead>
  12. <tbody>
  13. {% for user in user_list %}
  14. <tr>
  15. <td>{{ user.firstname }}</td>
  16. <td>{{ user.lastname }}</td>
  17. <td class="text-right">
  18. <a href="{{ _p.web_main }}gradebook/search.php?id={{ user.id }}" class="btn btn-default">
  19. <em class="fa fa-external-link"></em> {{ "Certificates"|get_lang }}
  20. </a>
  21. </td>
  22. </tr>
  23. {% endfor %}
  24. </tbody>
  25. </table>
  26. </div>
  27. {% endif %}
  28. {% if course_list is not empty or session_list is not empty %}
  29. <h2>{{ user_info.complete_name }}</h2>
  30. {% if course_list is not empty %}
  31. <h3 class="page-header">{{ "Courses"|get_lang }}</h3>
  32. <div class="table-responsive">
  33. <table class="table table-hover table-striped">
  34. <thead>
  35. <tr>
  36. <th>{{ "Course"|get_lang }}</th>
  37. <th class="text-right">{{ "Score"|get_lang }}</th>
  38. <th class="text-center">{{ "Date"|get_lang }}</th>
  39. <th class="text-right">&nbsp;</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. {% for row in course_list %}
  44. <tr>
  45. <td>{{ row.course }}</td>
  46. <td class="text-right">{{ row.score }}</td>
  47. <td class="text-center">{{ row.date }}</td>
  48. <td class="text-right">
  49. <a href="{{ row.link }}" target="_blank" class="btn btn-default">
  50. <em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}
  51. </a>
  52. </td>
  53. </tr>
  54. {% endfor %}
  55. </tbody>
  56. </table>
  57. </div>
  58. {% endif %}
  59. {% if session_list is not empty %}
  60. <h3 class="page-header">{{ "Sessions"|get_lang }}</h3>
  61. <div class="table-responsive">
  62. <table class="table table-hover table-striped">
  63. <thead>
  64. <tr>
  65. <th>{{ "Session"|get_lang }}</th>
  66. <th>{{ "Course"|get_lang }}</th>
  67. <th class="text-right">{{ "Score"|get_lang }}</th>
  68. <th class="text-center">{{ "Date"|get_lang }}</th>
  69. <th class="text-right">&nbsp;</th>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. {% for row in session_list %}
  74. <tr>
  75. <td>{{ row.session }}</td>
  76. <td>{{ row.course }}</td>
  77. <td class="text-right">{{ row.score }}</td>
  78. <td class="text-center">{{ row.date }}</td>
  79. <td class="text-right">
  80. <a href="{{ row.link }}" target="_blank" class="btn btn-default">
  81. <em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}
  82. </a>
  83. </td>
  84. </tr>
  85. {% endfor %}
  86. </tbody>
  87. </table>
  88. </div>
  89. {% endif %}
  90. {% endif %}