table_pdf.tpl 2.6 KB

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