search.tpl 4.0 KB

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