diff --git a/themes/src/main/resources/theme/base/login/login-recovery-authn-code-config.ftl b/themes/src/main/resources/theme/base/login/login-recovery-authn-code-config.ftl
index c6be951abf..c664fc7076 100644
--- a/themes/src/main/resources/theme/base/login/login-recovery-authn-code-config.ftl
+++ b/themes/src/main/resources/theme/base/login/login-recovery-authn-code-config.ftl
@@ -5,188 +5,182 @@
<#if section = "header">
${msg("recovery-code-config-header")}
<#elseif section = "form">
-
-
-
-
-
-
- Warning alert:
- ${msg("recovery-code-config-warning-title")}
-
-
-
${msg("recovery-code-config-warning-message")}
-
-
+
+
+
+
+
+
+ Warning alert:
+ ${msg("recovery-code-config-warning-title")}
+
+
+
${msg("recovery-code-config-warning-message")}
+
+
-
-
-
-
- <#list recoveryAuthnCodesConfigBean.generatedRecoveryAuthnCodesList as code>
- - ${code[0..3]}-${code[4..7]}-${code[8..]}
+
+ <#list recoveryAuthnCodesConfigBean.generatedRecoveryAuthnCodesList as code>
+ - ${code?counter}: ${code[0..3]}-${code[4..7]}-${code[8..]}
#list>
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
+ id="saveRecoveryAuthnCodesBtn" value="${msg("recovery-codes-action-complete")}"
+ disabled
+ />
#if>
- @layout.registrationLayout>
+
+
+
+#if>
+@layout.registrationLayout>
diff --git a/themes/src/main/resources/theme/keycloak.v2/login/login-recovery-authn-code-config.ftl b/themes/src/main/resources/theme/keycloak.v2/login/login-recovery-authn-code-config.ftl
index ea1e459dc2..e895cf137f 100644
--- a/themes/src/main/resources/theme/keycloak.v2/login/login-recovery-authn-code-config.ftl
+++ b/themes/src/main/resources/theme/keycloak.v2/login/login-recovery-authn-code-config.ftl
@@ -3,190 +3,177 @@
<@layout.registrationLayout; section>
<#if section = "header">
- ${msg("recovery-code-config-header")}
+ ${msg("recovery-code-config-header")}
<#elseif section = "form">
-
-
-
-
-
-
- Warning alert:
- ${msg("recovery-code-config-warning-title")}
-
-
-
${msg("recovery-code-config-warning-message")}
-
-
-
-
-
-
-
- <#list recoveryAuthnCodesConfigBean.generatedRecoveryAuthnCodesList as code>
- - ${code[0..3]}-${code[4..7]}-${code[8..]}
- #list>
-
-
-
+
+
+
+
+
+ Warning alert:
+ ${msg("recovery-code-config-warning-title")}
+
+
+
${msg("recovery-code-config-warning-message")}
+
+
-
-
-
-
-
-
+
+
+
+
+ <#list recoveryAuthnCodesConfigBean.generatedRecoveryAuthnCodesList as code>
+ - ${code[0..3]}-${code[4..7]}-${code[8..]}
+ #list>
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
-
+
-
- #if>
- @layout.registrationLayout>
+ function printRecoveryCodes() {
+ const w = window.open();
+ w.document.write(buildPrintContent());
+ w.print();
+ w.close();
+ }
+
+#if>
+@layout.registrationLayout>
diff --git a/themes/src/main/resources/theme/keycloak.v2/login/resources/css/styles.css b/themes/src/main/resources/theme/keycloak.v2/login/resources/css/styles.css
index 2481ddbf26..3d58c96acb 100644
--- a/themes/src/main/resources/theme/keycloak.v2/login/resources/css/styles.css
+++ b/themes/src/main/resources/theme/keycloak.v2/login/resources/css/styles.css
@@ -69,7 +69,7 @@ div.kc-logo-text span {
border-color: transparent black transparent transparent;
}
-.kc-recovery-codes-list {
+#kc-recovery-codes-list {
columns: 2;
}