snapshot: preserve company config foundation and staff dashboard access
This commit is contained in:
@@ -8,7 +8,7 @@ from django.utils.translation import get_language, gettext as _, gettext_lazy
|
||||
|
||||
from .branding import get_company_email_domain
|
||||
from .form_builder import apply_form_field_config
|
||||
from .models import EmployeeProfile, FormOption, OffboardingRequest, OnboardingRequest, PortalBranding, WorkflowConfig
|
||||
from .models import EmployeeProfile, FormOption, OffboardingRequest, OnboardingRequest, PortalBranding, PortalCompanyConfig, WorkflowConfig
|
||||
from .roles import ROLE_ADMIN, ROLE_GROUP_NAMES, ROLE_IT_STAFF, ROLE_LABELS, ROLE_PLATFORM_OWNER, ROLE_STAFF, ROLE_SUPER_ADMIN, assign_user_role
|
||||
|
||||
|
||||
@@ -244,6 +244,43 @@ class PortalBrandingForm(forms.ModelForm):
|
||||
return favicon
|
||||
|
||||
|
||||
class PortalCompanyConfigForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = PortalCompanyConfig
|
||||
fields = [
|
||||
'legal_company_name',
|
||||
'street_address',
|
||||
'postal_code',
|
||||
'city',
|
||||
'country',
|
||||
'website_url',
|
||||
'imprint_url',
|
||||
'privacy_url',
|
||||
'hr_contact_email',
|
||||
'it_contact_email',
|
||||
'operations_contact_email',
|
||||
'phone_number',
|
||||
'vat_id',
|
||||
'registration_number',
|
||||
]
|
||||
labels = {
|
||||
'legal_company_name': gettext_lazy('Rechtlicher Firmenname'),
|
||||
'street_address': gettext_lazy('Straße und Hausnummer'),
|
||||
'postal_code': gettext_lazy('Postleitzahl'),
|
||||
'city': gettext_lazy('Stadt'),
|
||||
'country': gettext_lazy('Land'),
|
||||
'website_url': gettext_lazy('Website'),
|
||||
'imprint_url': gettext_lazy('Impressum-URL'),
|
||||
'privacy_url': gettext_lazy('Datenschutz-URL'),
|
||||
'hr_contact_email': gettext_lazy('HR-Kontakt'),
|
||||
'it_contact_email': gettext_lazy('IT-Kontakt'),
|
||||
'operations_contact_email': gettext_lazy('Operations-Kontakt'),
|
||||
'phone_number': gettext_lazy('Zentrale Telefonnummer'),
|
||||
'vat_id': gettext_lazy('USt-IdNr.'),
|
||||
'registration_number': gettext_lazy('Register- oder Handelsnummer'),
|
||||
}
|
||||
|
||||
|
||||
class OnboardingRequestForm(forms.ModelForm):
|
||||
first_name = forms.CharField(label='Vorname', required=False)
|
||||
last_name = forms.CharField(label='Nachname', required=False)
|
||||
|
||||
Reference in New Issue
Block a user