table_pdf.tpl 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {% if pdf_title %}
  2. <h2 align="center"> {{ pdf_title }} </h2>
  3. {% endif %}
  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. <br />
  79. {% if show_grade_generated_date == true %}
  80. <h5 align="right">
  81. {{ 'GradeGeneratedOnX' | get_lang | format("now"| date("d/m/Y")) }}
  82. </h5>
  83. {% endif %}
  84. {{ pdf_content }}
  85. {% if not add_signatures is empty %}
  86. <br />
  87. <br />
  88. <table class="full-width">
  89. <tr>
  90. {% for signature in add_signatures %}
  91. <td class="text-center">
  92. _____________________________
  93. <br />
  94. {{ signature|get_lang }}
  95. </td>
  96. {% endfor %}
  97. </tr>
  98. </table>
  99. {% endif %}