Actualización
This commit is contained in:
123
main/template/default/export/table_pdf.tpl
Normal file
123
main/template/default/export/table_pdf.tpl
Normal file
@@ -0,0 +1,123 @@
|
||||
{% if pdf_title %}
|
||||
<h2>{{ pdf_title }}</h2>
|
||||
{% endif %}
|
||||
|
||||
{% if pdf_description %}
|
||||
{{ pdf_description }}
|
||||
<br/><br/>
|
||||
{% endif %}
|
||||
|
||||
<table align="center" width="100%" class="table table-hover table-striped table-bordered data_table">
|
||||
{% if pdf_student_info %}
|
||||
<tr>
|
||||
<td style="background-color: #E5E5E5; text-align: left; width:130px; ">
|
||||
<strong>{{ "Student"|get_lang }}</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ pdf_student_info.complete_name }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if pdf_teachers %}
|
||||
<tr>
|
||||
<td style="background-color: #E5E5E5; text-align: left; width:130px;">
|
||||
<strong>{{ "Teacher"|get_lang }}</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ pdf_teachers }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
{% if pdf_session_info %}
|
||||
<tr>
|
||||
<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 }}
|
||||
</td>
|
||||
|
||||
{% if pdf_session_info.description %}
|
||||
<td>
|
||||
<strong>{{ "Description"|get_lang }}</strong> {{ pdf_session_info.description }}
|
||||
</td>
|
||||
{% endif %}
|
||||
</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' %}
|
||||
<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>
|
||||
<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 %}
|
||||
<tr>
|
||||
<td><strong>{{ "Category"|get_lang }}</strong></td>
|
||||
<td> {{ pdf_course_category }} </td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% 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>
|
||||
<td style="background-color: #E5E5E5; text-align: left; width:130px;">
|
||||
<strong>{{ row.label }}</strong>
|
||||
</td>
|
||||
<td>
|
||||
{{ row.content }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</table>
|
||||
<br/>
|
||||
|
||||
{% if show_grade_generated_date == true %}
|
||||
<h5 align="right" class="generated_date">
|
||||
{{ 'GradeGeneratedOnX'|get_lang|format("now"| date("d/m/Y")) }}
|
||||
</h5>
|
||||
{% endif %}
|
||||
|
||||
{{ pdf_content }}
|
||||
|
||||
{% if not add_signatures is empty %}
|
||||
<br/>
|
||||
<br/>
|
||||
<table class="table">
|
||||
<tr>
|
||||
{% for signature in add_signatures %}
|
||||
<td class="text-center">
|
||||
_____________________________
|
||||
<br/>
|
||||
{{ signature|get_lang }}
|
||||
</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user