From 2b4eafc487ccf2519ba71a34a3b2d355120e88dc 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 Signed-off-by: Baptiste Wojtkowski --- .../intranet-tmpl/prog/css/addbiblio.css | 14 ++++ .../prog/en/modules/cataloguing/additem.tt | 69 ++++++++----------- 2 files changed, 44 insertions(+), 39 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css b/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css index 862cf98eb..eabcaa9cb 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css +++ b/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css @@ -334,6 +334,20 @@ 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; +} + .toolbar-tabs-container { flex-basis: 100%; margin-top: .5em; 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 32c79d0fa..806976701 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -244,58 +244,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.30.2