Commit 51f5615d authored by Johannes Buechele's avatar Johannes Buechele
Browse files

#17: fixed code and login-idp link templates, ui fixes

parent 554fd2d9
<#import "template.ftl" as layout>
<@layout.registrationLayout; section>
<#if section = "title">
<#if code.success>
${msg("codeSuccessTitle")}
<#else>
${msg("codeErrorTitle", code.error)}
</#if>
<#elseif section = "form">
<div id="kc-code">
<#if code.success>
<p>${msg("copyCodeInstruction")}</p>
<input id="code" class="${properties.kcTextareaClass!}" value="${code.code}"/>
<#else>
<p id="error">${code.error}</p>
</#if>
<#if section="form">
<section>
<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-80">
<img src="${url.resourcesPath}/img/fairlogin.svg">
</div>
<div class="card fat">
<div class="card-body">
<h4 class="card-title">
<#if code.success>
${msg("codeSuccessTitle")}
<#else>
${msg("codeErrorTitle", code.error)}
</#if>
</h4>
<#include "alert.ftl">
<div id="kc-code">
<#if code.success>
<p>${msg("copyCodeInstruction")}</p>
<input id="code" class="${properties.kcTextareaClass!}" value="${code.code}" />
<#else>
<p id="error">${code.error}</p>
</#if>
</div>
</div>
</div>
<#include "footer.ftl">
</div>
</div>
</div>
</#if>
</section>
</#if>
</@layout.registrationLayout>
<#import "template.ftl" as layout>
<@layout.registrationLayout displayMessage=false; section>
<#if section = "title">
${message.summary}
<#elseif section = "header">
${message.summary}
<#elseif section = "form">
<section>
<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-80">
<img src="${url.resourcesPath}/img/fairlogin.svg">
</div>
<div class="card fat">
<div class="card-body">
<#include "alert.ftl">
<#if section="form">
<section>
<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-80">
<img src="${url.resourcesPath}/img/fairlogin.svg">
</div>
<div class="card fat">
<div class="card-body">
<#include "alert.ftl">
<p class="instruction">${message.summary}
<#if requiredActions??>
<#list requiredActions>:
<b>
<#items as reqActionItem>${msg("requiredAction.${reqActionItem}")}
<#sep>, </#items>
</b>
</#list>
<p class="instruction">${message.summary}
<#if requiredActions??>
<#list requiredActions>:
<b>
<#items as reqActionItem>${msg("requiredAction.${reqActionItem}")}
<#sep>, </#items>
</b>
</#list>
<#else>
</#if>
</p>
<#if skipLink??>
<#else>
</#if>
</p>
<#if skipLink??>
<#else>
<#if pageRedirectUri??>
<p>
<a href="${pageRedirectUri}">${msg("backToApplication")?no_esc}</a>
</p>
<#elseif actionUri??>
<#if pageRedirectUri??>
<p>
<a href="${actionUri}">${msg("proceedWithAction")?no_esc}</a>
<a href="${pageRedirectUri}">${msg("backToApplication")?no_esc}</a>
</p>
<#elseif client.baseUrl??>
<#elseif actionUri??>
<p>
<a href="${client.baseUrl}">${msg("backToApplication")?no_esc}</a>
<a href="${actionUri}">${msg("proceedWithAction")?no_esc}</a>
</p>
</#if>
</#if>
<#elseif client.baseUrl??>
<p>
<a href="${client.baseUrl}">${msg("backToApplication")?no_esc}</a>
</p>
</#if>
</#if>
</div>
</div>
<#include "footer.ftl">
</div>
<#include "footer.ftl">
</div>
</div>
</div>
</section>
</section>
</#if>
</@layout.registrationLayout>
\ No newline at end of file
<#import "template.ftl" as layout>
<@layout.registrationLayout displayInfo=true; section>
<#if section="form">
<#if section="form">
<section>
<div class="container h-100">
<div class="row justify-content-md-center h-100">
......
<#import "template.ftl" as layout>
<@layout.registrationLayout; section>
<#if section = "title">
${msg("confirmLinkIdpTitle")}
<#elseif section = "header">
${msg("confirmLinkIdpTitle")}
<#elseif section = "form">
<form id="kc-register-form" class="${properties.kcFormClass!}" action="${url.loginAction}" method="post">
<button type="submit" class="${properties.kcButtonClass!} ${properties.kcButtonDefaultClass!} ${properties.kcButtonLargeClass!}" name="submitAction" id="updateProfile" value="updateProfile">${msg("confirmLinkIdpReviewProfile")}</button>
<button type="submit" class="${properties.kcButtonClass!} ${properties.kcButtonDefaultClass!} ${properties.kcButtonLargeClass!}" name="submitAction" id="linkAccount" value="linkAccount">${msg("confirmLinkIdpContinue", idpAlias)}</button>
</form>
</#if>
<#if section="form">
<section>
<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-80">
<img src="${url.resourcesPath}/img/fairlogin.svg">
</div>
<div class="card fat">
<div class="card-body">
<h4 class="card-title">${msg("confirmLinkIdpTitle")}</h4>
<#include "alert.ftl">
<form id="kc-register-form" action="${url.loginAction}" method="post">
<button type="submit" class="btn btn-primary" name="submitAction" id="updateProfile" value="updateProfile">${msg("confirmLinkIdpReviewProfile")}</button>
<button type="submit" class="btn btn-secondary" name="submitAction" id="linkAccount" value="linkAccount">${msg("confirmLinkIdpContinue", idpAlias)}</button>
</form>
</div>
</div>
<#include "footer.ftl">
</div>
</div>
</div>
</section>
</#if>
</@layout.registrationLayout>
\ No newline at end of file
<#import "template.ftl" as layout>
<@layout.registrationLayout; section>
<#if section = "title">
${msg("emailLinkIdpTitle", idpAlias)}
<#elseif section = "header">
${msg("emailLinkIdpTitle", idpAlias)}
<#elseif section = "form">
<p id="instruction1" class="instruction">
${msg("emailLinkIdp1", idpAlias, brokerContext.username, realm.displayName)}
</p>
<p id="instruction2" class="instruction">
${msg("emailLinkIdp2")} <a href="${url.loginAction}">${msg("doClickHere")}</a> ${msg("emailLinkIdp3")}
</p>
<p id="instruction3" class="instruction">
${msg("emailLinkIdp4")} <a href="${url.loginAction}">${msg("doClickHere")}</a> ${msg("emailLinkIdp5")}
</p>
</#if>
<#if section="form">
<section>
<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-80">
<img src="${url.resourcesPath}/img/fairlogin.svg">
</div>
<div class="card fat">
<div class="card-body">
<h4 class="card-title">${msg("emailLinkIdpTitle", idpAlias)}</h4>
<#include "alert.ftl">
<p id="instruction1" class="instruction">
${msg("emailLinkIdp1", idpAlias, brokerContext.username, realm.displayName)}
</p>
<p id="instruction2" class="instruction">
${msg("emailLinkIdp2")}
<a href="${url.loginAction}">${msg("doClickHere")}</a> ${msg("emailLinkIdp3")}
</p>
<p id="instruction3" class="instruction">
${msg("emailLinkIdp4")}
<a href="${url.loginAction}">${msg("doClickHere")}</a> ${msg("emailLinkIdp5")}
</p>
</div>
</div>
<#include "footer.ftl">
</div>
</div>
</div>
</section>
</#if>
</@layout.registrationLayout>
\ No newline at end of file
<#import "template.ftl" as layout>
<@layout.registrationLayout displayInfo=true; section>
<#if section="form">
<#if section="form">
<section>
<div class="container h-100">
<div class="row justify-content-md-center align-items-center h-100">
......
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