[KEYCLOAK-18541] separate template for IDP review page
This commit is contained in:
parent
a8fdd79d1b
commit
7618e66136
4 changed files with 27 additions and 2 deletions
|
@ -75,8 +75,9 @@ public class Templates {
|
||||||
case SAML_POST_FORM:
|
case SAML_POST_FORM:
|
||||||
return "saml-post-form.ftl";
|
return "saml-post-form.ftl";
|
||||||
case UPDATE_USER_PROFILE:
|
case UPDATE_USER_PROFILE:
|
||||||
case IDP_REVIEW_USER_PROFILE:
|
|
||||||
return "update-user-profile.ftl";
|
return "update-user-profile.ftl";
|
||||||
|
case IDP_REVIEW_USER_PROFILE:
|
||||||
|
return "idp-review-user-profile.ftl";
|
||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException();
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,7 @@ public class KcOidcFirstBrokerLoginWithUserProfileTest extends KcOidcFirstBroker
|
||||||
updateAccountInformationPage.assertCurrent();
|
updateAccountInformationPage.assertCurrent();
|
||||||
|
|
||||||
//assert fields location in form
|
//assert fields location in form
|
||||||
String htmlFormId = "kc-update-profile-form";
|
String htmlFormId = "kc-idp-review-profile-form";
|
||||||
Assert.assertTrue(
|
Assert.assertTrue(
|
||||||
driver.findElement(
|
driver.findElement(
|
||||||
By.cssSelector("form#"+htmlFormId+" > div:nth-child(1) > div:nth-child(2) > input#lastName")
|
By.cssSelector("form#"+htmlFormId+" > div:nth-child(1) > div:nth-child(2) > input#lastName")
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
<#import "template.ftl" as layout>
|
||||||
|
<#import "user-profile-commons.ftl" as userProfileCommons>
|
||||||
|
<@layout.registrationLayout displayMessage=messagesPerField.exists('global') displayRequiredFields=true; section>
|
||||||
|
<#if section = "header">
|
||||||
|
${msg("loginIdpReviewProfileTitle")}
|
||||||
|
<#elseif section = "form">
|
||||||
|
<form id="kc-idp-review-profile-form" class="${properties.kcFormClass!}" action="${url.loginAction}" method="post">
|
||||||
|
|
||||||
|
<@userProfileCommons.userProfileFormFields/>
|
||||||
|
|
||||||
|
<div class="${properties.kcFormGroupClass!}">
|
||||||
|
<div id="kc-form-options" class="${properties.kcFormOptionsClass!}">
|
||||||
|
<div class="${properties.kcFormOptionsWrapperClass!}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="kc-form-buttons" class="${properties.kcFormButtonsClass!}">
|
||||||
|
<input class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!}" type="submit" value="${msg("doSubmit")}" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</#if>
|
||||||
|
</@layout.registrationLayout>
|
|
@ -31,6 +31,7 @@ realmChoice=Realm
|
||||||
unknownUser=Unknown user
|
unknownUser=Unknown user
|
||||||
loginTotpTitle=Mobile Authenticator Setup
|
loginTotpTitle=Mobile Authenticator Setup
|
||||||
loginProfileTitle=Update Account Information
|
loginProfileTitle=Update Account Information
|
||||||
|
loginIdpReviewProfileTitle=Update Account Information
|
||||||
loginTimeout=Your login attempt timed out. Login will start from the beginning.
|
loginTimeout=Your login attempt timed out. Login will start from the beginning.
|
||||||
oauthGrantTitle=Grant Access to {0}
|
oauthGrantTitle=Grant Access to {0}
|
||||||
oauthGrantTitleHtml={0}
|
oauthGrantTitleHtml={0}
|
||||||
|
|
Loading…
Reference in a new issue