Files
Reskreen/templates/admin/collabs/pdf_template.html
2022-05-02 14:40:10 +02:00

54 lines
1.5 KiB
HTML

<html>
<head>
<style>
* {
font-size: 15px;
}
table {
table-layout: fixed;
width: 100%;
border: 1px solid black;
}
table th {
text-align: left;
padding: 3px;
padding-bottom: 0;
}
table td {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 3px;
padding-bottom: 0;
}
</style>
</head>
<body>
<table>
<tr>
<th></th>
<th>Date</th>
<th>Heures</th>
<th>Minutes</th>
<th>Collaborateur</th>
<th>Types</th>
<th>Total du mois</th>
</tr>
{%for data in record%}
<tr>
<td style="width: 10%;"> {{forloop.counter}} </td>
<td sttyle="width: 40%; text-align: left;"> {{data.date}} </td>
<td style="width: 30%;"> {{data.hours}} </td>
<td style="width: 20%;"> {{data.minutes}} </td>
<td style="width: 20%;"> {{data.user}} ({{data.bases}}) </td>
<td style="width: 20%;"> {{data.types}} </td>
<td style="width: 20%;"> {{data.total}} </td>
</tr>
{%endfor%}
</table>
</body>
</html>