snapshot: preserve dynamic pdf parity and quality pass

This commit is contained in:
Md Bayazid Bostame
2026-03-27 12:41:32 +01:00
parent e929e7509b
commit b9441f2503
7 changed files with 525 additions and 292 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="{{ T.lang or 'de' }}">
<html lang="{{ PDF_LANG or T.lang or 'de' }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -29,12 +29,6 @@
letter-spacing: 0.2px;
}
.sub {
margin: 2px 0 0 0;
color: #6b7280;
font-size: 9.5px;
}
.section {
margin-top: 9px;
font-size: 11px;
@@ -54,6 +48,8 @@
border: 1px solid #f0e1e1;
padding: 4px 6px;
vertical-align: top;
overflow-wrap: anywhere;
word-break: break-word;
}
th {
@@ -141,17 +137,6 @@
font-size: 9.4px;
}
.manual-title {
margin: 9px 0 5px;
font-size: 10px;
font-weight: bold;
color: #111827;
}
.manual-grid td {
width: 50%;
}
</style>
</head>
<body>
@@ -159,25 +144,26 @@
<h1 class="title">{{ T.offboarding_title }}</h1>
</div>
<div class="section">{{ T.employee_info }}</div>
<table>
<tr>
<th>{{ T.name }}</th>
<td class="mono">{{ FULL_NAME }}</td>
<th>{{ T.email }}</th>
<td>{{ EMAIL }}</td>
</tr>
<tr>
<th>{{ T.department }}</th>
<td>{{ DEPARTMENT }}</td>
<th>{{ T.job_title }}</th>
<td>{{ JOB_TITLE }}</td>
</tr>
<tr>
<th>{{ T.last_working_day }}</th>
<td colspan="3">{{ LAST_WORKING_DAY }}</td>
</tr>
</table>
{% for section in PDF_SECTIONS %}
{% if section.has_content %}
<div class="section">{{ section.title }}</div>
{% if section.scalar_rows %}
<table>
{% for row in section.scalar_rows %}
<tr>
<th>{{ row[0].label }}</th>
<td{% if not row[1] %} colspan="3"{% endif %}{% if row[0].name in ['full_name', 'work_email'] %} class="mono"{% endif %}>{{ row[0].display_value }}</td>
{% if row[1] %}
<th>{{ row[1].label }}</th>
<td>{{ row[1].display_value }}</td>
{% endif %}
</tr>
{% endfor %}
</table>
{% endif %}
{% endif %}
{% endfor %}
<div class="section">{{ T.offboarding_requester }}</div>
<table>
@@ -295,14 +281,6 @@
<div class="sigline">{{ T.return_complete }} <span class="cb">&#9633;</span>&#160;{{ T.yes }} &#160;&#160;&#160; <span class="cb">&#9633;</span>&#160;{{ T.no }}</div>
</div>
<div class="section">{{ T.notes }}</div>
<table>
<tr>
<th>{{ T.notes }}</th>
<td>{{ NOTES }}</td>
</tr>
</table>
<p class="small">{{ T.offboarding_note }}</p>
</body>
</html>