From 0df8289c4028d495d9248e961906e24c3b8006ea Mon Sep 17 00:00:00 2001 From: Magnus Enger Date: Thu, 15 Feb 2018 10:14:56 +0100 Subject: [PATCH] Bug 20205 - Add IDs to buttons in patron-toolbar.inc The buttons in patron-toolbar.inc lack unique IDs, making them hard to style/remove with CSS. This patch adds IDs to all three buttons. To test: - Look in koha-tmpl/intranet-tmpl/prog/en/includes/patron-toolbar.inc and verify there are no IDs - Apply the patch and look at the file again to verify the IDs have been added - Test the "New patron" and "Quick add new patron" buttons to verify they still work as intended - Check that the new buttons are globally unique: $ grep -rn "new-patron-button" * $ grep -rn "patron-lists-button" * Signed-off-by: Owen Leonard --- koha-tmpl/intranet-tmpl/prog/en/includes/patron-toolbar.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-toolbar.inc index c76953d..147ff11 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-toolbar.inc @@ -5,14 +5,14 @@ [% UNLESS ( no_add ) %]
-
+
[% IF Koha.Preference('PatronQuickAddFields') || Koha.Preference('BorrowerMandatoryField') %] -
+
[% END %] [% IF CAN_user_tools_manage_patron_lists %] - Patron lists + Patron lists [% END %]
-- 2.1.4