snapshot: preserve state before onboarding field parity and refactor slice
This commit is contained in:
@@ -114,7 +114,6 @@
|
||||
.muted-cell {
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -122,41 +121,250 @@
|
||||
<h1 class="title">{{ T.onboarding_title }}</h1>
|
||||
</div>
|
||||
|
||||
{% for section in PDF_SECTIONS %}
|
||||
{% if section.has_content %}
|
||||
<div class="section">{{ section.title }}</div>
|
||||
<div class="section">{% if PDF_LANG == 'en' %}Master data{% else %}Stammdaten{% endif %}</div>
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ T.onboarding_staff_data }}</div>
|
||||
<table>
|
||||
<tr>
|
||||
<th>{{ T.name }}</th>
|
||||
<td class="mono" colspan="3">{{ DISPLAY_NAME }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ T.department }}</th>
|
||||
<td>{{ ABTEILUNG }}</td>
|
||||
<th>{{ T.job_title }}</th>
|
||||
<td>{{ BERUFSBEZEICHNUNG }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ T.work_email }}</th>
|
||||
<td>{{ EMAIL }}</td>
|
||||
<th>{{ T.employment_type }}</th>
|
||||
<td>{{ BESCHAEFTIGUNG }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ T.contract_start }}</th>
|
||||
<td>{{ VERTRAGSBEGINN }}</td>
|
||||
<th>{{ T.contract_end }}</th>
|
||||
<td>{{ VERTRAGSENDE }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ T.handover_date }}</th>
|
||||
<td colspan="3">{{ UEBERGABEDATUM }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</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 %}
|
||||
{% if HAS_DEVICES or HAS_GROUPS or HAS_SOFTWARE or HAS_ACCESSES or HAS_RESOURCES or HAS_GROUP_MAILBOXES or HAS_ADDITIONAL_HARDWARE or HAS_ADDITIONAL_SOFTWARE or HAS_ADDITIONAL_ACCESS %}
|
||||
<div class="section">{% if PDF_LANG == 'en' %}IT setup{% else %}IT-Setup{% endif %}</div>
|
||||
|
||||
{% for field in section.list_fields %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ field.label }}</div>
|
||||
<table class="opt-grid">
|
||||
{% for row in field.display_value|batch(3, '') %}
|
||||
<tr>
|
||||
{% for cell in row %}
|
||||
<td>{% if cell %}• {{ cell }}{% endif %}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% if HAS_DEVICES %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ T.devices }}</div>
|
||||
<table class="opt-grid">
|
||||
{% for row in ARBEITSGERÄTE_LIST %}
|
||||
<tr>
|
||||
{% for cell in row %}<td>• {{ cell }}</td>{% endfor %}
|
||||
{% if row|length < 3 %}
|
||||
{% for _ in range(3 - row|length) %}<td></td>{% endfor %}
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if HAS_GROUPS %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ T.workspace_groups }}</div>
|
||||
<table class="opt-grid">
|
||||
{% for row in ZUGAENGE_LIST %}
|
||||
<tr>
|
||||
{% for cell in row %}<td>• {{ cell }}</td>{% endfor %}
|
||||
{% if row|length < 3 %}
|
||||
{% for _ in range(3 - row|length) %}<td></td>{% endfor %}
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if HAS_SOFTWARE %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ T.software }}</div>
|
||||
<table class="opt-grid">
|
||||
{% for row in SOFTWARE_LIST %}
|
||||
<tr>
|
||||
{% for cell in row %}<td>• {{ cell }}</td>{% endfor %}
|
||||
{% if row|length < 3 %}
|
||||
{% for _ in range(3 - row|length) %}<td></td>{% endfor %}
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if HAS_ACCESSES %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ T.accesses }}</div>
|
||||
<table class="opt-grid">
|
||||
{% for row in ACCOUNT_LIST %}
|
||||
<tr>
|
||||
{% for cell in row %}<td>• {{ cell }}</td>{% endfor %}
|
||||
{% if row|length < 3 %}
|
||||
{% for _ in range(3 - row|length) %}<td></td>{% endfor %}
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if HAS_RESOURCES %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ T.resources }}</div>
|
||||
<table class="opt-grid">
|
||||
{% for row in STANDARD_RESSOURCEN %}
|
||||
<tr>
|
||||
{% for cell in row %}<td>• {{ cell }}</td>{% endfor %}
|
||||
{% if row|length < 3 %}
|
||||
{% for _ in range(3 - row|length) %}<td></td>{% endfor %}
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if GROUP_MAILBOXES_REQUIRED and HAS_GROUP_MAILBOXES %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ T.group_mailboxes_required }}</div>
|
||||
<table class="opt-grid">
|
||||
{% for row in GROUP_MAILBOXES_LIST %}
|
||||
<tr>
|
||||
{% for cell in row %}<td>• {{ cell }}</td>{% endfor %}
|
||||
{% if row|length < 3 %}
|
||||
{% for _ in range(3 - row|length) %}<td></td>{% endfor %}
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if ADDITIONAL_HARDWARE_NEEDED and HAS_ADDITIONAL_HARDWARE %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ T.additional_hardware_needed }}</div>
|
||||
<table class="opt-grid">
|
||||
{% for row in ADDITIONAL_HARDWARE_LIST %}
|
||||
<tr>
|
||||
{% for cell in row %}<td>• {{ cell }}</td>{% endfor %}
|
||||
{% if row|length < 3 %}
|
||||
{% for _ in range(3 - row|length) %}<td></td>{% endfor %}
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if ADDITIONAL_SOFTWARE_NEEDED and HAS_ADDITIONAL_SOFTWARE %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ T.additional_software_needed }}</div>
|
||||
<table class="opt-grid">
|
||||
{% for row in ADDITIONAL_SOFTWARE_LIST %}
|
||||
<tr>
|
||||
{% for cell in row %}<td>• {{ cell }}</td>{% endfor %}
|
||||
{% if row|length < 3 %}
|
||||
{% for _ in range(3 - row|length) %}<td></td>{% endfor %}
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if ADDITIONAL_ACCESS_NEEDED and HAS_ADDITIONAL_ACCESS %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ T.additional_access_needed }}</div>
|
||||
<table class="opt-grid">
|
||||
{% for row in ADDITIONAL_ACCESS_LIST %}
|
||||
<tr>
|
||||
{% for cell in row %}<td>• {{ cell }}</td>{% endfor %}
|
||||
{% if row|length < 3 %}
|
||||
{% for _ in range(3 - row|length) %}<td></td>{% endfor %}
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if (VISITENKARTE_BESTELLT and HAS_VISITENKARTE_DATEN) or HAS_ADDITIONAL_HARDWARE_OTHER or HAS_SUCCESSOR_INFO or HAS_ADDITIONAL_NOTES %}
|
||||
<div class="section">{{ T.additional_details }}</div>
|
||||
{% endif %}
|
||||
|
||||
{% if VISITENKARTE_BESTELLT and HAS_VISITENKARTE_DATEN %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ T.business_cards }}</div>
|
||||
<table>
|
||||
<tr>
|
||||
<th>{{ T.name }}</th>
|
||||
<td>{{ VISITENKARTE_NAME }}</td>
|
||||
<th>{{ T.job_title }}</th>
|
||||
<td>{{ VISITENKARTE_TITEL }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ T.email }}</th>
|
||||
<td>{{ VISITENKARTE_EMAIL }}</td>
|
||||
<th>{{ T.phone }}</th>
|
||||
<td>{{ VISITENKARTE_TELEFON }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if HAS_ADDITIONAL_HARDWARE_OTHER %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ T.additional_hardware_other }}</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ ADDITIONAL_HARDWARE_OTHER }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if HAS_SUCCESSOR_INFO %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ T.successor_phone }}</div>
|
||||
<table>
|
||||
<tr>
|
||||
<th>{{ T.successor_of }}</th>
|
||||
<td>{{ SUCCESSOR_NAME }}</td>
|
||||
<th>{{ T.inherit_phone_number }}</th>
|
||||
<td>{{ INHERIT_PHONE_NUMBER }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ T.direct_extension }}</th>
|
||||
<td colspan="3">{{ PHONE_NUMBER }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if HAS_ADDITIONAL_NOTES %}
|
||||
<div class="opt-card">
|
||||
<div class="opt-title">{{ T.notes }}</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ ADDITIONAL_NOTES }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="section">{{ T.confirmation }}</div>
|
||||
<table>
|
||||
|
||||
Reference in New Issue
Block a user