diff --git a/frontend/src/lib/components/form/form-input.svelte b/frontend/src/lib/components/form/form-input.svelte index ab76404c..ffb62dee 100644 --- a/frontend/src/lib/components/form/form-input.svelte +++ b/frontend/src/lib/components/form/form-input.svelte @@ -8,6 +8,7 @@ import type { Snippet } from 'svelte'; import type { HTMLAttributes } from 'svelte/elements'; import FormattedMessage from '../formatted-message.svelte'; + import { cn } from '$lib/utils/style'; type WithoutChildren = { children?: undefined; @@ -48,44 +49,53 @@ const id = label?.toLowerCase().replace(/ /g, '-'); - - {#if label} - {label} - {/if} - {#if description} - - - {#if docsLink} - - {m.docs()} - - - {/if} - - {/if} - {#if children} - {@render children()} - {:else if input} - {#if type === 'date'} - - {:else} - onInput?.(e)} - /> + +
+ {#if label} + {label} {/if} - {/if} - {#if input?.error} - {input.error} - {/if} + {#if description} + + + {#if docsLink} + + {m.docs()} + + + {/if} + + {/if} +
+
+ {#if children} + {@render children()} + {:else if input} + {#if type === 'date'} + + {:else} + onInput?.(e)} + /> + {/if} + {/if} + {#if input?.error} + {input.error} + {/if} +
diff --git a/frontend/src/routes/settings/admin/application-configuration/forms/app-config-ldap-form.svelte b/frontend/src/routes/settings/admin/application-configuration/forms/app-config-ldap-form.svelte index 15cbf9d5..bb7aebd2 100644 --- a/frontend/src/routes/settings/admin/application-configuration/forms/app-config-ldap-form.svelte +++ b/frontend/src/routes/settings/admin/application-configuration/forms/app-config-ldap-form.svelte @@ -133,7 +133,7 @@ />

{m.attribute_mapping()}

-
+