diff --git a/base/context_processors.py b/base/context_processors.py
index d7f2c25d1..d2a911f48 100644
--- a/base/context_processors.py
+++ b/base/context_processors.py
@@ -11,6 +11,7 @@ from attendance.models import AttendanceGeneralSetting
from base.models import Company
from base.urls import urlpatterns
from employee.models import EmployeeGeneralSetting
+from horilla import horilla_apps
from offboarding.models import OffboardingGeneralSetting
from payroll.models.models import PayrollGeneralSetting
from recruitment.models import RecruitmentGeneralSetting
@@ -99,6 +100,30 @@ urlpatterns.append(
)
+def white_labelling_company(request):
+ white_labelling = getattr(horilla_apps, "WHITE_LABELLING", False)
+ if white_labelling:
+ hq = Company.objects.filter(hq=True).last()
+ try:
+ company = (
+ request.user.employee_get.get_company()
+ if request.user.employee_get.get_company()
+ else hq
+ )
+ except:
+ company = hq
+
+ return {
+ "white_label_company_name": company.company if company else "Horilla",
+ "white_label_company": company,
+ }
+ else:
+ return {
+ "white_label_company_name": "Horilla",
+ "white_label_company": None,
+ }
+
+
def resignation_request_enabled(request):
"""
Check weather resignation_request enabled of not in offboarding
diff --git a/base/templates/base/auth/password_change_form.html b/base/templates/base/auth/password_change_form.html
index 498a32070..902c45257 100644
--- a/base/templates/base/auth/password_change_form.html
+++ b/base/templates/base/auth/password_change_form.html
@@ -101,9 +101,7 @@
diff --git a/horilla/horilla_apps.py b/horilla/horilla_apps.py
index eda747708..d0ee0350e 100644
--- a/horilla/horilla_apps.py
+++ b/horilla/horilla_apps.py
@@ -49,3 +49,5 @@ SIDEBARS = [
"asset",
"helpdesk",
]
+
+WHITE_LABELLING = False
diff --git a/horilla/horilla_context_processors.py b/horilla/horilla_context_processors.py
index af7ab5779..8984ca0e6 100644
--- a/horilla/horilla_context_processors.py
+++ b/horilla/horilla_context_processors.py
@@ -12,6 +12,9 @@ TEMPLATES[0]["OPTIONS"]["context_processors"].append(
TEMPLATES[0]["OPTIONS"]["context_processors"].append(
"base.context_processors.get_companies",
)
+TEMPLATES[0]["OPTIONS"]["context_processors"].append(
+ "base.context_processors.white_labelling_company",
+)
TEMPLATES[0]["OPTIONS"]["context_processors"].append(
"base.context_processors.resignation_request_enabled",
)
diff --git a/onboarding/templates/onboarding/employee_bank_details.html b/onboarding/templates/onboarding/employee_bank_details.html
index f1cfd22da..74872d065 100644
--- a/onboarding/templates/onboarding/employee_bank_details.html
+++ b/onboarding/templates/onboarding/employee_bank_details.html
@@ -7,7 +7,10 @@
-