2022-11-26 02:03:53 +00:00
|
|
|
<#macro registrationLayout bodyClass="" displayInfo=false displayMessage=true displayRequiredFields=false>
|
2022-11-27 01:17:33 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
2022-11-26 02:03:53 +00:00
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2022-11-27 01:17:33 +00:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
2022-11-26 02:03:53 +00:00
|
|
|
<meta name="robots" content="noindex, nofollow">
|
|
|
|
|
2022-11-27 01:17:33 +00:00
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
|
|
|
2022-11-26 02:03:53 +00:00
|
|
|
<title>${msg("loginTitle",(realm.displayName!''))}</title>
|
2022-11-27 01:17:33 +00:00
|
|
|
|
|
|
|
<link rel="icon" href="${url.resourcesPath}/img/pub.solar.svg" />
|
|
|
|
|
|
|
|
<link href="${url.resourcesPath}/css/index.css" rel="stylesheet" />
|
|
|
|
|
|
|
|
<script defer src="${url.resourcesPath}/js/background.js" type="text/javascript"></script>
|
|
|
|
|
2022-11-26 02:03:53 +00:00
|
|
|
<#if properties.stylesCommon?has_content>
|
|
|
|
<#list properties.stylesCommon?split(' ') as style>
|
|
|
|
<link href="${url.resourcesCommonPath}/${style}" rel="stylesheet" />
|
|
|
|
</#list>
|
|
|
|
</#if>
|
|
|
|
<#if properties.styles?has_content>
|
|
|
|
<#list properties.styles?split(' ') as style>
|
|
|
|
<link href="${url.resourcesPath}/${style}" rel="stylesheet" />
|
|
|
|
</#list>
|
|
|
|
</#if>
|
|
|
|
<#if properties.scripts?has_content>
|
|
|
|
<#list properties.scripts?split(' ') as script>
|
2022-11-27 01:17:33 +00:00
|
|
|
<script defer src="${url.resourcesPath}/${script}" type="text/javascript"></script>
|
2022-11-26 02:03:53 +00:00
|
|
|
</#list>
|
|
|
|
</#if>
|
2022-11-27 01:17:33 +00:00
|
|
|
<#if properties.scriptsCommon?has_content>
|
|
|
|
<#list properties.scriptsCommon?split(' ') as script>
|
|
|
|
<script defer src="${url.resourcesCommonPath}/${script}" type="text/javascript"></script>
|
2022-11-26 02:03:53 +00:00
|
|
|
</#list>
|
|
|
|
</#if>
|
|
|
|
</head>
|
|
|
|
|
2022-11-27 01:47:13 +00:00
|
|
|
<body class="ps-main ps-main_full">
|
2022-11-27 01:17:33 +00:00
|
|
|
<div
|
|
|
|
id="background"
|
|
|
|
class="ps-background ps-main--background"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
id="x1312"
|
|
|
|
class="ps-background--1312"
|
|
|
|
>0x1312</div>
|
|
|
|
<div
|
|
|
|
id="logo"
|
|
|
|
class="ps-background--logo ps-logo"
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
class="ps-logo--base"
|
|
|
|
src="${url.resourcesPath}/img/pub.solar.svg"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<main class="ps-main--page ps-page">
|
2022-11-27 20:38:41 +00:00
|
|
|
|
|
|
|
<header class="ps-page--header ps-header">
|
|
|
|
|
|
|
|
<a href="https://pub.solar/" class="ps-homelink">pub.solar/</a>
|
|
|
|
|
|
|
|
<#if realm.internationalizationEnabled && locale.supported?size gt 1>
|
|
|
|
<ul class="ps-i18n-links">
|
|
|
|
<#list locale.supported as l>
|
|
|
|
<li class="ps-i18n-links--item">
|
|
|
|
<a
|
|
|
|
class="ps-i18n-links--link <#if locale.current == l.label >ps-i18n-links--link_active</#if>"
|
|
|
|
href="${l.url}"
|
|
|
|
>${l.label}</a>
|
|
|
|
</li>
|
|
|
|
</#list>
|
|
|
|
</ul>
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<section class="ps-page--section ps-page--section_full">
|
|
|
|
|
2022-11-27 01:17:33 +00:00
|
|
|
<#if !(auth?has_content && auth.showUsername() && !auth.showResetCredentials())>
|
2022-11-27 20:38:41 +00:00
|
|
|
<h1 class="ps-page--title"><#nested "header"></h1>
|
2022-11-27 01:17:33 +00:00
|
|
|
<#if displayRequiredFields>
|
2022-11-27 01:47:13 +00:00
|
|
|
<div class="${properties.kcLabelWrapperClass!} subtitle">
|
|
|
|
<span class="subtitle"><span class="required">*</span> ${msg("requiredFields")}</span>
|
2022-11-26 02:03:53 +00:00
|
|
|
</div>
|
|
|
|
</#if>
|
2022-11-27 01:17:33 +00:00
|
|
|
<#else>
|
|
|
|
<#if displayRequiredFields>
|
|
|
|
<div class="${properties.kcContentWrapperClass!}">
|
|
|
|
<div class="${properties.kcLabelWrapperClass!} subtitle">
|
|
|
|
<span class="subtitle"><span class="required">*</span> ${msg("requiredFields")}</span>
|
2022-11-26 02:03:53 +00:00
|
|
|
</div>
|
2022-11-27 01:17:33 +00:00
|
|
|
<div class="col-md-10">
|
|
|
|
<#nested "show-username">
|
|
|
|
<div id="kc-username" class="${properties.kcFormGroupClass!}">
|
|
|
|
<label id="kc-attempted-username">${auth.attemptedUsername}</label>
|
|
|
|
<a id="reset-login" href="${url.loginRestartFlowUrl}" aria-label="${msg("restartLoginTooltip")}">
|
|
|
|
<div class="kc-login-tooltip">
|
|
|
|
<i class="${properties.kcResetFlowIcon!}"></i>
|
|
|
|
<span class="kc-tooltip-text">${msg("restartLoginTooltip")}</span>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<#else>
|
|
|
|
<#nested "show-username">
|
|
|
|
<div id="kc-username" class="${properties.kcFormGroupClass!}">
|
|
|
|
<label id="kc-attempted-username">${auth.attemptedUsername}</label>
|
|
|
|
<a id="reset-login" href="${url.loginRestartFlowUrl}" aria-label="${msg("restartLoginTooltip")}">
|
|
|
|
<div class="kc-login-tooltip">
|
|
|
|
<i class="${properties.kcResetFlowIcon!}"></i>
|
|
|
|
<span class="kc-tooltip-text">${msg("restartLoginTooltip")}</span>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
2022-11-26 02:03:53 +00:00
|
|
|
</#if>
|
2022-11-27 01:17:33 +00:00
|
|
|
</#if>
|
2022-11-27 20:38:41 +00:00
|
|
|
|
2022-11-27 01:47:13 +00:00
|
|
|
<div class="ps-page--section-contents ps-container">
|
2022-11-27 20:38:41 +00:00
|
|
|
|
|
|
|
<#-- App-initiated actions should not see warning messages about the need to complete the action -->
|
|
|
|
<#-- during login. -->
|
2022-11-27 01:47:13 +00:00
|
|
|
<#if displayMessage && message?has_content && (message.type != 'warning' || !isAppInitiatedAction??)>
|
|
|
|
<div class="alert-${message.type} ${properties.kcAlertClass!} pf-m-<#if message.type = 'error'>danger<#else>${message.type}</#if>">
|
|
|
|
<div class="pf-c-alert__icon">
|
|
|
|
<#if message.type = 'success'><span class="${properties.kcFeedbackSuccessIcon!}"></span></#if>
|
|
|
|
<#if message.type = 'warning'><span class="${properties.kcFeedbackWarningIcon!}"></span></#if>
|
|
|
|
<#if message.type = 'error'><span class="${properties.kcFeedbackErrorIcon!}"></span></#if>
|
|
|
|
<#if message.type = 'info'><span class="${properties.kcFeedbackInfoIcon!}"></span></#if>
|
|
|
|
</div>
|
|
|
|
<span class="${properties.kcAlertTitleClass!}">${kcSanitize(message.summary)?no_esc}</span>
|
|
|
|
</div>
|
|
|
|
</#if>
|
2022-11-26 02:03:53 +00:00
|
|
|
|
2022-11-27 01:47:13 +00:00
|
|
|
<#nested "form">
|
2022-11-26 02:03:53 +00:00
|
|
|
|
2022-11-27 01:47:13 +00:00
|
|
|
<#if auth?has_content && auth.showTryAnotherWayLink()>
|
|
|
|
<form id="kc-select-try-another-way-form" action="${url.loginAction}" method="post">
|
|
|
|
<div class="${properties.kcFormGroupClass!}">
|
|
|
|
<input type="hidden" name="tryAnotherWay" value="on"/>
|
|
|
|
<a href="#" id="try-another-way"
|
|
|
|
onclick="document.forms['kc-select-try-another-way-form'].submit();return false;">${msg("doTryAnotherWay")}</a>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</#if>
|
2022-11-27 01:17:33 +00:00
|
|
|
|
2022-11-27 01:47:13 +00:00
|
|
|
<#nested "socialProviders">
|
2022-11-26 02:03:53 +00:00
|
|
|
|
2022-11-27 01:47:13 +00:00
|
|
|
<#if displayInfo>
|
|
|
|
<div id="kc-info" class="${properties.kcSignUpClass!}">
|
|
|
|
<div id="kc-info-wrapper" class="${properties.kcInfoAreaWrapperClass!}">
|
|
|
|
<#nested "info">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</#if>
|
|
|
|
</div>
|
|
|
|
</section>
|
2022-11-26 02:03:53 +00:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</#macro>
|