diff --git a/themes/src/main/resources/theme/keycloak.v2/login/template.ftl b/themes/src/main/resources/theme/keycloak.v2/login/template.ftl index e8326b3db4..ddfc4b7e00 100644 --- a/themes/src/main/resources/theme/keycloak.v2/login/template.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/template.ftl @@ -27,7 +27,6 @@ diff --git a/themes/src/main/resources/theme/keycloak.v2/login/theme.properties b/themes/src/main/resources/theme/keycloak.v2/login/theme.properties index 4e69c0b95e..7dc49dc6dc 100644 --- a/themes/src/main/resources/theme/keycloak.v2/login/theme.properties +++ b/themes/src/main/resources/theme/keycloak.v2/login/theme.properties @@ -26,4 +26,7 @@ kcLoginClass=pf-v5-c-login__main kcFormClass=pf-v5-c-form kcFormCardClass=card-pf -kcResetFlowIcon=pf-icon fas fa-share-square \ No newline at end of file +kcResetFlowIcon=pf-icon fas fa-share-square + +kcSelectAuthListItemClass= pf-v5-c-data-list__item pf-m-clickable select-auth-box-parent +kcSelectAuthListItemHeadingClass=pf-v5-u-font-family-heading select-auth-box-headline diff --git a/themes/src/main/resources/theme/keycloak.v2/login/user-profile-commons.ftl b/themes/src/main/resources/theme/keycloak.v2/login/user-profile-commons.ftl index 99cd4b9549..6019fac8d7 100644 --- a/themes/src/main/resources/theme/keycloak.v2/login/user-profile-commons.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/user-profile-commons.ftl @@ -35,62 +35,25 @@ <#nested "beforeField" attribute> -
- x-data="{ - values: [${(attribute.values?map(s -> s!''?js_string)?map(s -> '{ value: \'' + s + '\'}')?join(", ")!'')}], - kcMultivalued: ${attribute.html5DataAnnotations?keys?seq_contains('kcMultivalued')?string('true', 'false')} - }" - <#else> - x-data="{ - values: [{ value: '${(attribute.value!'')}' }], - kcMultivalued: ${attribute.html5DataAnnotations?keys?seq_contains('kcMultivalued')?string('true', 'false')} - }" - - > - - -
<#nested "afterField" attribute> @@ -114,12 +77,18 @@ <@inputTagSelects attribute=attribute/> <#break> <#default> - <@inputTag attribute=attribute value=attribute.value!/> + <#if attribute.multivalued && attribute.values?has_content> + <#list attribute.values as value> + <@inputTag attribute=attribute value=value!''/> + + <#else> + <@inputTag attribute=attribute value=attribute.value!''/> + <#macro inputTag attribute value> - disabled <#if attribute.autocomplete??>autocomplete="${attribute.autocomplete}"