From a75caed845705db1823f798a28b8c07c095bf771 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 23 Jul 2025 15:06:47 +0000 Subject: [PATCH] Bug 40557: Fix layout of enrollment period fields in onboarding This patch makes updates to CSS and markup in order to fix the layout of the enrollment period fields during the onboarding process. To test, apply the patch and rebuild the staff interface CSS. - Drop and recreate your Koha database. - Restart all services - Follow the web installer until you reach the onboarding stage "Create a patron category." - The enrollment period fields should look correct. Sponsored-by: Athens County Public Libraries Signed-off-by: David Nind --- .../intranet-tmpl/prog/css/src/installer.scss | 20 +++++++++++ .../en/modules/onboarding/onboardingstep2.tt | 35 +++++++++---------- 2 files changed, 36 insertions(+), 19 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss b/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss index e52280c5164..6f6db1781e8 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss @@ -192,6 +192,14 @@ fieldset { margin-left: 1em; width: auto; } + + &.form-label { + display: block; + float: none; + margin: 0; + text-align: left; + width: auto; + } } span.label { @@ -237,6 +245,18 @@ fieldset { margin-right: 4em; margin-top: .5em; } + + .form-control { + width: auto; + } + + .enrolmentperioddate { + float: left; + + + .hint { + margin-left: 0; + } + } } } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt index 9fad050e02c..fb4d009ef62 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt @@ -115,25 +115,22 @@
  • - Enrolment period: -
    -
      -
    1. Choose one
    2. -
    3. - - [% IF category.enrolmentperiod %] - - [% ELSE %] - - [% END %] -
    4. -
    5. - - -
      [% INCLUDE 'date-format.inc' dateformat = Koha.Preference('dateformat') %]
      -
    6. -
    -
    + Enrolment period (choose one): +
    +
    + + [% IF category.enrolmentperiod %] + + [% ELSE %] + + [% END %] +
    +
    + + +
    [% INCLUDE 'date-format.inc' dateformat = Koha.Preference('dateformat') %]
    +
    +
  • -- 2.39.5