-
Notifications
You must be signed in to change notification settings - Fork 478
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4167 from christianbeeznest/orouba-19594
Thematic - Improve display of all thematics in pdf - refs BT#19594
- Loading branch information
Showing
1 changed file
with
40 additions
and
45 deletions.
There are no files selected for viewing
85 changes: 40 additions & 45 deletions
85
main/template/default/course_progress/pdf_general_thematic.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 %} |