snapshot: preserve current onboarding offboarding portal state

This commit is contained in:
Md Bayazid Bostame
2026-03-19 12:37:13 +01:00
parent 581ddffd54
commit 3bf43921ff
6 changed files with 215 additions and 2 deletions

View File

@@ -388,6 +388,8 @@ class OffboardingRequestForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
prefill_profile = kwargs.pop('prefill_profile', None)
super().__init__(*args, **kwargs)
self.fields['full_name'].label = 'Vorname und Nachname'
self.fields['work_email'].help_text = ''
if prefill_profile:
self.fields['full_name'].initial = prefill_profile.full_name
self.fields['work_email'].initial = prefill_profile.work_email