changement template PDF

This commit is contained in:
2024-07-14 16:54:03 +02:00
parent c225972fb2
commit a9c3e52313

View File

@@ -4,9 +4,22 @@
@page{ @page{
size: A4 landscape; size: A4 landscape;
margin: 2cm; margin: 2cm;
} @frame content_frame { /* Content Frame */
}
@frame footer_frame { /* Another static Frame */
-pdf-frame-content: footer_content;
left: 50pt; width: 512pt; bottom: 10pt; height: 20pt;
}
}
@page regular_template { margin: 2cm; } @page regular_template { margin: 2cm; }
.page-break {
page-break-before: always;
}
.page-avoid{
page-break-inside: avoid;
}
.header-info{ .header-info{
font-size: 8pt; font-size: 8pt;
} }
@@ -60,7 +73,12 @@
</style> </style>
</head> </head>
<body> <body>
<div id="footer_content">
Évaluation étudiant clerc - page <pdf:pagenumber>
sur <pdf:pagecount>
</div>
{%for object in objects%} {%for object in objects%}
<table style="padding-bottom: 0.2cm"> <table style="padding-bottom: 0.2cm">
<tr> <tr>
@@ -71,7 +89,7 @@
</tr> </tr>
</table> </table>
<table class="header-info"> <table class="header-info page-avoid">
<tbody> <tbody>
<tr class=""> <tr class="">
<th class=" " align="center" >Date de suivi</th> <th class=" " align="center" >Date de suivi</th>
@@ -113,8 +131,9 @@
</tbody> </tbody>
</table> </table>
<hr> <hr>
<table class="desc"> <div class="page-avoid">
<tbody> <table class="desc page-avoid">
<tbody>
<tr> <tr>
<th class=""> <th class="">
Éléments positifs (auto-évaluation) Éléments positifs (auto-évaluation)
@@ -123,7 +142,7 @@
Éléments positifs (Encadrant) Éléments positifs (Encadrant)
</th> </th>
</tr> </tr>
<tr> <tr class="">
<td class="" > <td class="" >
{{object.o_Auto_eval.sDesc_pos | safe}} {{object.o_Auto_eval.sDesc_pos | safe}}
</td> </td>
@@ -131,10 +150,13 @@
{{object.o_Encadrant_eval.sDesc_pos | safe}} {{object.o_Encadrant_eval.sDesc_pos | safe}}
</td> </td>
</tr> </tr>
<tr> </tbody>
<td class=""></td> </table>
</tr> </div>
<tr> <div class="page-avoid">
<table class="desc page-break page-avoid">
<tbody>
<tr class="">
<th class=""> <th class="">
Éléments à améliorer (auto-évaluation) Éléments à améliorer (auto-évaluation)
</th> </th>
@@ -149,10 +171,12 @@
<td class="" > <td class="" >
{{object.o_Encadrant_eval.sDesc_neg | safe}} {{object.o_Encadrant_eval.sDesc_neg | safe}}
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<table class="global"> </div>
<div class="page-avoid">
<table class="global page-break">
<tbody> <tbody>
<tr class=""> <tr class="">
<th class="">Avis Global</th> <th class="">Avis Global</th>
@@ -170,6 +194,7 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div>
<pdf:nextpage /> <pdf:nextpage />
{%endfor%} {%endfor%}