From 64e2cd157b800c100aa93655ebb03a25a2ca68a7 Mon Sep 17 00:00:00 2001 From: Simon Krull Date: Mon, 9 Feb 2026 10:14:22 +0100 Subject: [PATCH 1/2] TASK: combine title and subtitle template to one --- config/twig_hooks/shop.yaml | 9 --------- .../index/content/main/header/subtitle.html.twig | 1 - .../dashboard/index/content/main/header/title.html.twig | 7 ++++++- 3 files changed, 6 insertions(+), 11 deletions(-) delete mode 100644 templates/shop/account/dashboard/index/content/main/header/subtitle.html.twig diff --git a/config/twig_hooks/shop.yaml b/config/twig_hooks/shop.yaml index 61bec38..636020e 100644 --- a/config/twig_hooks/shop.yaml +++ b/config/twig_hooks/shop.yaml @@ -10,9 +10,6 @@ sylius_twig_hooks: title: template: '@BitExpertSyliusTwoFactorAuthPlugin/shop/account/dashboard/index/content/main/header/title.html.twig' priority: 100 - subtitle: - template: '@BitExpertSyliusTwoFactorAuthPlugin/shop/account/dashboard/index/content/main/header/subtitle.html.twig' - priority: 0 'sylius_shop.bitexpert_sylius_twofactor.account.dashboard.index.content.main.section': overview: @@ -32,9 +29,6 @@ sylius_twig_hooks: title: template: '@BitExpertSyliusTwoFactorAuthPlugin/shop/account/dashboard/index/content/main/header/title.html.twig' priority: 100 - subtitle: - template: '@BitExpertSyliusTwoFactorAuthPlugin/shop/account/dashboard/index/content/main/header/subtitle.html.twig' - priority: 0 # 2FA Setup wizard for Email Auth 'sylius_shop.bitexpert_sylius_twofactor.email.index.content.main': @@ -49,9 +43,6 @@ sylius_twig_hooks: title: template: '@BitExpertSyliusTwoFactorAuthPlugin/shop/account/dashboard/index/content/main/header/title.html.twig' priority: 100 - subtitle: - template: '@BitExpertSyliusTwoFactorAuthPlugin/shop/account/dashboard/index/content/main/header/subtitle.html.twig' - priority: 0 # 2FA login page 'sylius_shop.bitexpert_sylius_twofactor.login': diff --git a/templates/shop/account/dashboard/index/content/main/header/subtitle.html.twig b/templates/shop/account/dashboard/index/content/main/header/subtitle.html.twig deleted file mode 100644 index 9b1119b..0000000 --- a/templates/shop/account/dashboard/index/content/main/header/subtitle.html.twig +++ /dev/null @@ -1 +0,0 @@ -Make your account more secure by enabling 2FA diff --git a/templates/shop/account/dashboard/index/content/main/header/title.html.twig b/templates/shop/account/dashboard/index/content/main/header/title.html.twig index b49fce1..f2a2da4 100644 --- a/templates/shop/account/dashboard/index/content/main/header/title.html.twig +++ b/templates/shop/account/dashboard/index/content/main/header/title.html.twig @@ -1 +1,6 @@ -

2FA Configuration

+
+

{{ 'bitexpert_sylius_twofactor.shop.form.2fa_headline'|trans }}

+

+ {{ 'bitexpert_sylius_twofactor.shop.form.2fa_subtitle'|trans }} +

+
From ef87326296a9e42e5e02343c341f5ea0173651c1 Mon Sep 17 00:00:00 2001 From: Simon Krull Date: Mon, 9 Feb 2026 10:14:34 +0100 Subject: [PATCH 2/2] TASK: add missing translations --- translations/messages.de.yml | 1 + translations/messages.en.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/translations/messages.de.yml b/translations/messages.de.yml index 0bd5746..287cf1d 100644 --- a/translations/messages.de.yml +++ b/translations/messages.de.yml @@ -20,6 +20,7 @@ bitexpert_sylius_twofactor: label: 2FA-Konfiguration form: 2fa_headline: 2FA-Einrichtung + 2fa_subtitle: Machen Sie Ihr Konto sicherer, indem Sie 2FA aktivieren. 2fa_active: 2FA aktiviert 2fa_inactive: 2FA nicht aktiv google: diff --git a/translations/messages.en.yml b/translations/messages.en.yml index 99ad0e1..cb913d0 100644 --- a/translations/messages.en.yml +++ b/translations/messages.en.yml @@ -20,6 +20,7 @@ bitexpert_sylius_twofactor: label: 2FA Configuration form: 2fa_headline: 2FA Setup + 2fa_subtitle: Make your account more secure by enabling 2FA 2fa_active: 2FA enabled 2fa_inactive: 2FA not active google: