table_pdf.tpl 3.1 KB

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