From e3952ec38c83ceee7f37464f006ad2f7ffecaf20 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 | 10 +++ .../prog/en/modules/cataloguing/additem.tt | 68 ++++++++----------- 2 files changed, 40 insertions(+), 38 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css b/koha-tmpl/intranet-tmpl/prog/css/addbiblio.css index ae89201194..4968aa99b2 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; } 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 a41569fe99..359c594815 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -214,57 +214,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.39.5