63 lines
3.8 KiB
Plaintext
Executable file
63 lines
3.8 KiB
Plaintext
Executable file
<#import "template.ftl" as layout>
|
|
<#import "user-profile-commons.ftl" as userProfileCommons>
|
|
<@layout.registrationLayout displayMessage=messagesPerField.exists('global') displayRequiredFields=true; section>
|
|
<#if section = "header">
|
|
${msg("registerTitle")}
|
|
<#elseif section = "form">
|
|
<form id="kc-register-form" class="ps-container" action="${url.registrationAction}" method="post">
|
|
|
|
<@userProfileCommons.userProfileFormFields; callback, attribute>
|
|
<#if callback = "afterField">
|
|
<#-- render password fields just under the username or email (if used as username) -->
|
|
<#if passwordRequired?? && (attribute.name == 'username' || (attribute.name == 'email' && realm.registrationEmailAsUsername))>
|
|
<div class="${properties.kcFormGroupClass!}">
|
|
<label for="password" class="${properties.kcLabelClass!}">${msg("password")}</label> *
|
|
<input type="password" id="password" class="${properties.kcInputClass!}" name="password"
|
|
autocomplete="new-password"
|
|
aria-invalid="<#if messagesPerField.existsError('password','password-confirm')>true</#if>"
|
|
/>
|
|
|
|
<#if messagesPerField.existsError('password')>
|
|
<span id="input-error-password" class="${properties.kcInputErrorMessageClass!}" aria-live="polite">
|
|
${kcSanitize(messagesPerField.get('password'))?no_esc}
|
|
</span>
|
|
</#if>
|
|
</div>
|
|
|
|
<div class="${properties.kcFormGroupClass!}">
|
|
<label for="password-confirm"
|
|
class="${properties.kcLabelClass!}">${msg("passwordConfirm")}</label> *
|
|
<input type="password" id="password-confirm" class="${properties.kcInputClass!}"
|
|
name="password-confirm"
|
|
aria-invalid="<#if messagesPerField.existsError('password-confirm')>true</#if>"
|
|
/>
|
|
|
|
<#if messagesPerField.existsError('password-confirm')>
|
|
<span id="input-error-password-confirm" class="${properties.kcInputErrorMessageClass!}" aria-live="polite">
|
|
${kcSanitize(messagesPerField.get('password-confirm'))?no_esc}
|
|
</span>
|
|
</#if>
|
|
</div>
|
|
</#if>
|
|
</#if>
|
|
</@userProfileCommons.userProfileFormFields>
|
|
|
|
<#if recaptchaRequired??>
|
|
<div class="ps-form-group">
|
|
<div class="g-recaptcha" data-size="compact" data-sitekey="${recaptchaSiteKey}"></div>
|
|
</div>
|
|
</#if>
|
|
|
|
<div class="${properties.kcFormGroupClass!}">
|
|
<div id="kc-form-options" class="${properties.kcFormOptionsClass!}">
|
|
<span><a href="${url.loginUrl}">${kcSanitize(msg("backToLogin"))?no_esc}</a></span>
|
|
</div>
|
|
|
|
<div id="kc-form-buttons" class="${properties.kcFormButtonsClass!}">
|
|
<input class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!}" type="submit" value="${msg("doRegister")}"/>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</#if>
|
|
</@layout.registrationLayout>
|