From e753e81bdc2fe90cb8cbfa2851556eb69cbd9fbb Mon Sep 17 00:00:00 2001 From: Mathieu Yahia-Amar Date: Tue, 2 Jul 2024 00:03:54 +0200 Subject: [PATCH] feat: add IDP review user profile page --- html/login/idp-review-user-profile.html | 136 ++++++++++++++++++ .../keywind/login/idp-review-user-profile.ftl | 76 ++++++++++ 2 files changed, 212 insertions(+) create mode 100644 html/login/idp-review-user-profile.html create mode 100644 theme/keywind/login/idp-review-user-profile.ftl diff --git a/html/login/idp-review-user-profile.html b/html/login/idp-review-user-profile.html new file mode 100644 index 000000000..80a827a32 --- /dev/null +++ b/html/login/idp-review-user-profile.html @@ -0,0 +1,136 @@ + + + + Review Profile + + + + + + + +
+
+
+
Keywind
+

Review Your Profile

+
+
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ +
+
+
+
+
+ « Back to Login +
+ +
+
+ Français +
+
+
+
+
+ + diff --git a/theme/keywind/login/idp-review-user-profile.ftl b/theme/keywind/login/idp-review-user-profile.ftl new file mode 100644 index 000000000..fdee1af0b --- /dev/null +++ b/theme/keywind/login/idp-review-user-profile.ftl @@ -0,0 +1,76 @@ +<#import "template.ftl" as layout> +<#import "components/atoms/button.ftl" as button> +<#import "components/atoms/button-group.ftl" as buttonGroup> +<#import "components/atoms/form.ftl" as form> +<#import "components/atoms/input.ftl" as input> +<#import "components/atoms/link.ftl" as link> + +<@layout.registrationLayout + displayMessage=messagesPerField.exists('global') + displayRequiredFields=false; + section +> + <#if section="header"> + ${msg("loginIdpReviewProfileTitle")} + <#elseif section="form"> + <@form.kw action=url.loginAction method="post"> + + <@input.kw + autocomplete="email" + invalid=messagesPerField.existsError("email") + label=msg("email") + message=kcSanitize(messagesPerField.get("email")) + name="email" + type="email" + value=(user.getEmail())!'' + /> + <@input.kw + autocomplete="given-name" + autofocus=true + invalid=messagesPerField.existsError("firstName") + label=msg("firstName") + message=kcSanitize(messagesPerField.get("firstName")) + name="firstName" + type="text" + value=(user.getFirstName())!'' + /> + <@input.kw + autocomplete="family-name" + invalid=messagesPerField.existsError("lastName") + label=msg("lastName") + message=kcSanitize(messagesPerField.get("lastName")) + name="lastName" + type="text" + value=(user.getLastName())!'' + /> + <#if !realm.registrationEmailAsUsername> + <@input.kw + autocomplete="username" + invalid=messagesPerField.existsError("username") + label=msg("username") + message=kcSanitize(messagesPerField.get("username")) + name="username" + type="text" + value=(user.getUsername())!'' + /> + + +
+
+
+
+
+ +
+ <@button.kw color="primary" type="submit" class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!}"> + ${msg("doSubmit")} + +
+
+ + <#elseif section="nav"> + <@link.kw color="secondary" href=url.loginUrl size="small"> + ${kcSanitize(msg("backToLogin"))?no_esc} + + +