From 5954f22939f8b3b388611cdcf73ad19506c86653 Mon Sep 17 00:00:00 2001 From: rra Date: Sat, 5 Jun 2021 00:39:53 +0200 Subject: [PATCH] make missing field info appear below input form --- lumbung.space/login/register.ftl | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/lumbung.space/login/register.ftl b/lumbung.space/login/register.ftl index db50984..d37e90f 100755 --- a/lumbung.space/login/register.ftl +++ b/lumbung.space/login/register.ftl @@ -13,13 +13,12 @@ value="${(register.formData.firstName!'')}" aria-invalid="<#if messagesPerField.existsError('firstName')>true" /> - - <#if messagesPerField.existsError('firstName')> - - ${kcSanitize(messagesPerField.get('firstName'))?no_esc} - - + <#if messagesPerField.existsError('firstName')> + + ${kcSanitize(messagesPerField.get('firstName'))?no_esc} + +
@@ -31,14 +30,13 @@ value="${(register.formData.lastName!'')}" aria-invalid="<#if messagesPerField.existsError('lastName')>true" /> - +
<#if messagesPerField.existsError('lastName')> ${kcSanitize(messagesPerField.get('lastName'))?no_esc} - - +
@@ -49,13 +47,13 @@ value="${(register.formData.email!'')}" autocomplete="email" aria-invalid="<#if messagesPerField.existsError('email')>true" /> - +
<#if messagesPerField.existsError('email')> ${kcSanitize(messagesPerField.get('email'))?no_esc} -
+ <#if !realm.registrationEmailAsUsername> @@ -68,13 +66,13 @@ value="${(register.formData.username!'')}" autocomplete="username" aria-invalid="<#if messagesPerField.existsError('username')>true" /> - + <#if messagesPerField.existsError('username')> ${kcSanitize(messagesPerField.get('username'))?no_esc} - + @@ -88,13 +86,13 @@ autocomplete="new-password" aria-invalid="<#if messagesPerField.existsError('password','password-confirm')>true" /> - + <#if messagesPerField.existsError('password')> ${kcSanitize(messagesPerField.get('password'))?no_esc} - +