Skip to content

Commit

Permalink
Thematic - Improve display of all thematics in pdf - refs BT#19594
Browse files Browse the repository at this point in the history
  • Loading branch information
cfasanando committed Feb 15, 2022
1 parent 0a54f71 commit db1e934
Showing 1 changed file with 40 additions and 45 deletions.
85 changes: 40 additions & 45 deletions main/template/default/course_progress/pdf_general_thematic.tpl
@@ -1,45 +1,40 @@
<table style="margin-top: 30px;" class="full-width border-thin">
<thead>
<tr>
<th width="30%" style="display:inline-block; padding: 10px; text-align: center; background-color: #E5E5E5;">
{{ "Thematic"|get_lang }}
</th>
<th width="50%" style="display:inline-block; padding: 10px; text-align: center; background-color: #E5E5E5;">
{{ "ThematicPlan"|get_lang }}
</th>
<th width="20%" style="display:inline-block; padding: 10px; text-align: center; background-color: #E5E5E5;">
{{ "ThematicAdvance"|get_lang }}
</th>
</tr>
</thead>
<tbody>
{% for item in data %}
<tr>
<td>
<h4 style="margin-bottom: 10px;">{{ item.title }}</h4>
<br>
{{ item.content }}
</td>
<td>
{% for plan in item.thematic_plan %}
<br>
<h4 style="margin-bottom: 10px;">{{ plan.title }}</h4>
<br>
{{ plan.description }}
{% endfor %}
</td>
<td>
{% for advance in item.thematic_advance %}
<br>
<h4 style="margin-bottom: 10px;">
{{ advance.duration }} {{ "MinHours" | get_lang }}
</h4>
{{ advance.start_date | api_convert_and_format_date(2) }}
<br>
{{ advance.content }}
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div style="border: 1px solid #000;">
<div style="float: left; width: 17%;padding:2%;font-weight: bold;">
{{ "Thematic"|get_lang }}
</div>
<div style="float: left; width: 27%;padding:2%;font-weight: bold;">
{{ "ThematicPlan"|get_lang }}
</div>
<div style="float: left; width: 27%;padding:2%;font-weight: bold;">
{{ "ThematicAdvance"|get_lang }}
</div>
</div>
<hr />
{% for item in data %}
<div style="border: 1px solid #000;">
<div style="float: left; width: 17%;padding:2%;">
<h4 style="margin-bottom: 10px;">{{ item.title }}</h4>
<br>
{{ item.content }}
</div>
<div style="float: left; width: 27%;padding:2%;">
{% for plan in item.thematic_plan %}
<br>
<h4 style="margin-bottom: 10px;">{{ plan.title }}</h4>
<br>
{{ plan.description }}
{% endfor %}
</div>
<div style="float: left; width: 27%;padding:2%;">
{% for advance in item.thematic_advance %}
<br>
<h4 style="margin-bottom: 10px;">
{{ advance.duration }} {{ "MinHours" | get_lang }}
</h4>
{{ advance.start_date | api_convert_and_format_date(2) }}
<br>
{{ advance.content }}
{% endfor %}
</div>
</div>
{% endfor %}

0 comments on commit db1e934

Please sign in to comment.