diff --git a/src/eherkenning/tests/test_mock_views.py b/src/eherkenning/tests/test_mock_views.py
index c8964affb3..e08b43f486 100644
--- a/src/eherkenning/tests/test_mock_views.py
+++ b/src/eherkenning/tests/test_mock_views.py
@@ -45,7 +45,7 @@ class TestAppIndexTests(TestCase):
def test_eherkenning_enabled(self, mock_solo):
mock_solo.return_value.eherkenning_enabled = True
- url = reverse("login")
+ url = reverse("login_business")
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
@@ -54,7 +54,7 @@ def test_eherkenning_enabled(self, mock_solo):
def test_eherkenning_disabled(self, mock_solo):
mock_solo.return_value.eherkenning_enabled = False
- url = reverse("login")
+ url = reverse("login_business")
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
diff --git a/src/open_inwoner/accounts/templates/django_registration/registration_form.html b/src/open_inwoner/accounts/templates/django_registration/registration_form.html
index 7f206a1caa..7c62d9a047 100644
--- a/src/open_inwoner/accounts/templates/django_registration/registration_form.html
+++ b/src/open_inwoner/accounts/templates/django_registration/registration_form.html
@@ -3,7 +3,7 @@
{% block content %}
-
- {% render_grid %}
- {% render_column start=5 span=5 %}
- {% render_card %}
-
{% trans 'Welkom' %}
- {% if login_text %}
{{ login_text|markdown|safe }}
{% endif %}
-
- {% if settings.DIGID_ENABLED %}
- {% get_solo 'digid_eherkenning_oidc_generics.OpenIDConnectDigiDConfig' as digid_oidc_config %}
- {% if digid_oidc_config.enabled %}
- {% render_card direction='horizontal' tinted=True compact=True %}
-
-
-
- {% url 'digid_oidc:init' as href %}
- {% with href|addnexturl:next as href_with_next %}
- {% link href=href_with_next text=_('Inloggen met DigiD') secondary=True icon='arrow_forward' extra_classes="link--digid" %}
- {% endwith %}
- {% endrender_card %}
- {% else %}
- {% render_card direction='horizontal' tinted=True compact=True %}
-
-
-
- {% url 'digid:login' as href %}
- {% with href|addnexturl:next as href_with_next %}
- {% link href=href_with_next text=_('Inloggen met DigiD') secondary=True icon='arrow_forward' extra_classes="link--digid" %}
- {% endwith %}
- {% endrender_card %}
- {% endif %}
- {% endif %}
+
{% trans 'Welkom' %}
+ {% if login_text %}
+
{{ login_text|markdown|safe }}
+ {% endif %}
- {% if eherkenning_enabled %}
- {% get_solo 'digid_eherkenning_oidc_generics.OpenIDConnectEHerkenningConfig' as eherkenning_oidc_config %}
- {% if eherkenning_oidc_config.enabled %}
- {% render_card direction='horizontal' tinted=True compact=True %}
-
-
-
- {% url 'eherkenning_oidc:init' as href %}
- {% with href|addnexturl:next as href_with_next %}
- {% link href=href_with_next text=_('Inloggen met eHerkenning') secondary=True icon='arrow_forward' extra_classes="link--eherkenning" %}
- {% endwith %}
- {% endrender_card %}
- {% else %}
- {% render_card direction='horizontal' tinted=True compact=True %}
-
-
-
- {% url 'eherkenning:login' as href %}
- {% with href|addnexturl:next as href_with_next %}
- {% link href=href_with_next text=_('Inloggen met eHerkenning') secondary=True icon='arrow_forward' extra_classes="link--eherkenning" %}
- {% endwith %}
- {% endrender_card %}
- {% endif %}
- {% endif %}
+ {# Tab panels Start #}
+
+
+
+ {# Panel 1 #}
+
- {% get_solo 'mozilla_django_oidc_db.OpenIDConnectConfig' as oidc_config %}
- {% get_solo 'configurations.SiteConfiguration' as site_config %}
- {% if oidc_config.enabled and site_config.openid_enabled_for_regular_users %}
- {% render_card tinted=True compact=True direction='horizontal' %}
- {% if site_config.openid_connect_logo %}
-
-
-
- {% else %}
-
- {% endif %}
- {% url 'oidc_authentication_init' as href %}
- {% with href|addnexturl:next as href_with_next %}
- {% link text=site_config.openid_connect_login_text href=href_with_next secondary=True icon='arrow_forward' icon_position="after" %}
- {% endwith %}
- {% endrender_card %}
- {% endif %}
+
+ {% render_grid %}
- {% if login_allow_registration %}
- {% render_card tinted=True compact=True %}
- {% render_form id="login-form" method="POST" form=form show_required=True %}
- {% csrf_token %}
-
- {% input form.username %}
- {% input form.password %}
- {% button text=_('Wachtwoord vergeten?') href='password_reset' secondary=True transparent=True align='right' %}
- {% form_actions primary_text=_("Inloggen") primary_icon="arrow_forward" secondary_href='django_registration_register' secondary_text=_('Registreer') secondary_icon='arrow_forward' single=True %}
- {% endrender_form %}
- {% endrender_card %}
- {% endif %}
- {% endrender_card %}
- {% endrender_column %}
- {% endrender_grid %}
+ {# Digid #}
+ {% if settings.DIGID_ENABLED %}
+ {% render_column start=4 span=5 %}
+ {% get_solo 'digid_eherkenning_oidc_generics.OpenIDConnectDigiDConfig' as digid_oidc_config %}
+ {% if digid_oidc_config.enabled %}
+ {% render_card direction='horizontal' tinted=True compact=True %}
+
+
+
+ {% url 'digid_oidc:init' as href %}
+ {% link href=href text=_('Inloggen met DigiD') primary=True icon='east' extra_classes="link--next link--digid" %}
+ {% endrender_card %}
+ {% else %}
+ {% render_card direction='horizontal' tinted=True compact=True %}
+
+
+
+ {% url 'digid:login' as href %}
+ {% with href|addnexturl:next as href_with_next %}
+ {% link href=href_with_next text=_('Inloggen met DigiD') primary=True icon='east' extra_classes="link--next link--digid" %}
+ {% endwith %}
+ {% endrender_card %}
+ {% endif %}
+ {% endrender_column %}
+ {% endif %}
+ {# end digid #}
+
+ {% if settings.DIGID_ENABLED %}
+ {% render_column start=4 span=5 %}
+ {% get_solo 'digid_eherkenning_oidc_generics.OpenIDConnectDigiDConfig' as digid_oidc_config %}
+ {% if eherkenning_oidc_config.enabled %}
+ {% render_card direction='horizontal' tinted=True compact=True %}
+
+
+
+ {% url 'eherkenning_oidc:init' as href %}
+ {% link href=href text=_('Inloggen met eHerkenning') primary=True icon='east' extra_classes="link--next link--eherkenning" %}
+ {% endrender_card %}
+ {% else %}
+ {% render_card direction='horizontal' tinted=True compact=True %}
+
+
+
+ {% url 'eherkenning:login' as href %}
+ {% with href|addnexturl:next as href_with_next %}
+ {% link href=href_with_next text=_('Inloggen met eHerkenning') primary=True icon='east' extra_classes="link--next link--eherkenning" %}
+ {% endwith %}
+ {% endrender_card %}
+ {% endif %}
+ {% endrender_column %}
+
+ {% get_solo 'mozilla_django_oidc_db.OpenIDConnectConfig' as oidc_config %}
+ {% get_solo 'configurations.SiteConfiguration' as site_config %}
+ {% if oidc_config.enabled and site_config.openid_enabled_for_regular_users %}
+ {% render_column start=4 span=5 %}
+ {% render_card tinted=True compact=True direction='horizontal' %}
+ {% if site_config.openid_connect_logo %}
+
+
+
+ {% else %}
+
+ {% endif %}
+ {% url 'oidc_authentication_init' as href %}
+ {% with href|addnexturl:next as href_with_next %}
+ {% link text=site_config.openid_connect_login_text href=href_with_next primary=True icon='east' icon_position="after" extra_classes="link--next link--oidc" %}
+ {% endwith %}
+ {% endrender_card %}
+ {% endrender_column %}
+ {% endif %}
+
+ {% if login_allow_registration %}
+ {% render_column start=4 span=5 %}
+ {% render_card direction='horizontal' tinted=True compact=True %}
+
+ {% icon icon="login" icon_position="before" outlined=True %}
+
+ {% link href="#email" text=_('Log in met e-mail adres') primary=True icon='east' extra_classes="link--next link--email" %}
+ {% endrender_card %}
+ {% endrender_column %}
+
+ {% render_column start=4 span=5 %}
+ {% render_card tinted=True compact=True %}
+ {% render_form id="login-form" method="POST" form=form show_required=True %}
+ {% csrf_token %}
+
+ {% input form.username %}
+ {% input form.password %}
+ {% button text=_('Wachtwoord vergeten?') href='password_reset' primary=True transparent=True align='right' %}
+ {% form_actions primary_text=_("Inloggen") primary_icon="east" secondary_href='django_registration_register' secondary_text=_('Registreer') secondary_icon='east' single=True %}
+ {% endrender_form %}
+ {% endrender_card %}
+ {% endrender_column %}
+
+ {% render_column start=4 span=5 %}
+
Of registreer
+ {% render_card direction='horizontal' tinted=True compact=True %}
+
+ {% icon icon="account_circle" icon_position="before" outlined=True %}
+
+ {% link href="/accounts/register" text=_('Maak een account aan') primary=True icon='east' extra_classes="link--next link--register" %}
+ {% endrender_card %}
+ {% endrender_column %}
+
+ {% endif %}
+
+ {% endif %}
+ {# another Digid end #}
+
+ {% endrender_grid %}
+
+ {# Panel 2 #}
+ {# Panel 2 End #}
+
+
+ {# Tab panels End #}
{% endblock content %}
diff --git a/src/open_inwoner/accounts/templates/registration/login_business.html b/src/open_inwoner/accounts/templates/registration/login_business.html
new file mode 100644
index 0000000000..8756d89ad7
--- /dev/null
+++ b/src/open_inwoner/accounts/templates/registration/login_business.html
@@ -0,0 +1,65 @@
+{% extends 'master.html' %}
+{% load i18n static utils grid_tags card_tags form_tags link_tags button_tags icon_tags solo_tags cms_tags %}
+
+
+{% block header_image %}
+ {% static_placeholder 'login_banner' %}
+{% endblock header_image %}
+
+
+{% block content %}
+
+
{% trans 'Inloggen' %}
+ {% if login_text %}
+
{{ login_text|markdown|safe }}
+ {% endif %}
+
+ {# Tab panels Start #}
+
+
+
+ {# Panel 1 #}
+
+
+ {# Panel 2 #}
+
+
+ {% render_grid %}
+ {% render_column start=4 span=5 %}
+
Zakelijk
+ {% if eherkenning_enabled %}
+ {% get_solo 'digid_eherkenning_oidc_generics.OpenIDConnectEHerkenningConfig' as eherkenning_oidc_config %}
+ {% if eherkenning_oidc_config.enabled %}
+ {% render_card direction='horizontal' tinted=True %}
+
+
+
+ {% url 'eherkenning_oidc:init' as href %}
+ {% link href=href text=_('Inloggen met eHerkenning') primary=True icon='east' extra_classes="link--next link--eherkenning" %}
+ {% endrender_card %}
+ {% else %}
+ {% render_card direction='horizontal' tinted=True %}
+
+
+
+ {% url 'eherkenning:login' as href %}
+ {% with href|addnexturl:next as href_with_next %}
+ {% link href=href_with_next text=_('Inloggen met eHerkenning') primary=True icon='east' extra_classes="link--next link--eherkenning" %}
+ {% endwith %}
+ {% endrender_card %}
+ {% endif %}
+ {% endif %}
+ {% endrender_column %}
+ {% endrender_grid %}
+
+
+ {# Panel 2 End #}
+
+
+
+ {# Tab panels End #}
+
+{% endblock content %}
diff --git a/src/open_inwoner/accounts/tests/test_auth.py b/src/open_inwoner/accounts/tests/test_auth.py
index 9ea470b54e..93f8e0fb9b 100644
--- a/src/open_inwoner/accounts/tests/test_auth.py
+++ b/src/open_inwoner/accounts/tests/test_auth.py
@@ -1642,7 +1642,7 @@ def test_login_page_shows_correct_eherkenning_login_url(self):
else f"{reverse('eherkenning:login')}?next="
)
- response = self.app.get(reverse("login"))
+ response = self.app.get(reverse("login_business"))
eherkenning_login_title = _("Inloggen met eHerkenning")
eherkenning_login_link = response.pyquery(
diff --git a/src/open_inwoner/accounts/views/__init__.py b/src/open_inwoner/accounts/views/__init__.py
index 9ccf128874..7058d48017 100644
--- a/src/open_inwoner/accounts/views/__init__.py
+++ b/src/open_inwoner/accounts/views/__init__.py
@@ -29,6 +29,7 @@
from .invite import InviteAcceptView
from .login import (
AddPhoneNumberWizardView,
+ CustomBusinessLoginView,
CustomLoginView,
ResendTokenView,
VerifyTokenView,
@@ -69,6 +70,7 @@
"InviteAcceptView",
"AddPhoneNumberWizardView",
"CustomLoginView",
+ "CustomBusinessLoginView",
"ResendTokenView",
"VerifyTokenView",
"PasswordResetView",
diff --git a/src/open_inwoner/accounts/views/login.py b/src/open_inwoner/accounts/views/login.py
index e019d71838..105d6fd261 100644
--- a/src/open_inwoner/accounts/views/login.py
+++ b/src/open_inwoner/accounts/views/login.py
@@ -91,6 +91,10 @@ def form_valid(self, form):
return redirect(furl(reverse("verify_token")).add(params).url)
+class CustomBusinessLoginView(CustomLoginView):
+ template_name = "registration/login_business.html"
+
+
class VerifyTokenView(ThrottleMixin, FormView):
throttle_visits = 3
throttle_period = 60
diff --git a/src/open_inwoner/components/templates/components/Header/Header.html b/src/open_inwoner/components/templates/components/Header/Header.html
index 67f85e35a1..450a9541c7 100644
--- a/src/open_inwoner/components/templates/components/Header/Header.html
+++ b/src/open_inwoner/components/templates/components/Header/Header.html
@@ -24,7 +24,7 @@
{% url 'login' as login_url %}
{% trans "Inloggen" as login %}
- {% button text="" title="Inloggen" href=login_url icon="person" icon_position="before" primary=True icon_outlined=True transparent=True %}
+ {% button text="" title="Inloggen" href=login_url icon="person" icon_position="before" primary=True icon_outlined=True %}
{% endif %}
diff --git a/src/open_inwoner/components/templates/components/Header/NavigationAuthenticated.html b/src/open_inwoner/components/templates/components/Header/NavigationAuthenticated.html
index 048d0f7770..a0c80a1ce0 100644
--- a/src/open_inwoner/components/templates/components/Header/NavigationAuthenticated.html
+++ b/src/open_inwoner/components/templates/components/Header/NavigationAuthenticated.html
@@ -36,7 +36,7 @@