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 %]&destination=[% destination | html %]&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 %]&destination=[% destination | html %]&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> |