From ff9d98911382c59c9ff75b2cd1ac17e4ec3b44ae Mon Sep 17 00:00:00 2001 From: Jake Deery Date: Thu, 29 Jan 2026 14:45:34 +0000 Subject: [PATCH] Bug 14962: Add hints as option on Vue FormElement This patch adds the ability to add hints to form elements in Vue, essential for the On Display module. Please see the test files commit for instructions on how to test this bundle of patches. Sponsored-by: ByWater Solutions Signed-of-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/css/src/_forms.scss | 4 ++++ .../intranet-tmpl/prog/js/vue/components/FormElement.vue | 3 +++ 2 files changed, 7 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_forms.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_forms.scss index bd87ad856ed..6f2c8854de1 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/_forms.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/_forms.scss @@ -255,6 +255,10 @@ fieldset { margin: 0 0 0 1em; } + div.hint { + margin-left: 7rem; + } + li.radio { padding-left: 0; } diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/FormElement.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/FormElement.vue index 8379c7eea33..e3ae50bddc3 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/FormElement.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/FormElement.vue @@ -193,6 +193,9 @@ {{ attr.formErrorMessage }} +
+ {{ attr.hint }} +