Lines 220-230
Link Here
|
220 |
<em>"[% patron_message.message | html %]"</em> |
220 |
<em>"[% patron_message.message | html %]"</em> |
221 |
</span> |
221 |
</span> |
222 |
[% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %] |
222 |
[% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %] |
223 |
<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> |
223 |
<a class="btn btn-link delete_message" href="/cgi-bin/koha/circ/del_message.pl?message_id=[% patron_message.message_id | html %]&borrowernumber=[% patron_message.borrowernumber | html %]&from=moremember"><i class="fa fa-trash"></i> Delete</a> |
224 |
[% END %] |
224 |
[% END %] |
225 |
</li> |
225 |
</li> |
226 |
[% END %] |
226 |
[% END %] |
227 |
</ul> |
227 |
</ul> |
228 |
<a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a> |
228 |
<a id="addnewmessageLabel" href="#add_message_form" class="btn btn-link" data-toggle="modal"><i class="fa fa-plus"></i> Add a new message</a> |
229 |
</div> <!-- /#messages --> |
229 |
</div> <!-- /#messages --> |
|
|
230 |
<script> |
231 |
function confirm_message_deletion() { |
232 |
return confirm(_("Are you sure you want to delete this message? This cannot be undone.")); |
233 |
} |
234 |
</script> |
230 |
[% END # /IF patron_messages %] |
235 |
[% END # /IF patron_messages %] |