mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
Login[v2]: "Update email" screen is not polished
Signed-off-by: Réda Housni Alaoui <reda-alaoui@hey.com>
This commit is contained in:
parent
acf39b34c3
commit
a99149b83a
@ -33,13 +33,10 @@ public class UpdateEmailPage extends LogoutSessionsPage {
|
||||
@FindBy(id = "input-error-email")
|
||||
private WebElement inputErrorEmail;
|
||||
|
||||
@FindBy(css = "button[name='cancel-aia']")
|
||||
@FindBy(id = "kc-cancel")
|
||||
private WebElement cancelActionButton;
|
||||
|
||||
@FindBy(css = "input[type='submit']")
|
||||
private WebElement submitActionButton;
|
||||
|
||||
@FindBy(css = "input[type='submit']")
|
||||
@FindBy(id = "kc-submit")
|
||||
private WebElement submitButton;
|
||||
|
||||
@Override
|
||||
@ -80,7 +77,7 @@ public class UpdateEmailPage extends LogoutSessionsPage {
|
||||
}
|
||||
|
||||
public void clickSubmitAction() {
|
||||
clickLink(submitActionButton);
|
||||
clickLink(submitButton);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -28,10 +28,10 @@ public class EmailUpdatePage extends AbstractPage {
|
||||
@FindBy(id = "email")
|
||||
private WebElement emailInput;
|
||||
|
||||
@FindBy(css = "input[type=\"submit\"]")
|
||||
@FindBy(id = "kc-submit")
|
||||
private WebElement submitButton;
|
||||
|
||||
@FindBy(name = "cancel-aia")
|
||||
@FindBy(id = "kc-cancel")
|
||||
private WebElement cancelAIAButton;
|
||||
|
||||
@FindBy(id = "input-error-email")
|
||||
|
||||
@ -0,0 +1,29 @@
|
||||
<#import "template.ftl" as layout>
|
||||
<#import "password-commons.ftl" as passwordCommons>
|
||||
<#import "user-profile-commons.ftl" as userProfileCommons>
|
||||
<#import "buttons.ftl" as buttons>
|
||||
<@layout.registrationLayout displayMessage=messagesPerField.exists('global') displayRequiredFields=false; section>
|
||||
<#if section = "header">
|
||||
${msg("updateEmailTitle")}
|
||||
<#elseif section = "form">
|
||||
<form id="kc-update-email-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>
|
||||
|
||||
<@passwordCommons.logoutOtherSessions/>
|
||||
|
||||
<@buttons.actionGroup horizontal=true>
|
||||
<@buttons.button id="kc-submit" label="doSubmit" class=["kcButtonPrimaryClass","kcButtonBlockClass"]/>
|
||||
<#if isAppInitiatedAction??>
|
||||
<@buttons.button id="kc-cancel" label="doCancel" class=["kcButtonSecondaryClass","kcButtonBlockClass"] name="cancel-aia" value="true"/>
|
||||
</#if>
|
||||
</@buttons.actionGroup>
|
||||
</div>
|
||||
</form>
|
||||
</#if>
|
||||
</@layout.registrationLayout>
|
||||
Loading…
x
Reference in New Issue
Block a user