Commit 124ac8ee authored by jbuechele's avatar jbuechele
Browse files

redesigned error.ftl, login-oauth-grant.ftl

parent 58cc21b1
<#import "template.ftl" as layout>
<@layout.registrationLayout displayMessage=false; section>
<#if section = "title">
${msg("errorTitle")}
<#elseif section = "header">
${msg("errorTitleHtml")?no_esc}
<#elseif section = "form">
<div id="kc-error-message">
<p class="instruction">${message.summary}</p>
<#if section = "form">
<section class="h-100">
<div class="container h-100">
<div class="row justify-content-md-center align-items-center h-100">
<div class="card-wrapper">
<div class="text-center margin-bottom-30 margin-top-30">
<img src="${url.resourcesPath}/img/fairlogin_logo.png">
</div>
<div class="card fat">
<div class="card-body">
<h4 class="card-title">${msg("errorTitleHtml")?no_esc}</h4>
<#if message?has_content>
<#if message.type = 'success'>
<div class="alert alert-success" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'warning'>
<div class="alert alert-warning" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'error'>
<div class="alert alert-danger" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'info'>
<div class="alert alert-info" role="alert">
${message.summary?no_esc}
</div>
</#if>
</#if>
<ul>
<div id="kc-error-message">
<#if client?? && client.baseUrl?has_content>
<p><a id="backToApplication" href="${client.baseUrl}">${msg("backToApplication")?no_esc}</a></p>
</#if>
</div>
</section>
</#if>
</@layout.registrationLayout>
\ No newline at end of file
<#import "template.ftl" as layout>
<@layout.registrationLayout bodyClass="oauth"; section>
<#if section = "title">
${msg("oauthGrantTitle")}
<#elseif section = "header">
${msg("oauthGrantTitleHtml",(realm.displayNameHtml!''))?no_esc} <strong><#if client.name??>${advancedMsg(client.name)}<#else>${client.clientId}</#if></strong>.
<#elseif section = "form">
<div id="kc-oauth" class="content-area">
<h3>${msg("oauthGrantRequest")}</h3>
<ul>
<#if section = "form">
<section class="h-100">
<div class="container h-100">
<div class="row justify-content-md-center align-items-center h-100">
<div class="card-wrapper">
<div class="text-center margin-bottom-30 margin-top-30">
<img src="${url.resourcesPath}/img/fairlogin_logo.png">
</div>
<div class="card fat">
<div class="card-body">
<h4 class="card-title">${msg("oauthGrantRequest")}</h4>
<#if message?has_content>
<#if message.type = 'success'>
<div class="alert alert-success" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'warning'>
<div class="alert alert-warning" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'error'>
<div class="alert alert-danger" role="alert">
${message.summary?no_esc}
</div>
</#if>
<#if message.type = 'info'>
<div class="alert alert-info" role="alert">
${message.summary?no_esc}
</div>
</#if>
</#if>
<ul>
<#if oauth.claimsRequested??>
<li>
<span>
......@@ -54,12 +80,17 @@
<div id="kc-form-buttons" class="${properties.kcFormButtonsClass!}">
<div class="${properties.kcFormButtonsWrapperClass!}">
<input class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonLargeClass!}" name="accept" id="kc-login" type="submit" value="${msg("doYes")}"/>
<input class="${properties.kcButtonClass!} ${properties.kcButtonDefaultClass!} ${properties.kcButtonLargeClass!}" name="cancel" id="kc-cancel" type="submit" value="${msg("doNo")}"/>
<input class="btn btn-primary" name="accept" id="kc-login" type="submit" value="${msg("doYes")}"/>
<input class="btn btn-secondary" name="cancel" id="kc-cancel" type="submit" value="${msg("doNo")}"/>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</#if>
</@layout.registrationLayout>
\ No newline at end of file
......@@ -41,9 +41,9 @@
<form id="kc-form-login" class="form ${properties.kcFormClass!}" action="${url.loginAction}" method="post">
<div class="form-group">
<label for="email">E-Mail Address</label>
<label for="username">E-Mail Address</label>
<input id="email" type="email" class="form-control" name="email" value="" required autofocus>
<input id="username" type="email" class="form-control" name="username" value="" required autofocus>
</div>
<div class="form-group">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment