snapshot: preserve bilingual PDF text phase
This commit is contained in:
193
backend/media/templates/onboarding_intro_template.html
Normal file
193
backend/media/templates/onboarding_intro_template.html
Normal file
@@ -0,0 +1,193 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ T.lang or 'de' }}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ T.intro_title }}</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
color: #0f172a;
|
||||
font-size: 10.2px;
|
||||
line-height: 1.4;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.hero {
|
||||
background: #eef4ff;
|
||||
border: 1px solid #cbd9f6;
|
||||
border-left: 4px solid #3056a3;
|
||||
padding: 8px 10px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.title {
|
||||
margin: 0;
|
||||
font-size: 17px;
|
||||
color: #233f7a;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.sub {
|
||||
margin: 2px 0 0 0;
|
||||
color: #475569;
|
||||
font-size: 9.4px;
|
||||
}
|
||||
|
||||
.section {
|
||||
margin-top: 9px;
|
||||
font-size: 11px;
|
||||
color: #233f7a;
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid #cbd9f6;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
th, td {
|
||||
border: 1px solid #d5e2f9;
|
||||
padding: 4px 6px;
|
||||
vertical-align: top;
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
th {
|
||||
background: #eaf1ff;
|
||||
color: #1f376b;
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
width: 26%;
|
||||
}
|
||||
|
||||
.mono {
|
||||
font-weight: bold;
|
||||
color: #111827;
|
||||
}
|
||||
|
||||
.note {
|
||||
margin: 6px 0 8px;
|
||||
color: #536174;
|
||||
font-size: 9.3px;
|
||||
}
|
||||
|
||||
.opt-card {
|
||||
border: 1px solid #d5e2f9;
|
||||
margin-top: 6px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.opt-title {
|
||||
background: #3056a3;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
padding: 5px 6px;
|
||||
font-size: 9.5px;
|
||||
}
|
||||
|
||||
.opt-grid {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.opt-grid td {
|
||||
border: 1px solid #d5e2f9;
|
||||
padding: 5px 6px;
|
||||
font-size: 9.4px;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.cb {
|
||||
display: inline-block;
|
||||
min-width: 12px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
margin-right: 8px;
|
||||
vertical-align: middle;
|
||||
color: #b8b8b8;
|
||||
font-size: 12px;
|
||||
line-height: 12px;
|
||||
}
|
||||
|
||||
.sigbox {
|
||||
border: 1px solid #d5e2f9;
|
||||
padding: 10px;
|
||||
margin-top: 8px;
|
||||
background: #fcfdff;
|
||||
}
|
||||
|
||||
.sigline {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.line {
|
||||
display: inline-block;
|
||||
border-bottom: 1px solid #334155;
|
||||
min-width: 190px;
|
||||
height: 12px;
|
||||
vertical-align: bottom;
|
||||
margin: 0 6px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="hero">
|
||||
<h1 class="title">{{ T.intro_title }}</h1>
|
||||
<p class="sub">{{ T.intro_sub }}</p>
|
||||
</div>
|
||||
|
||||
<div class="section">{{ T.base_data }}</div>
|
||||
<table>
|
||||
<tr>
|
||||
<th>{{ T.name }}</th>
|
||||
<td class="mono">{{ DISPLAY_NAME }}</td>
|
||||
<th>{{ T.department }}</th>
|
||||
<td>{{ ABTEILUNG }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ T.job_title }}</th>
|
||||
<td>{{ BERUFSBEZEICHNUNG }}</td>
|
||||
<th>{{ T.start_date }}</th>
|
||||
<td>{{ VERTRAGSBEGINN }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ T.work_email }}</th>
|
||||
<td>{{ EMAIL }}</td>
|
||||
<th>{{ T.introduced_by }}</th>
|
||||
<td>{{ REQUESTED_BY_NAME }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p class="note">{{ T.intro_note }}</p>
|
||||
|
||||
{% for section in INTRO_SECTIONS %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ section.title }}</div>
|
||||
<table class="opt-grid">
|
||||
{% for row in section.rows %}
|
||||
<tr>
|
||||
{% for cell in row %}<td><span class="cb">□</span> {{ cell }}</td>{% endfor %}
|
||||
{% if row|length < 2 %}
|
||||
{% for _ in range(2 - row|length) %}<td></td>{% endfor %}
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<div class="section">{{ T.confirmation }}</div>
|
||||
<div class="sigbox">
|
||||
<div class="sigline">{{ T.intro_completed_at }} <span class="line"></span></div>
|
||||
<div class="sigline">{{ T.employee_signature }} <span class="line"></span></div>
|
||||
<div class="sigline">{{ T.trainer_signature }} <span class="line"></span></div>
|
||||
<div class="sigline">{{ T.open_questions }} <span class="line" style="min-width: 260px;"></span></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user