163 lines
6.8 KiB
Plaintext
163 lines
6.8 KiB
Plaintext
<#macro registrationLayout bodyClass="" displayInfo=false displayMessage=true displayRequiredFields=false>
|
|
<!DOCTYPE html>
|
|
<html class="${properties.kcHtmlClass!}">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
<meta name="robots" content="noindex, nofollow">
|
|
|
|
<#if properties.meta?has_content>
|
|
<#list properties.meta?split(' ') as meta>
|
|
<meta name="${meta?split('==')[0]}" content="${meta?split('==')[1]}"/>
|
|
</#list>
|
|
</#if>
|
|
<title>${msg("loginTitle",(realm.displayName!''))}</title>
|
|
<link rel="icon" href="${url.resourcesPath}/img/favicon.ico" />
|
|
<#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>
|
|
<script src="${url.resourcesPath}/${script}" type="text/javascript"></script>
|
|
</#list>
|
|
</#if>
|
|
<#if scripts??>
|
|
<#list scripts as script>
|
|
<script src="${script}" type="text/javascript"></script>
|
|
</#list>
|
|
</#if>
|
|
</head>
|
|
|
|
<body class="${properties.kcBodyClass!}">
|
|
<header>
|
|
<div id="header-content">
|
|
<img src="${url.resourcesPath}/img/favicon.ico" width="32" height="32" alt="UNIX.dog"/>
|
|
<h1>${kcSanitize(msg("loginTitleHtml",(realm.displayNameHtml!'')))?no_esc}</h1>
|
|
<div id="nav">
|
|
<!-- TODO: nav -->
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<main>
|
|
<div class="${properties.kcLoginClass!}">
|
|
<div class="${properties.kcFormCardClass!}">
|
|
<!--
|
|
<#if realm.internationalizationEnabled && locale.supported?size gt 1>
|
|
<div class="${properties.kcLocaleMainClass!}" id="kc-locale">
|
|
<div id="kc-locale-wrapper" class="${properties.kcLocaleWrapperClass!}">
|
|
<div id="kc-locale-dropdown" class="${properties.kcLocaleDropDownClass!}">
|
|
<a href="#" id="kc-current-locale-link">${locale.current}</a>
|
|
<ul class="${properties.kcLocaleListClass!}">
|
|
<#list locale.supported as l>
|
|
<li class="${properties.kcLocaleListItemClass!}">
|
|
<a class="${properties.kcLocaleItemClass!}" href="${l.url}">${l.label}</a>
|
|
</li>
|
|
</#list>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</#if>
|
|
-->
|
|
<#if !(auth?has_content && auth.showUsername() && !auth.showResetCredentials())>
|
|
<#if displayRequiredFields>
|
|
<div class="${properties.kcContentWrapperClass!}">
|
|
<div class="${properties.kcLabelWrapperClass!} subtitle">
|
|
<span class="subtitle"><span class="required">*</span> ${msg("requiredFields")}</span>
|
|
</div>
|
|
<div class="col-md-10">
|
|
<h1 id="kc-page-title"><#nested "header"></h1>
|
|
</div>
|
|
</div>
|
|
<#else>
|
|
<h1 id="kc-page-title"><#nested "header"></h1>
|
|
</#if>
|
|
<#else>
|
|
<#if displayRequiredFields>
|
|
<div class="${properties.kcContentWrapperClass!}">
|
|
<div class="${properties.kcLabelWrapperClass!} subtitle">
|
|
<span class="subtitle"><span class="required">*</span> ${msg("requiredFields")}</span>
|
|
</div>
|
|
<div class="col-md-10">
|
|
<#nested "show-username">
|
|
<div id="kc-username" class="${properties.kcFormGroupClass!}">
|
|
<p>Logging in as:
|
|
<b><label
|
|
id="kc-attempted-username">${auth.attemptedUsername}</label></b>.
|
|
<a id="reset-login" href="${url.loginRestartFlowUrl}" aria-label="${msg("restartLoginTooltip")}">
|
|
<span
|
|
class="kc-tooltip-text">${msg("restartLoginTooltip")}.</span>
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<#else>
|
|
<#nested "show-username">
|
|
<div id="kc-username" class="${properties.kcFormGroupClass!}">
|
|
<p>Logging in as:
|
|
<b><label
|
|
id="kc-attempted-username">${auth.attemptedUsername}</label></b>.
|
|
<a id="reset-login" href="${url.loginRestartFlowUrl}" aria-label="${msg("restartLoginTooltip")}">
|
|
<span
|
|
class="kc-tooltip-text">${msg("restartLoginTooltip")}.</span>
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</#if>
|
|
</#if>
|
|
<div id="kc-content">
|
|
<div id="kc-content-wrapper">
|
|
|
|
<#-- 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??)>
|
|
<div class="alert-${message.type} ${properties.kcAlertClass!} pf-m-<#if message.type = 'error'>danger<#else>${message.type}</#if>">
|
|
<span class="${properties.kcAlertTitleClass!}">${kcSanitize(message.summary)?no_esc}</span>
|
|
</div>
|
|
</#if>
|
|
|
|
<#nested "form">
|
|
|
|
<#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"/>
|
|
<input type="submit"
|
|
value="${msg("doTryAnotherWay")}"/>
|
|
</div>
|
|
</form>
|
|
</#if>
|
|
|
|
<#if displayInfo>
|
|
<div id="kc-info" class="${properties.kcSignUpClass!}">
|
|
<div id="kc-info-wrapper" class="${properties.kcInfoAreaWrapperClass!}">
|
|
<#nested "info">
|
|
</div>
|
|
</div>
|
|
</#if>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<footer>
|
|
🄯 <a
|
|
href="https://git.unix.dog/UNIX.dog/website">Copyleft</a> UNIX.dog,
|
|
2023. All pages licensed under CC BY-NC-SA 4.0.
|
|
<br>
|
|
Please follow <a href="/rules">all rules</a> while using these services.
|
|
</footer>
|
|
</body>
|
|
</html>
|
|
</#macro>
|