Update Templates

This commit is contained in:
Philipp Klüter
2020-09-29 20:37:23 +02:00
parent 8f32c7dd4f
commit 8067d7c76a
3 changed files with 19 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
<#import "template.ftl" as layout> <#import "template.ftl" as layout>
<@layout.registrationLayout; section> <@layout.registrationLayout; section>
<#if section="header"> <#if section="header">
${msg("loginTitle",(realm.displayName!''))} <h1 class="login-title display-5 mb-3 d-lg-none">OTP Validation</h1>
<h1 class="login-title display-3 mb-5 d-none d-lg-block">OTP Validation</h1>
<#elseif section="form"> <#elseif section="form">
<h1 class="login-title display-3 mb-5">OTP Validation</h1>
<form id="kc-otp-login-form" class="" <form id="kc-otp-login-form" class=""
action="${url.loginAction}" action="${url.loginAction}"
method="post"> method="post">

View File

@@ -1,9 +1,9 @@
<#import "template.ftl" as layout> <#import "template.ftl" as layout>
<@layout.registrationLayout displayInfo=social.displayInfo displayWide=(realm.password && social.providers??); section> <@layout.registrationLayout displayInfo=social.displayInfo displayWide=(realm.password && social.providers??); section>
<#if section = "header"> <#if section = "header">
${msg("loginTitle",(realm.displayName!''))} <h1 class="login-title display-5 mb-3 d-lg-none">Login</h1>
<h1 class="login-title display-3 mb-5 d-none d-lg-block">Login</h1>
<#elseif section = "form"> <#elseif section = "form">
<h1 class="login-title display-3 mb-5">Log In</h1>
<form onsubmit="login.disabled = true; return true;" action="${url.loginAction}" method="post"> <form onsubmit="login.disabled = true; return true;" action="${url.loginAction}" method="post">
<div class="form-group mb-2"> <div class="form-group mb-2">
<label for="username">Username</label> <label for="username">Username</label>

View File

@@ -24,6 +24,21 @@
<img src="${url.resourcesPath}/images/logo_left.png" alt="logo" class="logo"> <img src="${url.resourcesPath}/images/logo_left.png" alt="logo" class="logo">
</div> </div>
<div class="login-wrapper my-auto"> <div class="login-wrapper my-auto">
<#nested "header">
<#-- App-initiated actions should not see warning messages about the need to complete the action -->
<#-- during login. -->
<#if displayMessage && message?has_content && (message.type != 'warning' || !isAppInitiatedAction??)>
<#if message.type == 'error'>
<div class="alert alert-danger">
<#else>
<div class="alert alert-${message.type}">
<#endif>
<span>${kcSanitize(message.summary)?no_esc}</span>
</div>
</#if>
<#nested "form"> <#nested "form">
</div> </div>
</div> </div>