-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: redesign of Keycloak login theme (#135)
* chore: small fixes * Update organization create and onboard page HTML * Update logo and font styles * docs: append Changelog * fix: band-aided OTP form --------- Co-authored-by: Kamil Czaja <[email protected]> Co-authored-by: Kamil Czaja <[email protected]>
- Loading branch information
1 parent
0e7adcf
commit d0b1bec
Showing
8 changed files
with
147 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<#import "template.ftl" as layout> | ||
<@layout.registrationLayout displayMessage=!messagesPerField.existsError('totp'); section> | ||
<#if section="header"> | ||
${msg("doLogIn")} | ||
<#elseif section="form"> | ||
<form id="kc-otp-login-form" class="${properties.kcFormClass!}" action="${url.loginAction}" | ||
method="post"> | ||
<#if otpLogin.userOtpCredentials?size gt 1> | ||
<div class="${properties.kcFormGroupClass!}"> | ||
<div class="${properties.kcInputWrapperClass!}"> | ||
<#list otpLogin.userOtpCredentials as otpCredential> | ||
<input id="kc-otp-credential-${otpCredential?index}" class="${properties.kcLoginOTPListInputClass!}" type="radio" name="selectedCredentialId" value="${otpCredential.id}" <#if otpCredential.id == otpLogin.selectedCredentialId>checked="checked"</#if>> | ||
<label for="kc-otp-credential-${otpCredential?index}" class="${properties.kcLoginOTPListClass!}" tabindex="${otpCredential?index}"> | ||
<span class="${properties.kcLoginOTPListItemHeaderClass!}"> | ||
<span class="${properties.kcLoginOTPListItemIconBodyClass!}"> | ||
<i class="${properties.kcLoginOTPListItemIconClass!}" aria-hidden="true"></i> | ||
</span> | ||
<span class="${properties.kcLoginOTPListItemTitleClass!}">${otpCredential.userLabel}</span> | ||
</span> | ||
</label> | ||
</#list> | ||
</div> | ||
</div> | ||
</#if> | ||
|
||
<div class="${properties.kcFormGroupClass!}"> | ||
<div class="${properties.kcLabelWrapperClass!}"> | ||
<label for="otp" class="${properties.kcLabelClass!}">${msg("loginOtpOneTime")}</label> | ||
</div> | ||
|
||
<div class="${properties.kcInputWrapperClass!}"> | ||
<input id="otp" name="otp" autocomplete="off" type="text" class="text-input" | ||
autofocus aria-invalid="<#if messagesPerField.existsError('totp')>true</#if>"/> | ||
|
||
<#if messagesPerField.existsError('totp')> | ||
<span id="input-error-otp-code" class="${properties.kcInputErrorMessageClass!}" | ||
aria-live="polite"> | ||
${kcSanitize(messagesPerField.get('totp'))?no_esc} | ||
</span> | ||
</#if> | ||
</div> | ||
</div> | ||
|
||
<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!}" | ||
name="login" id="kc-login" type="submit" value="${msg("doLogIn")}" /> | ||
</div> | ||
</div> | ||
</form> | ||
</#if> | ||
</@layout.registrationLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
authority-portal-keycloak/mds-theme/login/logout-confirm.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<#import "template.ftl" as layout> | ||
<@layout.registrationLayout; section> | ||
<#if section = "header"> | ||
${msg("logoutConfirmTitle")} | ||
<#elseif section = "form"> | ||
<div id="kc-logout-confirm" class="content-area"> | ||
<h3 class="instruction">${msg("logoutConfirmHeader")}</h3> | ||
|
||
<form class="form-actions" action="${url.logoutConfirmAction}" method="POST"> | ||
<input type="hidden" name="session_code" value="${logoutConfirm.code}"> | ||
<div class="${properties.kcFormGroupClass!}"> | ||
<div id="kc-form-options"> | ||
<div class="${properties.kcFormOptionsWrapperClass!}"> | ||
</div> | ||
</div> | ||
|
||
<div id="kc-form-buttons" class="${properties.kcFormGroupClass!}"> | ||
<input tabindex="4" | ||
class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!}" | ||
name="confirmLogout" id="kc-logout" type="submit" value="${msg("doLogout")}"/> | ||
</div> | ||
|
||
</div> | ||
</form> | ||
|
||
<div id="kc-info-message"> | ||
<#if logoutConfirm.skipLink> | ||
<#else> | ||
<#if (client.baseUrl)?has_content> | ||
<h4><a href="${client.baseUrl}">${kcSanitize(msg("backToApplication"))?no_esc}</a></h4> | ||
</#if> | ||
</#if> | ||
</div> | ||
|
||
<div class="clearfix"></div> | ||
</div> | ||
</#if> | ||
</@layout.registrationLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters