Bugzilla – Attachment 170784 Details for
Bug 37748
In Bootstrap 5 "disabled" class must be on anchor tag, not list item
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37748: In Bootstrap 5 "disabled" class must be on anchor tag, not list item
Bug-37748-In-Bootstrap-5-disabled-class-must-be-on.patch (text/plain), 41.72 KB, created by
Owen Leonard
on 2024-08-27 20:19:45 UTC
(
hide
)
Description:
Bug 37748: In Bootstrap 5 "disabled" class must be on anchor tag, not list item
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2024-08-27 20:19:45 UTC
Size:
41.72 KB
patch
obsolete
>From 1505b1f2161be6455989c7cfd76b3d1fa12564ed Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 27 Aug 2024 11:43:01 +0000 >Subject: [PATCH] Bug 37748: In Bootstrap 5 "disabled" class must be on anchor > tag, not list item > >This patch revises the markup for disabled dropdown menu items to >conform to Bootstrap 5 requirements. The patch also revises many >instances of Bootstrap tooltips which were not working -- tooltips which >should be shown with many of the disable dropdown items. > >In BS5, a tooltip can't be attached to a disabled link. Instead the >tooltip must be attached to the link's container. These changes also >include the addition of "aria-disabled='true'" to the disabled menu >items. > >Sponsored-by: Athens County Public Libraries >--- > .../prog/css/src/_variables.scss | 2 +- > .../prog/css/src/staff-global.scss | 10 ---- > .../en/includes/budgets-admin-toolbar.inc | 45 +++++++------- > .../prog/en/includes/cat-toolbar.inc | 22 +++---- > .../prog/en/includes/clubs-table.inc | 4 +- > .../intranet-tmpl/prog/en/includes/header.inc | 2 +- > .../prog/en/includes/members-toolbar.inc | 60 ++++++++++++++----- > .../prog/en/includes/serials-toolbar.inc | 8 ++- > .../prog/en/modules/admin/aqbudgetperiods.tt | 22 +++---- > .../prog/en/modules/admin/aqbudgets.tt | 10 +++- > .../en/modules/admin/marc-overlay-rules.tt | 1 + > .../prog/en/modules/catalogue/itemsearch.tt | 1 + > .../prog/en/modules/clubs/clubs.tt | 3 + > .../prog/en/modules/tools/export.tt | 12 +++- > .../prog/en/modules/tools/stockrotation.tt | 4 +- > .../prog/en/modules/tools/upload.tt | 12 ++-- > koha-tmpl/intranet-tmpl/prog/js/catalog.js | 10 ++-- > .../prog/js/messaging-preference-form.js | 2 +- > .../prog/js/pages/stockrotation.js | 1 + > .../intranet-tmpl/prog/js/serials-toolbar.js | 1 + > .../bootstrap/en/includes/masthead.inc | 2 +- > 21 files changed, 137 insertions(+), 97 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/_variables.scss b/koha-tmpl/intranet-tmpl/prog/css/src/_variables.scss >index 65ae2a556d..1cf18685d2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/_variables.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/_variables.scss >@@ -1259,7 +1259,7 @@ $dropdown-divider-bg: $dropdown-border-color; > $dropdown-divider-margin-y: 0; // $spacer * .5; > $dropdown-box-shadow: 0 6px 12px rgba(0,0,0,0.3); // var(--#{$prefix}box-shadow); > >-$dropdown-link-color: $link-color; // var(--#{$prefix}body-color); >+$dropdown-link-color: var(--#{$prefix}body-color); > $dropdown-link-hover-color: $dropdown-link-color; > $dropdown-link-hover-bg: $gray-300; // var(--#{$prefix}tertiary-bg); > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >index 1c6d0389e0..53d1e6fc4f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -95,16 +95,6 @@ $enable-dark-mode: false; > margin-top: -1px; > } > >-.btn-group { >- .dropdown-item { >- color: #000; >- >- &:active { >- color: #FFF; >- } >- } >-} >- > .page-section { > @include card; > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc >index 535ca9e500..469d6332e9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc >@@ -5,8 +5,8 @@ > <ul class="dropdown-menu"> > <li><a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form">New budget</a></li> > [% IF ( budget_period_locked || !CAN_user_acquisition_budget_add_del ) %] >- <li class="disabled"> >- <a class="dropdown-item" data-bs-toggle="tooltip" data-bs-placement="left" title="The budget is locked" href="#">New fund for [% budget_period_description | html %]</a> >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="The budget is locked"> >+ <a class="dropdown-item disabled" aria-disabled="true" href="#">New fund for [% budget_period_description | html %]</a> > </li> > [% ELSE %] > <li> >@@ -27,31 +27,34 @@ > <div class="btn-group"> > <button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Planning</button> > <ul class="dropdown-menu"> >- [% IF ( CAN_user_acquisition_planning_manage ) %] > <li> >- [% ELSE %] >- <li class="disabled"> >- [% END %] >- <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&authcat=MONTHS">Plan by months</a></li> >- [% IF ( CAN_user_acquisition_planning_manage ) %] >+ [% IF ( CAN_user_acquisition_planning_manage ) %] >+ <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&authcat=MONTHS">Plan by months</a> >+ [% ELSE %] >+ <a class="dropdown-item disabled" aria-disabled="true" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&authcat=MONTHS">Plan by months</a> >+ [% END %] >+ </li> > <li> >- [% ELSE %] >- <li class="disabled"> >- [% END %] >- <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&authcat=BRANCHES">Plan by libraries</a></li> >- [% IF ( CAN_user_acquisition_planning_manage ) %] >+ [% IF ( CAN_user_acquisition_planning_manage ) %] >+ <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&authcat=BRANCHES">Plan by libraries</a> >+ [% ELSE %] >+ <a class="dropdown-item disabled" aria-disabled="true" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&authcat=BRANCHES">Plan by libraries</a> >+ [% END %] >+ </li> > <li> >- [% ELSE %] >- <li class="disabled"> >- [% END %] >- <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&authcat=ITEMTYPES">Plan by item types</a></li> >- [% FOREACH auth_cats_loo IN auth_cats_loop %] > [% IF ( CAN_user_acquisition_planning_manage ) %] >- <li> >+ <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&authcat=ITEMTYPES">Plan by item types</a></li> > [% ELSE %] >- <li class="disabled"> >+ <a class="dropdown-item disabled" aria-disabled="true" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&authcat=ITEMTYPES">Plan by item types</a> > [% END %] >- <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&authcat=[% auth_cats_loo | uri %]">Plan by [% auth_cats_loo | html %]</a> >+ </li> >+ [% FOREACH auth_cats_loo IN auth_cats_loop %] >+ <li> >+ [% IF ( CAN_user_acquisition_planning_manage ) %] >+ <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&authcat=[% auth_cats_loo | uri %]">Plan by [% auth_cats_loo | html %]</a> >+ [% ELSE %] >+ <a class="dropdown-item disabled" aria-disabled="true" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&authcat=[% auth_cats_loo | uri %]">Plan by [% auth_cats_loo | html %]</a> >+ [% END %] > </li> > [% END %] > </ul> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >index cd91a3bd7a..4b99bbea27 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >@@ -43,7 +43,7 @@ > [% IF biblio.can_be_edited(logged_in_user) %] > <li><a class="dropdown-item" id="editbiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber | html %]">Edit record</a></li> > [% ELSE %] >- <li><a class="dropdown-item disabled" aria-disabled="true" id="editbiblio" href="#" data-bs-toggle="tooltip" data-bs-placement="left" title="This record is locked">Edit record</a></li> >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="This record is locked"><a class="dropdown-item disabled" aria-disabled="true" id="editbiblio" href="#">Edit record</a></li> > [% END %] > [% END %] > >@@ -75,8 +75,8 @@ > </form> > </li> > [% ELSE %] >- <li> >- <a class="dropdown-item disabled" aria-disabled="true" id="batchedit-disabled" href="#" data-bs-toggle="tooltip" data-bs-placement="left" title="This record has no items">Edit items in batch</a> >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="This record has no items"> >+ <a class="dropdown-item disabled" aria-disabled="true" id="batchedit-disabled" href="#">Edit items in batch</a> > </li> > [% END %] > [% END %] >@@ -94,8 +94,8 @@ > </form> > </li> > [% ELSE %] >- <li> >- <a class="dropdown-item disabled" aria-disabled="true" id="batchdelete-disabled" href="#" data-bs-toggle="tooltip" data-bs-placement="left" title="This record has no items">Delete items in a batch</a> >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="This record has no items"> >+ <a class="dropdown-item disabled" aria-disabled="true" id="batchdelete-disabled" href="#">Delete items in a batch</a> > </li> > [% END %] > [% END %] >@@ -130,12 +130,12 @@ > > [% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %] > [% IF ( count ) %] >- <li> >- <a class="dropdown-item disabled" aria-disabled="true" id="deletebiblio" data-bs-toggle="tooltip" data-bs-placement="left" title="[% count | html %] item(s) are attached to this record. You must delete all items before deleting this record." href="#">Delete record</a> >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="[% count | html %] item(s) are attached to this record. You must delete all items before deleting this record"> >+ <a class="dropdown-item disabled" aria-disabled="true" id="deletebiblio" href="#">Delete record</a> > </li> > [% ELSIF ( biblio.subscriptions.count ) %] >- <li> >- <a class="dropdown-item disabled" aria-disabled="true" id="deletebiblio" data-bs-toggle="tooltip" data-bs-placement="left" title="[% biblio.subscriptions.count | html %] subscription(s) are attached to this record. You must delete all subscriptions before deleting this record." href="#">Delete record</a> >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="[% biblio.subscriptions.count | html %] subscription(s) are attached to this record. You must delete all subscriptions before deleting this record"> >+ <a class="dropdown-item disabled" aria-disabled="true" id="deletebiblio" href="#">Delete record</a> > </li> > [% ELSE %] > <li> >@@ -162,8 +162,8 @@ > <a class="dropdown-item" href="#" id="deleteallitems">Delete all items</a> > </li> > [% ELSE %] >- <li> >- <a class="dropdown-item disabled" aria-disabled="true" href="#" id="deleteallitems-disabled" data-bs-toggle="tooltip" data-bs-placement="left" title="This record has no items">Delete all items</a> >+ <li id="deleteallitems-disabled" data-bs-toggle="tooltip" data-bs-placement="left" title="This record has no items"> >+ <a class="dropdown-item disabled" aria-disabled="true" href="#">Delete all items</a> > </li> > [% END %] > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/clubs-table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/clubs-table.inc >index 8648d7f9ff..c2db426cf3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/clubs-table.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/clubs-table.inc >@@ -83,8 +83,8 @@ > </a> > </li> > [% ELSE %] >- <li class="disabled"> >- <a class="dropdown-item" href="#" data-bs-toggle="tooltip" data-bs-placement="left" title="There are no enrollments for this club yet"> >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="There are no enrollments for this club yet"> >+ <a class="dropdown-item disabled" aria-disabled="true" href="#"> > <i class="fa fa-list-ul"></i> Enrollments > </a> > </li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >index d65a3dcae2..97d4dedabf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >@@ -201,7 +201,7 @@ > <li> > <li> > [% IF Koha.Preference('UseCirculationDesks') && Koha.Preference('UseCashRegisters') %] >- <a class="dropdown-item" href="/cgi-bin/koha/circ/set-library.pl">Set library, desk and register</a> >+ <a class="dropdown-item" href="/cgi-bin/koha/circ/set-library.pl">Set library, desk, and register</a> > [% ELSIF Koha.Preference('UseCirculationDesks') %] > <a class="dropdown-item" href="/cgi-bin/koha/circ/set-library.pl">Set library and desk</a> > [% ELSIF Koha.Preference('UseCashRegisters') %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >index 00fafcf55a..b27286fb1e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc >@@ -58,16 +58,23 @@ > <button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown">More <span class="caret"></span></button> > <ul class="dropdown-menu dropdown-menu-end"> > [% IF CAN_user_borrowers_edit_borrowers %] >- <li><a class="dropdown-item" id="renewpatron" href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | html %]&destination=[% destination | html %]&reregistration=y">Renew patron</a></li> >+ <li> >+ <a class="dropdown-item" id="renewpatron" href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | html %]&destination=[% destination | html %]&reregistration=y">Renew patron</a> >+ </li> > [% ELSE %] >- <li class="disabled"><a class="dropdown-item" data-bs-toggle="tooltip" data-bs-placement="left" title="You are not authorized to renew patrons" id="renewpatron" href="#">Renew patron</a></li> >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="You are not authorized to renew patrons"> >+ <a class="dropdown-item disabled" aria-disabled="true" id="renewpatron" href="#">Renew patron</a> >+ </li> > [% END %] > [% IF ( CAN_user_permissions ) %] >- <li><a class="dropdown-item" id="patronflags" href="/cgi-bin/koha/members/member-flags.pl?member=[% patron.borrowernumber | html %]">Set permissions</a></li> >+ <li> >+ <a class="dropdown-item" id="patronflags" href="/cgi-bin/koha/members/member-flags.pl?member=[% patron.borrowernumber | html %]">Set permissions</a> >+ </li> > [% ELSE %] >- <li class="disabled"><a class="dropdown-item" data-bs-toggle="tooltip" data-bs-placement="left" title="You are not authorized to set permissions" id="patronflags" href="#">Set permissions</a></li> >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="You are not authorized to set permissions"> >+ <a class="dropdown-item disabled" aria-disabled="true" id="patronflags" href="#">Set permissions</a> >+ </li> > [% END %] >- > [% IF ( Koha.Preference('TwoFactorAuthentication') == 'enforced' || Koha.Preference('TwoFactorAuthentication') == 'enabled' ) && logged_in_user.borrowernumber == patron.borrowernumber %] > <li><a class="dropdown-item" id="twofa" href="/cgi-bin/koha/members/two_factor_auth.pl">Manage two-factor authentication</a></li> > [% END %] >@@ -78,14 +85,20 @@ > > [% IF Koha.Preference('RESTOAuth2ClientCredentials') %] > [% IF CAN_user_superlibrarian OR loggedinusernumber == patron.borrowernumber %] >- <li><a class="dropdown-item" id="apikeys" href="/cgi-bin/koha/members/apikeys.pl?patron_id=[% patron.borrowernumber | html %]">Manage API keys</a></li> >+ <li> >+ <a class="dropdown-item" id="apikeys" href="/cgi-bin/koha/members/apikeys.pl?patron_id=[% patron.borrowernumber | html %]">Manage API keys</a> >+ </li> > [% ELSE %] >- <li class="disabled"><a class="dropdown-item" data-bs-toggle="tooltip" data-bs-placement="left" title="You are not authorized to manage API keys" id="apikeys" href="#">Manage API keys</a></li> >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="You are not authorized to manage API keys"> >+ <a class="dropdown-item disabled" aria-disabled="true" id="apikeys" href="#">Manage API keys</a> >+ </li> > [% END %] > [% END %] > > [% IF CAN_user_borrowers_edit_borrowers %] >- <li><a class="dropdown-item" id="sendwelcome" href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber | uri %]&op=send_welcome">Send welcome notice</a></li> >+ <li> >+ <a class="dropdown-item" id="sendwelcome" href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber | uri %]&op=send_welcome">Send welcome notice</a> >+ </li> > [% END %] > > [% IF CAN_user_borrowers_edit_borrowers && patron.category.effective_reset_password %] >@@ -94,26 +107,41 @@ > > [% IF CAN_user_borrowers_delete_borrowers %] > [% IF ( patron.protected == 1 ) %] >- <li class="disabled"><a class="dropdown-item" data-bs-toggle="tooltip" data-bs-placement="left" title="Patron is protected" id="deletepatron" href="#">Delete</a></li> >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="Patron is protected"> >+ <a class="dropdown-item disabled" aria-disabled="true" id="deletepatron" href="#">Delete</a> >+ </li> > [% ELSE %] >- <li><a class="dropdown-item" id="deletepatron" href="#">Delete</a></li> >+ <li> >+ <a class="dropdown-item" id="deletepatron" href="#">Delete</a> >+ </li> > [% END %] > [% ELSE %] >- <li class="disabled"><a class="dropdown-item" data-bs-toggle="tooltip" data-bs-placement="left" title="You are not authorized to delete patrons" id="deletepatron" href="#">Delete</a></li> >+ <li aria-disabled="true" data-bs-toggle="tooltip" data-bs-placement="left" title="You are not authorized to delete patrons"> >+ <a class="dropdown-item disabled" id="deletepatron" href="#">Delete</a> >+ </li> > [% END %] >+ > [% SET adult_categories = Categories.scalar.all(category_type => 'A') %] > [% IF adult_categories.count > 0 %] > [% IF patron.is_child %] >- <li><a class="dropdown-item" id="updatechild" href="#">Update child to adult patron</a></li> >+ <li> >+ <a class="dropdown-item" id="updatechild" href="#">Update child to adult patron</a> >+ </li> > [% ELSE %] >- <li class="disabled"><a class="dropdown-item" data-bs-toggle="tooltip" data-bs-placement="left" title="Patron is an adult" id="updatechild" href="#">Update child to adult patron</a></li> >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="Patron is an adult"> >+ <a class="dropdown-item disabled" aria-disabled="true" id="updatechild" href="#">Update child to adult patron</a> >+ </li> > [% END %] > [% END %] > [% IF Koha.Preference('intranetreadinghistory') %] >- [%IF ( privacy == 2 ) %] >- <li class="disabled"><a class="dropdown-item" data-bs-toggle="tooltip" data-bs-placement="left" title="Not allowed by patron's privacy settings" id="exportbarcodes" href="#">Export today's checked in barcodes</a></li> >+ [% IF ( privacy == 2 ) %] >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="Not allowed by patron's privacy settings"> >+ <a class="dropdown-item disabled" aria-disabled="true" id="exportbarcodes" href="#">Export today's checked in barcodes</a> >+ </li> > [% ELSE %] >- <li><a class="dropdown-item" id="exportcheckins" href="#">Export today's checked in barcodes</a></li> >+ <li> >+ <a class="dropdown-item" id="exportcheckins" href="#">Export today's checked in barcodes</a> >+ </li> > [% END %] > [% END %] > </ul> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc >index 865e16aee1..f18d1e4280 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc >@@ -85,9 +85,13 @@ > > [% IF Koha.Preference('Mana') == 1 and Koha.Preference('AutoShareWithMana').grep('subscription').size == 0 %] > [% IF one_language_enabled==0 or mana_id %] >- <div class="btn-group"><a data-bs-toggle="modal" data-bs-toggle="tooltip" title="Share the subscription with other libraries. Your email address will be associated to your sharing." data-bs-target="#mana_share_modal" class="btn btn-default"><i class="fa fa-share-alt"></i> Share</a></div> >+ <div class="btn-group" data-bs-toggle="tooltip" title="Share the subscription with other libraries. Your email address will be associated to your sharing"> >+ <a data-bs-toggle="modal" data-bs-target="#mana_share_modal" class="btn btn-default"><i class="fa fa-share-alt"></i> Share</a> >+ </div> > [% ELSE %] >- <div class="btn-group" id="mana-subscription-share" data-bs-toggle="tooltip" title="Share the subscription with other libraries. Your email address will be associated to your sharing."><a class="btn btn-default"><i class="fa fa-share-alt"></i> Share</a></div> >+ <div class="btn-group" id="mana-subscription-share" data-bs-toggle="tooltip" title="Share the subscription with other libraries. Your email address will be associated to your sharing"> >+ <a class="btn btn-default"><i class="fa fa-share-alt"></i> Share</a> >+ </div> > [% END %] > [% END %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >index f7c9a829ab..264f96fbd8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt >@@ -13,15 +13,15 @@ > <li> > <a class="dropdown-item" href="[% script_name | url %]?op=add_form&budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> > </li> >- [% IF block_budget.count %] >- <li class="disabled"> >- <a class="dropdown-item" data-bs-toggle="tooltip" data-bs-placement="left" title="[% block_budget.count | html %] fund(s) are attached to this budget. You must delete all attached funds before deleting this budget." href="#"><i class="fa fa-trash-can"></i> Delete</a> >- </li> >- [% ELSE %] >- <li> >- <a class="dropdown-item" href="[% script_name | url %]?op=delete_confirm&budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-trash-can"></i> Delete</a> >- </li> >- [% END %] >+ [% IF block_budget.count %] >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="[% block_budget.count | html %] fund(s) are attached to this budget. You must delete all attached funds before deleting this budget."> >+ <a class="dropdown-item disabled" aria-disabled="true" href="#"><i class="fa fa-trash-can"></i> Delete</a> >+ </li> >+ [% ELSE %] >+ <li> >+ <a class="dropdown-item" href="[% script_name | url %]?op=delete_confirm&budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-trash-can"></i> Delete</a> >+ </li> >+ [% END %] > <li> > <a class="dropdown-item" href="[% script_name | url %]?op=duplicate_form&budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-copy"></i> Duplicate</a> > </li> >@@ -29,8 +29,8 @@ > <a class="dropdown-item" href="[% script_name | url %]?op=close_form&budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-times-circle"></i> Close</a> > </li> > [% IF ( block_budget.budget_period_locked ) %] >- <li class="disabled"> >- <a class="dropdown-item" data-bs-toggle="tooltip" data-bs-placement="left" title="Budget is locked" href="#"><i class="fa fa-plus"></i> Add fund</a> >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="Budget is locked"> >+ <a class="dropdown-item disabled" aria-disabled="true" href="#"><i class="fa fa-plus"></i> Add fund</a> > </li> > [% ELSE %] > <li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >index 6f0795f46a..686e6f4df2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >@@ -254,9 +254,13 @@ > <ul class="dropdown-menu dropdown-menu-end" role="menu" aria-labelledby="budgetactions[% budget.budget_id | html %]_[% budget.budget_period_id | html %]"> > <li><a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_id=[% budget.budget_id | uri %]&budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a></li> > [% IF budget.budget_has_children %] >- <li class="disabled dropdown-item"><a href="#" class="deletefund-disabled" data-bs-toggle="tooltip" data-bs-placement="left" title="This fund has sub funds."><i class="fa fa-trash-can"></i> Delete</a></li> >+ <li data-bs-toggle="tooltip" data-bs-placement="left" title="This fund has sub funds"> >+ <a href="#" class="deletefund-disabled dropdown-item disabled"><i class="fa fa-trash-can"></i> Delete</a> >+ </li> > [% ELSE %] >- <li><a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgets.pl?op=delete_confirm&budget_id=[% budget.budget_id | uri %]&budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-trash-can"></i> Delete</a></li> >+ <li> >+ <a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgets.pl?op=delete_confirm&budget_id=[% budget.budget_id | uri %]&budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-trash-can"></i> Delete</a> >+ </li> > [% END %] > <li><a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_parent_id=[% budget.budget_id | uri %]&budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-plus"></i> Add sub fund</a></li> > </ul> >@@ -756,7 +760,7 @@ > oTable.fnAddFilters("filter", 750); > [% END %] > >- $(".deletefund-disabled").tooltip().on("click", function(e){ >+ $(".deletefund-disabled").on("click", function(e){ > e.preventDefault(); > alert(_("This fund has sub funds. It cannot be deleted.")); > }); >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >index 3409f0f534..b46a9b4c7e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt >@@ -544,6 +544,7 @@ > $('#filter').val($filter_container.data('filter')); > } > >+ $('[data-bs-toggle="tooltip"]').tooltip(); > }); > </script> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >index 36bb4af8d5..3e8215a0af 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >@@ -674,6 +674,7 @@ > }); > $('#results').on('draw.dt', function (e, settings) { > prepSelections(); >+ $('[data-bs-toggle="tooltip"]').tooltip(); > var Sticky = $("#searchheader"); > Sticky.hcSticky({ > stickTo: "#results-wrapper .page-section", >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt >index 7ccbcffcad..fe0be53700 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt >@@ -200,6 +200,9 @@ > var club_id = $(this).data("id"); > SearchToHold( club_id ); > }); >+ $('[data-bs-toggle="tooltip"]').on("click",function(e){ >+ e.stopPropagation(); >+ }).tooltip(); > }); > > function ConfirmDeleteTemplate( id, name ) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt >index 160e8357ae..684305518d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt >@@ -172,10 +172,18 @@ > <option value="xml">XML</option> > [% IF csv_profiles %] > <option value="csv">CSV</option> >- [% ELSE %] >- <option value="csv" disabled data-bs-toggle="tooltip" data-bs-placement="left" title="You must create a CSV profile for MARC exports to use this option.">CSV</option> > [% END %] > </select> >+ [% UNLESS csv_profiles %] >+ <div class="hint"> >+ There are no CSV profiles for MARC exports. >+ [% IF ( CAN_user_tools_manage_csv_profiles ) %] >+ <a href="/cgi-bin/koha/tools/csv-profiles.pl">Create a CSV profile to export a CSV file.</a> >+ [% ELSE %] >+ CSV export unavailable. >+ [% END %] >+ </div> >+ [% END %] > </li> > <li class="csv_profiles"> > <label for="bibs_csv_profile">CSV profile: </label> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >index 22055c84d9..ddd072a55c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >@@ -302,9 +302,9 @@ > <ul id="sortable_stages" data-rota-id="[% rota.rota_id | html %]"> > [% FOREACH stage IN existing_stages %] > <li id="stage_[% stage.stage_id | html %]"> >- <span data-bs-toggle="tooltip" title="Drag and drop to move this stage to another position" data-bs-placement="right" class="stagename"> >+ <span class="stagename"> > [% IF existing_stages.size > 1 %] >- <i class="drag_handle fa-solid fa-fw fa-grip-vertical" aria-hidden="true"></i> >+ <i class="drag_handle fa-solid fa-fw fa-grip-vertical" data-bs-toggle="tooltip" title="Drag and drop to move this stage to another position" data-bs-placement="top" aria-hidden="true"></i> > [% END %] > [% Branches.GetName(stage.branchcode_id) | html %] > </span> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >index dc691dd21a..12f32a0c13 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt >@@ -218,7 +218,7 @@ > [% IF !plugin %] > <td> > [% IF record.public %] >- <a href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-retrieve-file.pl?id=[% record.hashvalue | uri %]" class="get-file" data-bs-toggle="tooltip"><i class="fa fa-link" aria-hidden="true"></i> Yes</a> >+ <a href="[% Koha.Preference('OPACBaseURL') | url %]/cgi-bin/koha/opac-retrieve-file.pl?id=[% record.hashvalue | uri %]" class="get-file" data-bs-toggle="tooltip" data-bs-title="Copy link to this file"><i class="fa fa-link" aria-hidden="true"></i> Yes</a> > [% ELSE %] > No > [% END %] >@@ -528,18 +528,16 @@ > }); > > if ( window.isSecureContext ) { >+ $('[data-bs-toggle="tooltip"]').tooltip(); > $(".get-file").on("click", function(e){ > e.preventDefault(); > if( navigator.clipboard && navigator.clipboard.writeText){ > navigator.clipboard.writeText( $(this).attr("href") ); >- $(this).attr("data-original-title", _( "Link copied to the clipboard" ) ) >- .tooltip("show"); >+ $(this).tooltip("dispose").attr('data-bs-title', _( "Link copied to the clipboard" )).tooltip("show"); > } > }); >- $(".get-file").tooltip({ >- delay: { "show": 100, "hide": 500 } >- }).on("hidden.bs.tooltip", function(){ >- $(this).attr("data-original-title", _( "Copy link to this file" ) ); >+ $(".get-file").tooltip().on("hidden.bs.tooltip", function(){ >+ $(this).tooltip("dispose").attr("data-bs-title", _( "Copy link to this file" ) ).tooltip(); > }); > } > }); >diff --git a/koha-tmpl/intranet-tmpl/prog/js/catalog.js b/koha-tmpl/intranet-tmpl/prog/js/catalog.js >index ef7efc9510..93cf5f9cfd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/catalog.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/catalog.js >@@ -117,12 +117,10 @@ $(document).ready(function() { > return false; > }); > $("#export").remove(); // Hide embedded export form if JS menus available >- $("#deletebiblio").tooltip(); >- $("#batchedit-disabled,#batchdelete-disabled,#deleteallitems-disabled") >- .on("click",function(e){ >- e.stopPropagation(); >- }) >- .tooltip(); >+ >+ $('[data-bs-toggle="tooltip"]').on("click",function(e){ >+ e.stopPropagation(); >+ }).tooltip(); > > $(".addtolist").on("click", function (e) { > e.preventDefault(); >diff --git a/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js b/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js >index 4050480fd6..1e1cbdf73e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js >@@ -79,5 +79,5 @@ $(document).ready(function(){ > toggle_digest(Number($(this).attr("id").replace("phone", ""))); > }); > >-// $('#memberentry_messaging_prefs [data-bs-toggle="tooltip"][disabled]').tooltip(); >+ $('#memberentry_messaging_prefs [data-bs-toggle="tooltip"][disabled]').tooltip(); > }); >diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/stockrotation.js b/koha-tmpl/intranet-tmpl/prog/js/pages/stockrotation.js >index 5452490183..da01b81a1f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/pages/stockrotation.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/pages/stockrotation.js >@@ -85,4 +85,5 @@ $(document).ready(function() { > "autoWidth": false, > }, stock_rotation_table_settings); > >+ $('[data-bs-toggle="tooltip"]').tooltip(); > }); >diff --git a/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js b/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js >index 2ebaf6ad2f..a5952048c2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js >@@ -21,4 +21,5 @@ function popup(subscriptionid) { > $("#mana-subscription-share").click(function() { > window.location="subscription-detail.pl?subscriptionid=" + subscriptionid + "&op=share"; > }); >+ $('[data-bs-toggle="tooltip"]').tooltip(); > }); >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >index cda06d56eb..c14b88f221 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >@@ -78,7 +78,7 @@ > <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&public=0" tabindex="-1" role="menuitem">View all</a> > [% END %] > [% ELSE %] >- <a class="dropdown-item disabled" href="#" tabindex="-1" role="menuitem">No private lists</a> >+ <a class="dropdown-item disabled" aria-disabled="true" href="#" tabindex="-1" role="menuitem">No private lists</a> > [% END %] > <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="-1" role="menuitem">New list</a> > [% ELSE %] >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37748
:
170784
|
170793
|
170804
|
170807
|
170818
|
170819
|
170820
|
170821
|
170860
|
170861
|
170862