pdf_tracking_lp.tpl 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <h3 style="text-align: center; text-transform: uppercase; font-size: 20px; font-weight: bold;">{{ data.name }}</h3>
  2. <br>
  3. <p>{{ 'Candidate' | get_lang }} : {{ data.candidate }}</p>
  4. <p>{{ 'ScormStartAttemptDate' | get_lang }} : {{ data.start_date }}</p>
  5. <br>
  6. <table style="width: 100%; font-size: 12px; font-weight: normal;">
  7. <tr>
  8. <th style="text-align: center; height: 25px; background: #222222; color: #FFFFFF; border: 2px solid #FFFFFF;">
  9. {{ 'Attempt'|get_lang }}
  10. </th>
  11. <th style="text-align: center; background: #222222; color: #FFFFFF; border: 2px solid #FFFFFF;">
  12. {{ 'Score'|get_lang }}
  13. </th>
  14. <th style="text-align: center; background: #222222; color: #FFFFFF; border: 2px solid #FFFFFF;">
  15. {{ 'Duration'|get_lang }}
  16. </th>
  17. <th style="text-align: center; background: #222222; color: #FFFFFF; border: 2px solid #FFFFFF;">
  18. {{ 'StartTime'|get_lang }}
  19. </th>
  20. <th style="text-align: center; background: #222222; color: #FFFFFF; border: 2px solid #FFFFFF;">
  21. {{ 'EndTime'|get_lang }}
  22. </th>
  23. </tr>
  24. <tr>
  25. <td style="text-align: center; height: 50px; background: #d9d9d9; padding: 5px; display: block; border: 2px solid #FFFFFF;">
  26. {{ data.attempt }}
  27. </td>
  28. <td style="text-align: center; background: #d9d9d9; padding: 5px; display: block; border: 2px solid #FFFFFF;">
  29. {{ data.score }}
  30. </td>
  31. <td style="text-align: center; background: #d9d9d9; padding: 5px; display: block; border: 2px solid #FFFFFF;">
  32. {{ data.duration }}
  33. </td>
  34. <td style="text-align: center; background: #d9d9d9; padding: 5px; display: block; border: 2px solid #FFFFFF;">
  35. {{ data.start_time }}
  36. </td>
  37. <td style="text-align: center; background: #d9d9d9; padding: 5px; display: block; border: 2px solid #FFFFFF;">
  38. {{ data.end_time }}
  39. </td>
  40. </tr>
  41. </table>
  42. <br>
  43. <table style="width: 100%; font-size: 12px;">
  44. <tr>
  45. <th style="text-align: center; height: 25px; background: #222222; color: #FFFFFF; border: 2px solid #FFFFFF;">
  46. {{ 'Domains'|get_lang }}
  47. </th>
  48. <th style="text-align: center; background: #222222; color: #FFFFFF; border: 2px solid #FFFFFF;">
  49. {{ 'Score'|get_lang }}
  50. </th>
  51. <th style="text-align: center; background: #222222; color: #FFFFFF; border: 2px solid #FFFFFF;">
  52. {{ 'Percentage'|get_lang }}
  53. </th>
  54. </tr>
  55. {% for item in categories %}
  56. <tr>
  57. <td style="height:40px; width: 40%; text-align: left; padding: 5px; display: block; border-bottom: 1px solid #cdcdcd;">
  58. {{ item.name }}
  59. </td>
  60. <td style="text-align: center; padding: 5px; display: block; border-bottom: 1px solid #cdcdcd;">
  61. {% if item.score_numeric == 0 %}
  62. <span style="color: red;">{{ item.score }}</span>
  63. {% else %}
  64. <span>{{ item.score }}</span>
  65. {% endif %}
  66. </td>
  67. <td style="text-align: left; padding: 5px; display: block; border-bottom: 1px solid #cdcdcd;">
  68. <img src="{{ "bar_progress.png"|icon(22) }}" width="{{ item.score_numeric }}px" height="16px" alt="{{ "Percentage"|get_lang }}"/>
  69. {% if item.score_numeric == 0 %}
  70. <span style="color: red;">{{ item.score_percentage }}</span>
  71. {% else %}
  72. <span>{{ item.score_percentage }}</span>
  73. {% endif %}
  74. </td>
  75. </tr>
  76. {% endfor %}
  77. {% for item in general_score %}
  78. <tr>
  79. <td style="text-align: left; padding: 5px; height:30px; background: #222222; color: #FFFFFF; display: block;">
  80. <b>{{ 'GeneralTotal' | get_lang }}</b>
  81. </td>
  82. <td style="text-align: center; padding: 5px; display: block;background-color: #f6ffe2;">
  83. {{ item.score }}
  84. </td>
  85. <td style="text-align: left; padding: 5px; display: block; background-color: #f6ffe2;">
  86. <img src="{{ "bar_progress.png"|icon(22) }}" width="{{ item.score_numeric }}px" height="16px" alt="{{ "Percentage"|get_lang }}"/>
  87. {% if item.score_numeric == 0 %}
  88. <span style="color: red;">{{ item.score_percentage }}</span>
  89. {% else %}
  90. <span>{{ item.score_percentage }}</span>
  91. {% endif %}
  92. </td>
  93. </tr>
  94. {# {% if global_total %}#}
  95. {# <tr>#}
  96. {# <td>#}
  97. {# </td>#}
  98. {# <td>#}
  99. {# {{ 'GlobalTotal'|get_lang }}#}
  100. {# </td>#}
  101. {# <td>#}
  102. {# {{ global_total }}#}
  103. {# </td>#}
  104. {# </tr>#}
  105. {# {% endif %}#}
  106. {% endfor %}
  107. </table>