Minor: Clean template

pull/4266/head
Angel Fernando Quiroz Campos 3 years ago
parent 3a7a0d7422
commit b5ae032cd1
  1. 102
      main/template/default/export/table_pdf.tpl

@ -1,27 +1,27 @@
{% if pdf_title %} {% if pdf_title %}
<h2 align="center"> {{ pdf_title }} </h2> <h2>{{ pdf_title }}</h2>
{% endif %} {% endif %}
{% if pdf_description %} {% if pdf_description %}
{{ pdf_description }} {{ pdf_description }}
<br /><br /> <br/><br/>
{% endif %} {% endif %}
<table align="center" width="100%" class="table table-hover table-striped table-bordered data_table"> <table align="center" width="100%" class="table table-hover table-striped table-bordered data_table">
{% if pdf_student_info %} {% if pdf_student_info %}
<tr> <tr>
<td style="background-color: #E5E5E5; text-align: left; width:130px; "> <td style="background-color: #E5E5E5; text-align: left; width:130px; ">
<strong>{{ "Student" | get_lang }}:</strong>blob:https://web.whatsapp.com/d7b63bbf-cfa5-4c3f-a277-23eb52dfde4f <strong>{{ "Student"|get_lang }}</strong>
</td> </td>
<td> <td>
{{ pdf_student_info.complete_name }} {{ pdf_student_info.complete_name }}
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
{% if pdf_teachers %} {% if pdf_teachers %}
<tr> <tr>
<td style="background-color: #E5E5E5; text-align: left; width:130px;"> <td style="background-color: #E5E5E5; text-align: left; width:130px;">
<strong>{{ "Teacher" | get_lang }}:</strong> <strong>{{ "Teacher"|get_lang }}</strong>
</td> </td>
<td> <td>
{{ pdf_teachers }} {{ pdf_teachers }}
@ -32,88 +32,88 @@
{% if pdf_session_info %} {% if pdf_session_info %}
<tr> <tr>
<td style="background-color: #E5E5E5; text-align: left; width:130px;" {{ pdf_session_info.description ? '' : 'colspan="2"' }}> <td style="background-color: #E5E5E5; text-align: left; width:130px;" {{ pdf_session_info.description ? '' : 'colspan="2"' }}>
<strong>{{ "Session" | get_lang }}:</strong> {{ pdf_session_info.name }} <strong>{{ "Session"|get_lang }}</strong> {{ pdf_session_info.name }}
</td> </td>
{% if pdf_session_info.description %} {% if pdf_session_info.description %}
<td> <td>
<strong>{{ "Description" | get_lang }}:</strong> {{ pdf_session_info.description }} <strong>{{ "Description"|get_lang }}</strong> {{ pdf_session_info.description }}
</td> </td>
{% endif %} {% endif %}
</tr> </tr>
{% 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' %} {% 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' %}
<tr>
<td style="background-color: #E5E5E5; text-align: left; width:130px;">
<strong>{{ "PeriodToDisplay"|get_lang }}</strong>
</td>
<td>
{{ "FromDateXToDateY"| get_lang|format(pdf_session_info.access_start_date_to_local_time, pdf_session_info.access_end_date_to_local_time ) }}
</td>
</tr>
{% endif %}
{% endif %}
{% if pdf_course_info %}
<tr> <tr>
<td style="background-color: #E5E5E5; text-align: left; width:130px;"> <td style="background-color: #E5E5E5; text-align: left; width:130px;">
<strong>{{ "PeriodToDisplay" | get_lang }}:</strong> <strong>{{ "Course"|get_lang }}</strong>
</td> </td>
<td> <td>
{{ "FromDateXToDateY"| get_lang | format(pdf_session_info.access_start_date_to_local_time, pdf_session_info.access_end_date_to_local_time ) }} {{ pdf_course_info.title }} ({{ pdf_course_info.code }})
</td> </td>
</tr> </tr>
{% endif %}
{% endif %}
{% if pdf_course_info %}
<tr>
<td style="background-color: #E5E5E5; text-align: left; width:130px;">
<strong>{{ "Course" | get_lang }}:</strong>
</td>
<td>
{{ pdf_course_info.title }} ({{ pdf_course_info.code }})
</td>
</tr>
{% if pdf_course_category %} {% if pdf_course_category %}
<tr> <tr>
<td> <strong>{{ "Category" | get_lang }}:</strong></td> <td><strong>{{ "Category"|get_lang }}</strong></td>
<td> {{ pdf_course_category }} </td> <td> {{ pdf_course_category }} </td>
</tr> </tr>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if pdf_date %} {% if pdf_date %}
<tr>
<td style="background-color: #E5E5E5; text-align: left; width:130px;">
<strong>{{ "Date" | get_lang }}:</strong>
</td>
<td>
{{ pdf_date }}
</td>
</tr>
{% endif %}
{% if extra_rows %}
{% for row in extra_rows %}
<tr> <tr>
<td style="background-color: #E5E5E5; text-align: left; width:130px;"> <td style="background-color: #E5E5E5; text-align: left; width:130px;">
<strong>{{ row.label }}:</strong> <strong>{{ "Date"|get_lang }}</strong>
</td> </td>
<td> <td>
{{ row.content }} {{ pdf_date }}
</td> </td>
</tr> </tr>
{% endif %}
{% if extra_rows %}
{% for row in extra_rows %}
<tr>
<td style="background-color: #E5E5E5; text-align: left; width:130px;">
<strong>{{ row.label }}</strong>
</td>
<td>
{{ row.content }}
</td>
</tr>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</table> </table>
<br /> <br/>
{% if show_grade_generated_date == true %} {% if show_grade_generated_date == true %}
<h5 align="right" class="generated_date"> <h5 align="right" class="generated_date">
{{ 'GradeGeneratedOnX' | get_lang | format("now"| date("d/m/Y")) }} {{ 'GradeGeneratedOnX'|get_lang|format("now"| date("d/m/Y")) }}
</h5> </h5>
{% endif %} {% endif %}
{{ pdf_content }} {{ pdf_content }}
{% if not add_signatures is empty %} {% if not add_signatures is empty %}
<br /> <br/>
<br /> <br/>
<table class="table"> <table class="table">
<tr> <tr>
{% for signature in add_signatures %} {% for signature in add_signatures %}
<td class="text-center"> <td class="text-center">
_____________________________ _____________________________
<br /> <br/>
{{ signature|get_lang }} {{ signature|get_lang }}
</td> </td>
{% endfor %} {% endfor %}

Loading…
Cancel
Save