Lines 200-205
Link Here
|
200 |
[% END # /IF patron.borrowernotes %] |
200 |
[% END # /IF patron.borrowernotes %] |
201 |
|
201 |
|
202 |
[% IF ( patron_messages ) %] |
202 |
[% IF ( patron_messages ) %] |
|
|
203 |
<script> |
204 |
function confirm_deletion() { |
205 |
if (confirm(_("Are you sure you want to delete this message? This cannot be undone."))) { |
206 |
window.location="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id | html %]&borrowernumber=[% patron_message.borrowernumber | html %]&from=moremember"; |
207 |
} |
208 |
} |
209 |
</script> |
203 |
<div id="messages" class="circmessage"> |
210 |
<div id="messages" class="circmessage"> |
204 |
<h4>Messages</h4> |
211 |
<h4>Messages</h4> |
205 |
<ul> |
212 |
<ul> |
Lines 218-224
Link Here
|
218 |
<em>"[% patron_message.message | html %]"</em> |
225 |
<em>"[% patron_message.message | html %]"</em> |
219 |
</span> |
226 |
</span> |
220 |
[% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %] |
227 |
[% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %] |
221 |
<a class="btn btn-link" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id | html %]&borrowernumber=[% patron_message.borrowernumber | html %]&from=moremember" onclick='return confirm(_("Are you sure you want to delete this message? This cannot be undone."));'><i class="fa fa-trash"></i> Delete</a> |
228 |
<a class="btn btn-link" href="javascript:confirm_deletion()"><i class="fa fa-trash"></i> Delete</a> |
222 |
[% END %] |
229 |
[% END %] |
223 |
</li> |
230 |
</li> |
224 |
[% END %] |
231 |
[% END %] |