Bugzilla – Attachment 152189 Details for
Bug 33581
Error in web installer concerning sample holidays and patrons requiring sample libraries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33581: Add sample patrons to patch and some hints
Bug-33581-Add-sample-patrons-to-patch-and-some-hin.patch (text/plain), 2.72 KB, created by
Katrin Fischer
on 2023-06-08 12:50:25 UTC
(
hide
)
Description:
Bug 33581: Add sample patrons to patch and some hints
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-06-08 12:50:25 UTC
Size:
2.72 KB
patch
obsolete
>From 647b17d39d84ecd881e2b2ee5cc2ff074ef8ca77 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Thu, 8 Jun 2023 10:20:02 +0000 >Subject: [PATCH] Bug 33581: Add sample patrons to patch and some hints > >* Adds sample patrons to the new dependency checking JS >* Adds a hind "requires sample libraries" to sample patrons > and sample holidays. > >To test: >* Build CSS (yarn build) >* Veriy the checkbox for sample patrons works like the > sample holidays one >* Verify the hint shows up as intended > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/css/src/installer.scss | 5 +++++ > .../intranet-tmpl/prog/en/modules/installer/step3.tt | 10 ++++++---- > 2 files changed, 11 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss b/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss >index e823531d77..273183a3f0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss >@@ -242,3 +242,8 @@ span.breadcrumbs { > .complete { > color: green; > } >+ >+.hint { >+ color: #727272; >+ font-size: 90%; >+} >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt >index ffd3d36672..85e264edb6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt >@@ -463,14 +463,16 @@ > $( container ).find("input").prop("checked", state); > $( container ).find(".selectall,.deselectall").toggle(); > }); >- function update_sample_libraries_holidays(){ >+ let required_text = _("(requires sample libraries)"); >+ $("#sample_libraries_holidays, #sample_patrons").parent().after(" <span class='hint'>"+required_text+"</span>"); >+ function update_sample_libraries_dependencies(){ > let checked = $("#sample_libraries").prop("checked"); >- $("#sample_libraries_holidays").prop("disabled", !checked); >+ $("#sample_libraries_holidays, #sample_patrons").prop("disabled", !checked); > if (!checked) { >- $("#sample_libraries_holidays").prop("checked", false); >+ $("#sample_libraries_holidays, #sample_patrons").prop("checked", false); > } > }; >- $("#sample_libraries").on("change", update_sample_libraries_holidays); >+ $("#sample_libraries").on("change", update_sample_libraries_dependencies); > $("#sample_libraries").change(); > }); > </script> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33581
:
152083
|
152142
|
152143
|
152188
|
152189
|
153307
|
153308