<#import "template.ftl" as layout> <#import "user-profile-commons.ftl" as userProfileCommons> <#import "register-commons.ftl" as registerCommons> <@layout.registrationLayout displayMessage=messagesPerField.exists('global') displayRequiredFields=true; section> <#if section = "header"> <#if messageHeader??> ${kcSanitize(msg("${messageHeader}"))?no_esc} <#else> ${msg("registerTitle")} <#elseif section = "form">
<@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))>
*
<#if messagesPerField.existsError('password')> ${kcSanitize(messagesPerField.get('password'))?no_esc}
*
<#if messagesPerField.existsError('password-confirm')> ${kcSanitize(messagesPerField.get('password-confirm'))?no_esc}
<@registerCommons.termsAcceptance/> <#if recaptchaRequired?? && (recaptchaVisible!false)>
<#if recaptchaRequired?? && !(recaptchaVisible!false)>
<#else>