table_pdf.tpl 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <br>
  2. <br>
  3. <h2 align="center"> {{ pdf_title }} </h2>
  4. {% if pdf_description %}
  5. {{ pdf_description }}
  6. <br /><br />
  7. {% endif %}
  8. <table align="center" width="100%" class="full-width border-thin">
  9. {% if pdf_student_info %}
  10. <tr>
  11. <td style="background-color: #E5E5E5; text-align: left; width:130px; ">
  12. <strong>{{ "Student" | get_lang }}:</strong>
  13. </td>
  14. <td>
  15. {{ pdf_student_info.complete_name }}
  16. </td>
  17. </tr>
  18. {% endif %}
  19. {% if pdf_teachers %}
  20. <tr>
  21. <td style="background-color: #E5E5E5; text-align: left; width:130px;">
  22. <strong>{{ "Teacher" | get_lang }}:</strong>
  23. </td>
  24. <td>
  25. {{ pdf_teachers }}
  26. </td>
  27. </tr>
  28. {% endif %}
  29. {% if pdf_session_info %}
  30. <tr>
  31. <td style="background-color: #E5E5E5; text-align: left; width:130px;">
  32. <strong>{{ "Session" | get_lang }}:</strong> {{ pdf_session_info.name }}
  33. </td>
  34. {% if pdf_session_info.description %}
  35. <td>
  36. <strong>{{ "Description" | get_lang }}:</strong> {{ pdf_session_info.description }}
  37. </td>
  38. {% endif %}
  39. </tr>
  40. {% if pdf_session_info.access_start_date != '' and pdf_session_info.access_end_date is not empty and pdf_session_info.access_end_date != '0000-00-00' %}
  41. <tr>
  42. <td style="background-color: #E5E5E5; text-align: left; width:130px;">
  43. <strong>{{ "PeriodToDisplay" | get_lang }}:</strong>
  44. </td>
  45. <td>
  46. {{ "FromDateXToDateY"| get_lang | format(pdf_session_info.access_start_date, pdf_session_info.access_end_date ) }}
  47. </td>
  48. </tr>
  49. {% endif %}
  50. {% endif %}
  51. {% if pdf_course_info %}
  52. <tr>
  53. <td style="background-color: #E5E5E5; text-align: left; width:130px;">
  54. <strong>{{ "Course" | get_lang }}:</strong>
  55. </td>
  56. <td>
  57. {{ pdf_course_info.title }} ({{ pdf_course_info.code }})
  58. </td>
  59. </tr>
  60. {% if pdf_course_category %}
  61. <tr>
  62. <td> <strong>{{ "Category" | get_lang }}:</strong></td>
  63. <td> {{ pdf_course_category }} </td>
  64. </tr>
  65. {% endif %}
  66. {% endif %}
  67. {% if pdf_date %}
  68. <tr>
  69. <td style="background-color: #E5E5E5; text-align: left; width:130px;">
  70. <strong>{{ "Date" | get_lang }}:</strong>
  71. </td>
  72. <td>
  73. {{ pdf_date }}
  74. </td>
  75. </tr>
  76. {% endif %}
  77. </table>
  78. {% if show_grade_generated_date == true %}
  79. <h5 align="right">
  80. {{ 'GradeGeneratedOnX' | get_lang | format("now"| date("d/m/Y")) }}
  81. </h5>
  82. {% endif %}
  83. {{ pdf_content }}
  84. {% if not add_signatures is empty %}
  85. <br />
  86. <br />
  87. <table class="full-width">
  88. <tr>
  89. {% for signature in add_signatures %}
  90. <td class="text-center">
  91. _____________________________
  92. <br />
  93. {{ signature|get_lang }}
  94. </td>
  95. {% endfor %}
  96. </tr>
  97. </table>
  98. {% endif %}