View | Details | Raw Unified | Return to bug 37748
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/_variables.scss (-1 / +1 lines)
Lines 1259-1265 $dropdown-divider-bg: $dropdown-border-color; Link Here
1259
$dropdown-divider-margin-y:         0; // $spacer * .5;
1259
$dropdown-divider-margin-y:         0; // $spacer * .5;
1260
$dropdown-box-shadow:               0 6px 12px rgba(0,0,0,0.3); // var(--#{$prefix}box-shadow);
1260
$dropdown-box-shadow:               0 6px 12px rgba(0,0,0,0.3); // var(--#{$prefix}box-shadow);
1261
1261
1262
$dropdown-link-color:               $link-color; // var(--#{$prefix}body-color);
1262
$dropdown-link-color:               var(--#{$prefix}body-color);
1263
$dropdown-link-hover-color:         $dropdown-link-color;
1263
$dropdown-link-hover-color:         $dropdown-link-color;
1264
$dropdown-link-hover-bg:            $gray-300; // var(--#{$prefix}tertiary-bg);
1264
$dropdown-link-hover-bg:            $gray-300; // var(--#{$prefix}tertiary-bg);
1265
1265
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-10 lines)
Lines 95-110 $enable-dark-mode: false; Link Here
95
    margin-top: -1px;
95
    margin-top: -1px;
96
}
96
}
97
97
98
.btn-group {
99
    .dropdown-item {
100
        color: #000;
101
102
        &:active {
103
            color: #FFF;
104
        }
105
    }
106
}
107
108
.page-section {
98
.page-section {
109
    @include card;
99
    @include card;
110
100
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-toolbar.inc (-21 / +24 lines)
Lines 5-12 Link Here
5
                <ul class="dropdown-menu">
5
                <ul class="dropdown-menu">
6
                    <li><a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form">New budget</a></li>
6
                    <li><a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgetperiods.pl?op=add_form">New budget</a></li>
7
                    [% IF ( budget_period_locked || !CAN_user_acquisition_budget_add_del ) %]
7
                    [% IF ( budget_period_locked || !CAN_user_acquisition_budget_add_del ) %]
8
                        <li class="disabled">
8
                        <li data-bs-toggle="tooltip" data-bs-placement="left" title="The budget is locked">
9
                            <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>
9
                            <a class="dropdown-item disabled" aria-disabled="true" href="#">New fund for [% budget_period_description | html %]</a>
10
                        </li>
10
                        </li>
11
                    [% ELSE %]
11
                    [% ELSE %]
12
                        <li>
12
                        <li>
Lines 27-57 Link Here
27
        <div class="btn-group">
27
        <div class="btn-group">
28
            <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>
28
            <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>
29
                <ul class="dropdown-menu">
29
                <ul class="dropdown-menu">
30
                    [% IF ( CAN_user_acquisition_planning_manage ) %]
31
                    <li>
30
                    <li>
32
                    [% ELSE %]
31
                        [% IF ( CAN_user_acquisition_planning_manage ) %]
33
                    <li class="disabled">
32
                            <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&amp;authcat=MONTHS">Plan by months</a>
34
                    [% END %]
33
                        [% ELSE %]
35
                        <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&amp;authcat=MONTHS">Plan by months</a></li>
34
                            <a class="dropdown-item disabled" aria-disabled="true" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&amp;authcat=MONTHS">Plan by months</a>
36
                    [% IF ( CAN_user_acquisition_planning_manage ) %]
35
                        [% END %]
36
                    </li>
37
                    <li>
37
                    <li>
38
                    [% ELSE %]
38
                        [% IF ( CAN_user_acquisition_planning_manage ) %]
39
                    <li class="disabled">
39
                            <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&amp;authcat=BRANCHES">Plan by libraries</a>
40
                    [% END %]
40
                        [% ELSE %]
41
                        <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&amp;authcat=BRANCHES">Plan by libraries</a></li>
41
                            <a class="dropdown-item disabled" aria-disabled="true" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&amp;authcat=BRANCHES">Plan by libraries</a>
42
                    [% IF ( CAN_user_acquisition_planning_manage ) %]
42
                        [% END %]
43
                    </li>
43
                    <li>
44
                    <li>
44
                    [% ELSE %]
45
                    <li class="disabled">
46
                    [% END %]
47
                        <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&amp;authcat=ITEMTYPES">Plan by item types</a></li>
48
                    [% FOREACH auth_cats_loo IN auth_cats_loop %]
49
                        [% IF ( CAN_user_acquisition_planning_manage ) %]
45
                        [% IF ( CAN_user_acquisition_planning_manage ) %]
50
                        <li>
46
                            <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&amp;authcat=ITEMTYPES">Plan by item types</a></li>
51
                        [% ELSE %]
47
                        [% ELSE %]
52
                        <li class="disabled">
48
                            <a class="dropdown-item disabled" aria-disabled="true" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&amp;authcat=ITEMTYPES">Plan by item types</a>
53
                        [% END %]
49
                        [% END %]
54
                            <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&amp;authcat=[% auth_cats_loo | uri %]">Plan by [% auth_cats_loo | html %]</a>
50
                    </li>
51
                    [% FOREACH auth_cats_loo IN auth_cats_loop %]
52
                        <li>
53
                            [% IF ( CAN_user_acquisition_planning_manage ) %]
54
                                <a class="dropdown-item" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&amp;authcat=[% auth_cats_loo | uri %]">Plan by [% auth_cats_loo | html %]</a>
55
                            [% ELSE %]
56
                                <a class="dropdown-item disabled" aria-disabled="true" href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id | uri %]&amp;authcat=[% auth_cats_loo | uri %]">Plan by [% auth_cats_loo | html %]</a>
57
                            [% END %]
55
                        </li>
58
                        </li>
56
                    [% END %]
59
                    [% END %]
57
                </ul>
60
                </ul>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc (-11 / +11 lines)
Lines 43-49 Link Here
43
                [% IF biblio.can_be_edited(logged_in_user) %]
43
                [% IF biblio.can_be_edited(logged_in_user) %]
44
                    <li><a class="dropdown-item" id="editbiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber | html %]">Edit record</a></li>
44
                    <li><a class="dropdown-item" id="editbiblio" href="/cgi-bin/koha/cataloguing/addbiblio.pl?biblionumber=[% biblionumber | html %]">Edit record</a></li>
45
                [% ELSE %]
45
                [% ELSE %]
46
                    <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>
46
                    <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>
47
                [% END %]
47
                [% END %]
48
            [% END %]
48
            [% END %]
49
49
Lines 75-82 Link Here
75
                        </form>
75
                        </form>
76
                    </li>
76
                    </li>
77
                [% ELSE %]
77
                [% ELSE %]
78
                    <li>
78
                    <li data-bs-toggle="tooltip" data-bs-placement="left" title="This record has no items">
79
                        <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>
79
                        <a class="dropdown-item disabled" aria-disabled="true" id="batchedit-disabled" href="#">Edit items in batch</a>
80
                    </li>
80
                    </li>
81
                [% END %]
81
                [% END %]
82
            [% END %]
82
            [% END %]
Lines 94-101 Link Here
94
                        </form>
94
                        </form>
95
                    </li>
95
                    </li>
96
                [% ELSE %]
96
                [% ELSE %]
97
                    <li>
97
                    <li data-bs-toggle="tooltip" data-bs-placement="left" title="This record has no items">
98
                        <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>
98
                        <a class="dropdown-item disabled" aria-disabled="true" id="batchdelete-disabled" href="#">Delete items in a batch</a>
99
                    </li>
99
                    </li>
100
                [% END %]
100
                [% END %]
101
            [% END %]
101
            [% END %]
Lines 130-141 Link Here
130
130
131
            [% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
131
            [% IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) %]
132
                [% IF ( count ) %]
132
                [% IF ( count ) %]
133
                    <li>
133
                    <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">
134
                        <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>
134
                        <a class="dropdown-item disabled" aria-disabled="true" id="deletebiblio" href="#">Delete record</a>
135
                    </li>
135
                    </li>
136
                [% ELSIF ( biblio.subscriptions.count ) %]
136
                [% ELSIF ( biblio.subscriptions.count ) %]
137
                    <li>
137
                    <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">
138
                        <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>
138
                        <a class="dropdown-item disabled" aria-disabled="true" id="deletebiblio" href="#">Delete record</a>
139
                    </li>
139
                    </li>
140
                [% ELSE %]
140
                [% ELSE %]
141
                    <li>
141
                    <li>
Lines 162-169 Link Here
162
                        <a class="dropdown-item" href="#" id="deleteallitems">Delete all items</a>
162
                        <a class="dropdown-item" href="#" id="deleteallitems">Delete all items</a>
163
                    </li>
163
                    </li>
164
                [% ELSE %]
164
                [% ELSE %]
165
                    <li>
165
                    <li id="deleteallitems-disabled" data-bs-toggle="tooltip" data-bs-placement="left" title="This record has no items">
166
                        <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>
166
                        <a class="dropdown-item disabled" aria-disabled="true" href="#">Delete all items</a>
167
                    </li>
167
                    </li>
168
                [% END %]
168
                [% END %]
169
            [% END %]
169
            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/clubs-table.inc (-2 / +2 lines)
Lines 83-90 Link Here
83
                                        </a>
83
                                        </a>
84
                                    </li>
84
                                    </li>
85
                                [% ELSE %]
85
                                [% ELSE %]
86
                                    <li class="disabled">
86
                                    <li data-bs-toggle="tooltip" data-bs-placement="left" title="There are no enrollments for this club yet">
87
                                        <a class="dropdown-item" href="#" data-bs-toggle="tooltip" data-bs-placement="left" title="There are no enrollments for this club yet">
87
                                        <a class="dropdown-item disabled" aria-disabled="true" href="#">
88
                                            <i class="fa fa-list-ul"></i> Enrollments
88
                                            <i class="fa fa-list-ul"></i> Enrollments
89
                                        </a>
89
                                        </a>
90
                                    </li>
90
                                    </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc (-1 / +1 lines)
Lines 201-207 Link Here
201
                                <li>
201
                                <li>
202
                                <li>
202
                                <li>
203
                                    [% IF Koha.Preference('UseCirculationDesks') && Koha.Preference('UseCashRegisters') %]
203
                                    [% IF Koha.Preference('UseCirculationDesks') && Koha.Preference('UseCashRegisters') %]
204
                                        <a class="dropdown-item" href="/cgi-bin/koha/circ/set-library.pl">Set library, desk and register</a>
204
                                        <a class="dropdown-item" href="/cgi-bin/koha/circ/set-library.pl">Set library, desk, and register</a>
205
                                    [% ELSIF Koha.Preference('UseCirculationDesks') %]
205
                                    [% ELSIF Koha.Preference('UseCirculationDesks') %]
206
                                        <a class="dropdown-item" href="/cgi-bin/koha/circ/set-library.pl">Set library and desk</a>
206
                                        <a class="dropdown-item" href="/cgi-bin/koha/circ/set-library.pl">Set library and desk</a>
207
                                    [% ELSIF Koha.Preference('UseCashRegisters') %]
207
                                    [% ELSIF Koha.Preference('UseCashRegisters') %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-16 / +44 lines)
Lines 58-73 Link Here
58
        <button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown">More <span class="caret"></span></button>
58
        <button class="btn btn-default dropdown-toggle" data-bs-toggle="dropdown">More <span class="caret"></span></button>
59
            <ul class="dropdown-menu dropdown-menu-end">
59
            <ul class="dropdown-menu dropdown-menu-end">
60
                [% IF CAN_user_borrowers_edit_borrowers %]
60
                [% IF CAN_user_borrowers_edit_borrowers %]
61
                    <li><a class="dropdown-item" id="renewpatron" href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | html %]&amp;destination=[% destination | html %]&amp;reregistration=y">Renew patron</a></li>
61
                    <li>
62
                        <a class="dropdown-item" id="renewpatron" href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% patron.borrowernumber | html %]&amp;destination=[% destination | html %]&amp;reregistration=y">Renew patron</a>
63
                    </li>
62
                [% ELSE %]
64
                [% ELSE %]
63
                    <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>
65
                    <li data-bs-toggle="tooltip" data-bs-placement="left" title="You are not authorized to renew patrons">
66
                        <a class="dropdown-item disabled" aria-disabled="true" id="renewpatron" href="#">Renew patron</a>
67
                    </li>
64
                [% END %]
68
                [% END %]
65
                [% IF ( CAN_user_permissions ) %]
69
                [% IF ( CAN_user_permissions ) %]
66
                    <li><a class="dropdown-item" id="patronflags" href="/cgi-bin/koha/members/member-flags.pl?member=[% patron.borrowernumber | html %]">Set permissions</a></li>
70
                    <li>
71
                        <a class="dropdown-item" id="patronflags" href="/cgi-bin/koha/members/member-flags.pl?member=[% patron.borrowernumber | html %]">Set permissions</a>
72
                    </li>
67
                [% ELSE %]
73
                [% ELSE %]
68
                    <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>
74
                    <li data-bs-toggle="tooltip" data-bs-placement="left" title="You are not authorized to set permissions">
75
                        <a class="dropdown-item disabled" aria-disabled="true" id="patronflags" href="#">Set permissions</a>
76
                    </li>
69
                [% END %]
77
                [% END %]
70
71
                [% IF ( Koha.Preference('TwoFactorAuthentication') == 'enforced' || Koha.Preference('TwoFactorAuthentication') == 'enabled' ) && logged_in_user.borrowernumber == patron.borrowernumber %]
78
                [% IF ( Koha.Preference('TwoFactorAuthentication') == 'enforced' || Koha.Preference('TwoFactorAuthentication') == 'enabled' ) && logged_in_user.borrowernumber == patron.borrowernumber %]
72
                    <li><a class="dropdown-item" id="twofa" href="/cgi-bin/koha/members/two_factor_auth.pl">Manage two-factor authentication</a></li>
79
                    <li><a class="dropdown-item" id="twofa" href="/cgi-bin/koha/members/two_factor_auth.pl">Manage two-factor authentication</a></li>
73
                [% END %]
80
                [% END %]
Lines 78-91 Link Here
78
85
79
                [% IF Koha.Preference('RESTOAuth2ClientCredentials') %]
86
                [% IF Koha.Preference('RESTOAuth2ClientCredentials') %]
80
                    [% IF CAN_user_superlibrarian OR loggedinusernumber == patron.borrowernumber %]
87
                    [% IF CAN_user_superlibrarian OR loggedinusernumber == patron.borrowernumber %]
81
                        <li><a class="dropdown-item" id="apikeys" href="/cgi-bin/koha/members/apikeys.pl?patron_id=[% patron.borrowernumber | html %]">Manage API keys</a></li>
88
                        <li>
89
                            <a class="dropdown-item" id="apikeys" href="/cgi-bin/koha/members/apikeys.pl?patron_id=[% patron.borrowernumber | html %]">Manage API keys</a>
90
                        </li>
82
                    [% ELSE %]
91
                    [% ELSE %]
83
                        <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>
92
                        <li data-bs-toggle="tooltip" data-bs-placement="left" title="You are not authorized to manage API keys">
93
                            <a class="dropdown-item disabled" aria-disabled="true" id="apikeys" href="#">Manage API keys</a>
94
                        </li>
84
                    [% END %]
95
                    [% END %]
85
                [% END %]
96
                [% END %]
86
97
87
                [% IF CAN_user_borrowers_edit_borrowers %]
98
                [% IF CAN_user_borrowers_edit_borrowers %]
88
                    <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>
99
                    <li>
100
                        <a class="dropdown-item" id="sendwelcome" href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% patron.borrowernumber | uri %]&op=send_welcome">Send welcome notice</a>
101
                    </li>
89
                [% END %]
102
                [% END %]
90
103
91
                [% IF CAN_user_borrowers_edit_borrowers && patron.category.effective_reset_password %]
104
                [% IF CAN_user_borrowers_edit_borrowers && patron.category.effective_reset_password %]
Lines 94-119 Link Here
94
107
95
                [% IF CAN_user_borrowers_delete_borrowers %]
108
                [% IF CAN_user_borrowers_delete_borrowers %]
96
                    [% IF ( patron.protected == 1 ) %]
109
                    [% IF ( patron.protected == 1 ) %]
97
                        <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>
110
                        <li data-bs-toggle="tooltip" data-bs-placement="left" title="Patron is protected">
111
                            <a class="dropdown-item disabled" aria-disabled="true" id="deletepatron" href="#">Delete</a>
112
                        </li>
98
                    [% ELSE %]
113
                    [% ELSE %]
99
                        <li><a class="dropdown-item" id="deletepatron" href="#">Delete</a></li>
114
                        <li>
115
                            <a class="dropdown-item" id="deletepatron" href="#">Delete</a>
116
                        </li>
100
                    [% END %]
117
                    [% END %]
101
                [% ELSE %]
118
                [% ELSE %]
102
                    <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>
119
                    <li aria-disabled="true" data-bs-toggle="tooltip" data-bs-placement="left" title="You are not authorized to delete patrons">
120
                        <a class="dropdown-item disabled" id="deletepatron" href="#">Delete</a>
121
                    </li>
103
                [% END %]
122
                [% END %]
123
104
                [% SET adult_categories = Categories.scalar.all(category_type => 'A') %]
124
                [% SET adult_categories = Categories.scalar.all(category_type => 'A') %]
105
                [% IF adult_categories.count > 0 %]
125
                [% IF adult_categories.count > 0 %]
106
                    [% IF patron.is_child %]
126
                    [% IF patron.is_child %]
107
                        <li><a class="dropdown-item" id="updatechild" href="#">Update child to adult patron</a></li>
127
                        <li>
128
                            <a class="dropdown-item" id="updatechild" href="#">Update child to adult patron</a>
129
                        </li>
108
                    [% ELSE %]
130
                    [% ELSE %]
109
                        <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>
131
                        <li data-bs-toggle="tooltip" data-bs-placement="left" title="Patron is an adult">
132
                            <a class="dropdown-item disabled" aria-disabled="true" id="updatechild" href="#">Update child to adult patron</a>
133
                        </li>
110
                    [% END %]
134
                    [% END %]
111
                [% END %]
135
                [% END %]
112
                [% IF Koha.Preference('intranetreadinghistory') %]
136
                [% IF Koha.Preference('intranetreadinghistory') %]
113
                    [%IF ( privacy == 2 ) %]
137
                    [% IF ( privacy == 2 ) %]
114
                        <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>
138
                        <li data-bs-toggle="tooltip" data-bs-placement="left" title="Not allowed by patron's privacy settings">
139
                            <a class="dropdown-item disabled" aria-disabled="true" id="exportbarcodes" href="#">Export today's checked in barcodes</a>
140
                        </li>
115
                    [% ELSE %]
141
                    [% ELSE %]
116
                        <li><a class="dropdown-item" id="exportcheckins" href="#">Export today's checked in barcodes</a></li>
142
                        <li>
143
                            <a class="dropdown-item" id="exportcheckins" href="#">Export today's checked in barcodes</a>
144
                        </li>
117
                    [% END %]
145
                    [% END %]
118
                [% END %]
146
                [% END %]
119
            </ul>
147
            </ul>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc (-2 / +6 lines)
Lines 85-93 Link Here
85
85
86
        [% IF Koha.Preference('Mana') == 1 and Koha.Preference('AutoShareWithMana').grep('subscription').size == 0 %]
86
        [% IF Koha.Preference('Mana') == 1 and Koha.Preference('AutoShareWithMana').grep('subscription').size == 0 %]
87
            [% IF one_language_enabled==0 or mana_id %]
87
            [% IF one_language_enabled==0 or mana_id %]
88
                <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>
88
                <div class="btn-group" data-bs-toggle="tooltip" title="Share the subscription with other libraries. Your email address will be associated to your sharing">
89
                    <a data-bs-toggle="modal" data-bs-target="#mana_share_modal" class="btn btn-default"><i class="fa fa-share-alt"></i> Share</a>
90
                </div>
89
            [% ELSE %]
91
            [% ELSE %]
90
                <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>
92
                <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">
93
                    <a class="btn btn-default"><i class="fa fa-share-alt"></i> Share</a>
94
                </div>
91
            [% END %]
95
            [% END %]
92
        [% END %]
96
        [% END %]
93
97
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt (-11 / +11 lines)
Lines 13-27 Link Here
13
              <li>
13
              <li>
14
                  <a class="dropdown-item" href="[% script_name | url %]?op=add_form&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
14
                  <a class="dropdown-item" href="[% script_name | url %]?op=add_form&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
15
              </li>
15
              </li>
16
              [% IF block_budget.count %]
16
            [% IF block_budget.count %]
17
                  <li class="disabled">
17
                <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.">
18
                      <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>
18
                    <a class="dropdown-item disabled" aria-disabled="true" href="#"><i class="fa fa-trash-can"></i> Delete</a>
19
                  </li>
19
                </li>
20
              [% ELSE %]
20
            [% ELSE %]
21
                  <li>
21
                <li>
22
                      <a class="dropdown-item" href="[% script_name | url %]?op=delete_confirm&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-trash-can"></i> Delete</a>
22
                    <a class="dropdown-item" href="[% script_name | url %]?op=delete_confirm&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-trash-can"></i> Delete</a>
23
                  </li>
23
                </li>
24
              [% END %]
24
            [% END %]
25
              <li>
25
              <li>
26
                  <a class="dropdown-item" href="[% script_name | url %]?op=duplicate_form&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-copy"></i> Duplicate</a>
26
                  <a class="dropdown-item" href="[% script_name | url %]?op=duplicate_form&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-copy"></i> Duplicate</a>
27
              </li>
27
              </li>
Lines 29-36 Link Here
29
                  <a class="dropdown-item" href="[% script_name | url %]?op=close_form&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-times-circle"></i> Close</a>
29
                  <a class="dropdown-item" href="[% script_name | url %]?op=close_form&amp;budget_period_id=[% block_budget.budget_period_id | uri %]"><i class="fa fa-times-circle"></i> Close</a>
30
              </li>
30
              </li>
31
            [% IF ( block_budget.budget_period_locked ) %]
31
            [% IF ( block_budget.budget_period_locked ) %]
32
                <li class="disabled">
32
                <li data-bs-toggle="tooltip" data-bs-placement="left" title="Budget is locked">
33
                    <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>
33
                    <a class="dropdown-item disabled" aria-disabled="true" href="#"><i class="fa fa-plus"></i> Add fund</a>
34
                </li>
34
                </li>
35
            [% ELSE %]
35
            [% ELSE %]
36
                <li>
36
                <li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt (-3 / +7 lines)
Lines 254-262 Link Here
254
                <ul class="dropdown-menu dropdown-menu-end" role="menu" aria-labelledby="budgetactions[% budget.budget_id | html %]_[% budget.budget_period_id | html %]">
254
                <ul class="dropdown-menu dropdown-menu-end" role="menu" aria-labelledby="budgetactions[% budget.budget_id | html %]_[% budget.budget_period_id | html %]">
255
                    <li><a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&amp;budget_id=[% budget.budget_id | uri %]&amp;budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a></li>
255
                    <li><a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&amp;budget_id=[% budget.budget_id | uri %]&amp;budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a></li>
256
                    [% IF budget.budget_has_children %]
256
                    [% IF budget.budget_has_children %]
257
                        <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>
257
                        <li data-bs-toggle="tooltip" data-bs-placement="left" title="This fund has sub funds">
258
                            <a href="#" class="deletefund-disabled dropdown-item disabled"><i class="fa fa-trash-can"></i> Delete</a>
259
                        </li>
258
                    [% ELSE %]
260
                    [% ELSE %]
259
                        <li><a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgets.pl?op=delete_confirm&amp;budget_id=[% budget.budget_id | uri %]&amp;budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-trash-can"></i> Delete</a></li>
261
                        <li>
262
                            <a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgets.pl?op=delete_confirm&amp;budget_id=[% budget.budget_id | uri %]&amp;budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-trash-can"></i> Delete</a>
263
                        </li>
260
                    [% END %]
264
                    [% END %]
261
                    <li><a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&amp;budget_parent_id=[% budget.budget_id | uri %]&amp;budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-plus"></i> Add sub fund</a></li>
265
                    <li><a class="dropdown-item" href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&amp;budget_parent_id=[% budget.budget_id | uri %]&amp;budget_period_id=[% budget.budget_period_id | uri %]"><i class="fa fa-plus"></i> Add sub fund</a></li>
262
                </ul>
266
                </ul>
Lines 756-762 Link Here
756
                    oTable.fnAddFilters("filter", 750);
760
                    oTable.fnAddFilters("filter", 750);
757
                [% END %]
761
                [% END %]
758
762
759
                $(".deletefund-disabled").tooltip().on("click", function(e){
763
                $(".deletefund-disabled").on("click", function(e){
760
                    e.preventDefault();
764
                    e.preventDefault();
761
                    alert(_("This fund has sub funds. It cannot be deleted."));
765
                    alert(_("This fund has sub funds. It cannot be deleted."));
762
                });
766
                });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt (+1 lines)
Lines 544-549 Link Here
544
          $('#filter').val($filter_container.data('filter'));
544
          $('#filter').val($filter_container.data('filter'));
545
        }
545
        }
546
546
547
        $('[data-bs-toggle="tooltip"]').tooltip();
547
    });
548
    });
548
    </script>
549
    </script>
549
[% END %]
550
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt (+1 lines)
Lines 674-679 Link Here
674
            });
674
            });
675
            $('#results').on('draw.dt', function (e, settings) {
675
            $('#results').on('draw.dt', function (e, settings) {
676
                prepSelections();
676
                prepSelections();
677
                $('[data-bs-toggle="tooltip"]').tooltip();
677
                var Sticky = $("#searchheader");
678
                var Sticky = $("#searchheader");
678
                Sticky.hcSticky({
679
                Sticky.hcSticky({
679
                    stickTo: "#results-wrapper .page-section",
680
                    stickTo: "#results-wrapper .page-section",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt (+3 lines)
Lines 200-205 Link Here
200
                var club_id = $(this).data("id");
200
                var club_id = $(this).data("id");
201
                SearchToHold( club_id );
201
                SearchToHold( club_id );
202
            });
202
            });
203
            $('[data-bs-toggle="tooltip"]').on("click",function(e){
204
                e.stopPropagation();
205
            }).tooltip();
203
        });
206
        });
204
207
205
        function ConfirmDeleteTemplate( id, name ) {
208
        function ConfirmDeleteTemplate( id, name ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/export.tt (-2 / +10 lines)
Lines 172-181 Link Here
172
                                <option value="xml">XML</option>
172
                                <option value="xml">XML</option>
173
                                [% IF csv_profiles %]
173
                                [% IF csv_profiles %]
174
                                    <option value="csv">CSV</option>
174
                                    <option value="csv">CSV</option>
175
                                [% ELSE %]
176
                                    <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>
177
                                [% END %]
175
                                [% END %]
178
                            </select>
176
                            </select>
177
                            [% UNLESS csv_profiles %]
178
                                <div class="hint">
179
                                    There are no CSV profiles for MARC exports.
180
                                    [% IF ( CAN_user_tools_manage_csv_profiles ) %]
181
                                         <a href="/cgi-bin/koha/tools/csv-profiles.pl">Create a CSV profile to export a CSV file.</a>
182
                                    [% ELSE %]
183
                                        CSV export unavailable.
184
                                    [% END %]
185
                                </div>
186
                            [% END %]
179
                        </li>
187
                        </li>
180
                        <li class="csv_profiles">
188
                        <li class="csv_profiles">
181
                            <label for="bibs_csv_profile">CSV profile: </label>
189
                            <label for="bibs_csv_profile">CSV profile: </label>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt (-2 / +2 lines)
Lines 302-310 Link Here
302
                            <ul id="sortable_stages" data-rota-id="[% rota.rota_id | html %]">
302
                            <ul id="sortable_stages" data-rota-id="[% rota.rota_id | html %]">
303
                                [% FOREACH stage IN existing_stages %]
303
                                [% FOREACH stage IN existing_stages %]
304
                                    <li id="stage_[% stage.stage_id | html %]">
304
                                    <li id="stage_[% stage.stage_id | html %]">
305
                                        <span data-bs-toggle="tooltip" title="Drag and drop to move this stage to another position" data-bs-placement="right" class="stagename">
305
                                        <span class="stagename">
306
                                            [% IF existing_stages.size > 1 %]
306
                                            [% IF existing_stages.size > 1 %]
307
                                                <i class="drag_handle fa-solid fa-fw fa-grip-vertical" aria-hidden="true"></i>
307
                                                <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>
308
                                            [% END %]
308
                                            [% END %]
309
                                            [% Branches.GetName(stage.branchcode_id) | html %]
309
                                            [% Branches.GetName(stage.branchcode_id) | html %]
310
                                        </span>
310
                                        </span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt (-7 / +5 lines)
Lines 218-224 Link Here
218
                        [% IF !plugin %]
218
                        [% IF !plugin %]
219
                            <td>
219
                            <td>
220
                                [% IF record.public %]
220
                                [% IF record.public %]
221
                                    <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>
221
                                    <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>
222
                                [% ELSE %]
222
                                [% ELSE %]
223
                                    No
223
                                    No
224
                                [% END %]
224
                                [% END %]
Lines 528-545 Link Here
528
            });
528
            });
529
529
530
            if ( window.isSecureContext ) {
530
            if ( window.isSecureContext ) {
531
                $('[data-bs-toggle="tooltip"]').tooltip();
531
                $(".get-file").on("click", function(e){
532
                $(".get-file").on("click", function(e){
532
                    e.preventDefault();
533
                    e.preventDefault();
533
                    if( navigator.clipboard && navigator.clipboard.writeText){
534
                    if( navigator.clipboard && navigator.clipboard.writeText){
534
                        navigator.clipboard.writeText( $(this).attr("href") );
535
                        navigator.clipboard.writeText( $(this).attr("href") );
535
                        $(this).attr("data-original-title", _( "Link copied to the clipboard" ) )
536
                        $(this).tooltip("dispose").attr('data-bs-title', _( "Link copied to the clipboard" )).tooltip("show");
536
                            .tooltip("show");
537
                    }
537
                    }
538
                });
538
                });
539
                $(".get-file").tooltip({
539
                $(".get-file").tooltip().on("hidden.bs.tooltip", function(){
540
                    delay: { "show": 100, "hide": 500 }
540
                    $(this).tooltip("dispose").attr("data-bs-title", _( "Copy link to this file" ) ).tooltip();
541
                }).on("hidden.bs.tooltip", function(){
542
                    $(this).attr("data-original-title", _( "Copy link to this file" ) );
543
                });
541
                });
544
            }
542
            }
545
        });
543
        });
(-)a/koha-tmpl/intranet-tmpl/prog/js/catalog.js (-6 / +4 lines)
Lines 117-128 $(document).ready(function() { Link Here
117
        return false;
117
        return false;
118
    });
118
    });
119
    $("#export").remove(); // Hide embedded export form if JS menus available
119
    $("#export").remove(); // Hide embedded export form if JS menus available
120
    $("#deletebiblio").tooltip();
120
121
    $("#batchedit-disabled,#batchdelete-disabled,#deleteallitems-disabled")
121
    $('[data-bs-toggle="tooltip"]').on("click",function(e){
122
        .on("click",function(e){
122
        e.stopPropagation();
123
            e.stopPropagation();
123
    }).tooltip();
124
        })
125
        .tooltip();
126
124
127
    $(".addtolist").on("click", function (e) {
125
    $(".addtolist").on("click", function (e) {
128
        e.preventDefault();
126
        e.preventDefault();
(-)a/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js (-1 / +1 lines)
Lines 79-83 $(document).ready(function(){ Link Here
79
        toggle_digest(Number($(this).attr("id").replace("phone", "")));
79
        toggle_digest(Number($(this).attr("id").replace("phone", "")));
80
    });
80
    });
81
81
82
//    $('#memberentry_messaging_prefs [data-bs-toggle="tooltip"][disabled]').tooltip();
82
    $('#memberentry_messaging_prefs [data-bs-toggle="tooltip"][disabled]').tooltip();
83
});
83
});
(-)a/koha-tmpl/intranet-tmpl/prog/js/pages/stockrotation.js (+1 lines)
Lines 85-88 $(document).ready(function() { Link Here
85
        "autoWidth": false,
85
        "autoWidth": false,
86
    }, stock_rotation_table_settings);
86
    }, stock_rotation_table_settings);
87
87
88
    $('[data-bs-toggle="tooltip"]').tooltip();
88
});
89
});
(-)a/koha-tmpl/intranet-tmpl/prog/js/serials-toolbar.js (+1 lines)
Lines 21-24 function popup(subscriptionid) { Link Here
21
    $("#mana-subscription-share").click(function() {
21
    $("#mana-subscription-share").click(function() {
22
        window.location="subscription-detail.pl?subscriptionid=" + subscriptionid + "&op=share";
22
        window.location="subscription-detail.pl?subscriptionid=" + subscriptionid + "&op=share";
23
    });
23
    });
24
    $('[data-bs-toggle="tooltip"]').tooltip();
24
 });
25
 });
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc (-2 / +1 lines)
Lines 78-84 Link Here
78
                                                <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;public=0" tabindex="-1" role="menuitem">View all</a>
78
                                                <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=list&amp;public=0" tabindex="-1" role="menuitem">View all</a>
79
                                            [% END %]
79
                                            [% END %]
80
                                        [% ELSE %]
80
                                        [% ELSE %]
81
                                            <a class="dropdown-item disabled" href="#" tabindex="-1" role="menuitem">No private lists</a>
81
                                            <a class="dropdown-item disabled" aria-disabled="true" href="#" tabindex="-1" role="menuitem">No private lists</a>
82
                                        [% END %]
82
                                        [% END %]
83
                                            <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="-1" role="menuitem">New list</a>
83
                                            <a class="dropdown-item listmenulink" href="/cgi-bin/koha/opac-shelves.pl?op=add_form" tabindex="-1" role="menuitem">New list</a>
84
                                    [% ELSE %]
84
                                    [% ELSE %]
85
- 

Return to bug 37748