From fbef3945a9b5acd465a2b714214e84c71ca60059 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 21 Jan 2025 21:27:43 +0000 Subject: [PATCH] Bug 38942: Fix display issues with item-template-toolbar This patch does the following: -Adds a 'btn' and 'btn-default' class to the buttons in the item-template-toolbar -Removes the btn-group parent containers -Changes the wording of the remember session checkbox to 'Remember for session', just like it is on the check out screen for due dates. -Adds a visual divider after the 'Remember for session' checkbox -Add CSS to addbiblio.css to make the checkbox/label appear a little nicer To test: -Add an item and 'Save as template' -Notice the toolbar buttons look different from other toolbars in Koha. -Apply patch -Look again, the buttons should look better, hopefully! Signed-off-by: Barbara Johnson --- .../intranet-tmpl/prog/css/addbiblio.css | 12 +++- .../prog/en/modules/cataloguing/additem.tt | 69 ++++++++----------- 2 files changed, 41 insertions(+), 40 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css b/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css index ae89201194d..69e5de2a4f4 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css +++ b/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css @@ -326,6 +326,16 @@ tbody tr.active td { width: 15em; } +#item-template-toolbar div:has(label[for="use_template_for_session"]) { + display: flex; + align-items: center; +} + +#item-template-toolbar div:has(label[for="use_template_for_session"])::after { + content: "|"; + padding-left: 7px; +} + #toolbar { padding: 5px 0; } @@ -521,4 +531,4 @@ tbody tr.active td { font-size: 100%; font-weight: bold; padding: 0; -} +} \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index 72ec98529ea..f978cf1433e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -242,58 +242,49 @@ [% IF item_templates.owned.count || item_templates.shared.count %]
-
- + + + [% FOREACH t IN item_templates.owned %] + [% IF t.id == template_id %] + + [% ELSE %] + + [% END %] + [% END %] + + + [% FOREACH t IN item_templates.shared %] + [% IF t.id == template_id %] + [% IF CAN_user_editcatalogue_manage_item_editor_templates %] + [% ELSE %] - + [% END %] - [% END %] - - - [% FOREACH t IN item_templates.shared %] - [% IF t.id == template_id %] - [% IF CAN_user_editcatalogue_manage_item_editor_templates %] - - [% ELSE %] - - [% END %] + [% ELSE %] + [% IF CAN_user_editcatalogue_manage_item_editor_templates %] + [% ELSE %] - [% IF CAN_user_editcatalogue_manage_item_editor_templates %] - - [% ELSE %] - - [% END %] + [% END %] [% END %] - - -
-
- -
-
+ [% END %] + + + +
+ Remember for session +
-
- -
- -
- -
+ +
[% END %] -- 2.34.1