my_certificates.tpl 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {% if course_list is not empty %}
  2. <h2 class="page-header">{{ "Courses"|get_lang }}</h2>
  3. <div class="table-responsive">
  4. <table class="table table-hover table-striped">
  5. <thead>
  6. <tr>
  7. <th>{{ "Course"|get_lang }}</th>
  8. <th class="text-right">{{ "Score"|get_lang }}</th>
  9. <th class="text-center">{{ "Date"|get_lang }}</th>
  10. <th width="10%" class="text-right">&nbsp;</th>
  11. <th width="10%" class="text-right">&nbsp;</th>
  12. </tr>
  13. </thead>
  14. <tbody>
  15. {% for row in course_list %}
  16. <tr>
  17. <td>{{ row.course }}</td>
  18. <td class="text-right">{{ row.score }}</td>
  19. <td class="text-center">{{ row.date }}</td>
  20. <td class="text-right">
  21. <a href="{{ row.pdf }}" target="_blank" class="btn btn-primary btn-block">
  22. <i class="fa fa-file-pdf-o" aria-hidden="true"></i>
  23. {{ 'DownloadCertificatePdf'|get_lang }}
  24. </a>
  25. </td>
  26. <td class="text-right">
  27. <a href="{{ row.link }}" target="_blank" class="btn btn-default btn-block">
  28. <em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}
  29. </a>
  30. </td>
  31. </tr>
  32. {% endfor %}
  33. </tbody>
  34. </table>
  35. </div>
  36. {% endif %}
  37. {% if session_list is not empty %}
  38. <h2 class="page-header">{{ "Sessions"|get_lang }}</h2>
  39. <div class="table-responsive">
  40. <table class="table table-hover table-striped">
  41. <thead>
  42. <tr>
  43. <th>{{ "Session"|get_lang }}</th>
  44. <th>{{ "Course"|get_lang }}</th>
  45. <th class="text-right">{{ "Score"|get_lang }}</th>
  46. <th class="text-center">{{ "Date"|get_lang }}</th>
  47. <th width="10%" class="text-right">&nbsp;</th>
  48. <th width="10%" class="text-right">&nbsp;</th>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. {% for row in session_list %}
  53. <tr>
  54. <td>{{ row.session }}</td>
  55. <td>{{ row.course }}</td>
  56. <td class="text-right">{{ row.score }}</td>
  57. <td class="text-center">{{ row.date }}</td>
  58. <td class="text-right">
  59. <a href="{{ row.pdf }}" target="_blank" class="btn btn-primary btn-block">
  60. <i class="fa fa-file-pdf-o" aria-hidden="true"></i>
  61. {{ 'DownloadCertificatePdf'|get_lang }}
  62. </a>
  63. </td>
  64. <td class="text-right">
  65. <a href="{{ row.link }}" target="_blank" class="btn btn-default btn-block">
  66. <em class="fa fa-external-link"></em> {{ 'Certificate'|get_lang }}
  67. </a>
  68. </td>
  69. </tr>
  70. {% endfor %}
  71. </tbody>
  72. </table>
  73. </div>
  74. {% endif %}