diff --git a/lib/auth/bento-theme/login/template.ftl b/lib/auth/bento-theme/login/template.ftl index fd2f3222d..fc4b15a6b 100644 --- a/lib/auth/bento-theme/login/template.ftl +++ b/lib/auth/bento-theme/login/template.ftl @@ -27,8 +27,7 @@ @@ -57,30 +56,7 @@ -
+
${kcSanitize(msg( @@ -211,11 +187,6 @@
- diff --git a/lib/auth/bento-theme/login/user-profile-commons.ftl b/lib/auth/bento-theme/login/user-profile-commons.ftl index 55446d176..aeb608c4c 100644 --- a/lib/auth/bento-theme/login/user-profile-commons.ftl +++ b/lib/auth/bento-theme/login/user-profile-commons.ftl @@ -35,11 +35,7 @@ <#nested "beforeField" attribute> -
+
- - + + <#if attribute.annotations.inputHelperTextAfter??> +
${kcSanitize(advancedMsg(attribute.annotations.inputHelperTextAfter))?no_esc}
+ +
<#nested "afterField" attribute> @@ -106,12 +81,18 @@ <@inputTagSelects attribute=attribute/> <#break> <#default> - <@inputTag attribute=attribute/> + <#if attribute.multivalued && attribute.values?has_content> + <#list attribute.values as value> + <@inputTag attribute=attribute value=value!''/> + + <#else> + <@inputTag attribute=attribute value=(attribute.value!attribute.defaultValue!'')/> + -<#macro inputTag attribute> - + disabled <#if attribute.autocomplete??>autocomplete="${attribute.autocomplete}" @@ -123,7 +104,6 @@ <#if attribute.annotations.inputTypeMax??>max="${attribute.annotations.inputTypeMax}" <#if attribute.annotations.inputTypeMin??>min="${attribute.annotations.inputTypeMin}" <#if attribute.annotations.inputTypeStep??>step="${attribute.annotations.inputTypeStep}" - <#if attribute.annotations.inputTypeStep??>step="${attribute.annotations.inputTypeStep}" <#list attribute.html5DataAnnotations as key, value> data-${key}="${value}"