snapshot: preserve dynamic pdf parity and quality pass
This commit is contained in:
@@ -29,6 +29,7 @@ from .forms import (
|
||||
WORKSPACE_GROUP_CHOICES,
|
||||
)
|
||||
from .notifications import notify_user_by_email
|
||||
from .pdf_sections import build_pdf_sections
|
||||
|
||||
# These templates are the product-level defaults for fresh deployments.
|
||||
# Runtime branding and company config can override the company-facing identity
|
||||
@@ -965,6 +966,7 @@ def _generate_onboarding_pdf(request_obj: OnboardingRequest) -> Path:
|
||||
context = {
|
||||
'T': t,
|
||||
'PDF_LANG': lang,
|
||||
'PDF_SECTIONS': build_pdf_sections('onboarding', request_obj, lang),
|
||||
'VORNAME': first_name,
|
||||
'NACHNAME': last_name,
|
||||
'DISPLAY_NAME': display_name or request_obj.full_name,
|
||||
@@ -1209,6 +1211,8 @@ def _generate_offboarding_pdf(request_obj: OffboardingRequest) -> Path:
|
||||
|
||||
context = {
|
||||
'T': t,
|
||||
'PDF_LANG': lang,
|
||||
'PDF_SECTIONS': build_pdf_sections('offboarding', request_obj, lang),
|
||||
'FULL_NAME': request_obj.full_name,
|
||||
'EMAIL': request_obj.work_email,
|
||||
'DEPARTMENT': request_obj.department or t['not_available_short'],
|
||||
|
||||
Reference in New Issue
Block a user