Lines 349-355
Link Here
|
349 |
</span> |
349 |
</span> |
350 |
[% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %] |
350 |
[% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %] |
351 |
[% IF moremember %] |
351 |
[% IF moremember %] |
352 |
<a id="#edit_message_form_[% patron_message.message_id | html %]" class="btn btn-link edit_message" href="#edit_message_form_[% patron_message.message_id | uri %]" data-bs-target="#edit_message_form_[% patron_message.message_id | html %]" data-bs-toggle="modal" class="btn btn-default"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
352 |
<a id="#edit_message_form_[% patron_message.message_id | html %]" class="btn btn-link edit_message" href="#edit_message_form_[% patron_message.message_id | uri %]" data-bs-target="#edit_message_form_[% patron_message.message_id | html %]" data-bs-toggle="modal"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
353 |
<form action="/cgi-bin/koha/circ/del_message.pl" method="post"> |
353 |
<form action="/cgi-bin/koha/circ/del_message.pl" method="post"> |
354 |
[% INCLUDE 'csrf-token.inc' %] |
354 |
[% INCLUDE 'csrf-token.inc' %] |
355 |
<input type="hidden" name="op" value="cud-delete"> |
355 |
<input type="hidden" name="op" value="cud-delete"> |
Lines 359-365
Link Here
|
359 |
<button type="submit" class="btn btn-link delete_message"><i class="fa fa-trash-can"></i> Delete</button> |
359 |
<button type="submit" class="btn btn-link delete_message"><i class="fa fa-trash-can"></i> Delete</button> |
360 |
</form> |
360 |
</form> |
361 |
[% ELSE %] |
361 |
[% ELSE %] |
362 |
<a id="#edit_message_form_[% patron_message.message_id | html %]" class="btn btn-link edit_message" href="#edit_message_form_[% patron_message.message_id | uri %]" data-bs-target="#edit_message_form_[% patron_message.message_id | html %]" data-bs-toggle="modal" class="btn btn-default"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
362 |
<a id="#edit_message_form_[% patron_message.message_id | html %]" class="btn btn-link edit_message" href="#edit_message_form_[% patron_message.message_id | uri %]" data-bs-target="#edit_message_form_[% patron_message.message_id | html %]" data-bs-toggle="modal"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
363 |
<form action="/cgi-bin/koha/circ/del_message.pl" method="post"> |
363 |
<form action="/cgi-bin/koha/circ/del_message.pl" method="post"> |
364 |
[% INCLUDE 'csrf-token.inc' %] |
364 |
[% INCLUDE 'csrf-token.inc' %] |
365 |
<input type="hidden" name="op" value="cud-delete"> |
365 |
<input type="hidden" name="op" value="cud-delete"> |
Lines 379-385
Link Here
|
379 |
<div id="edit_message_form_[% pm.message_id | html %]" class="modal" tabindex="-1" aria-labelledby="#edit_message_form_[% patron_message.message_id | html %]" aria-hidden="true"> |
379 |
<div id="edit_message_form_[% pm.message_id | html %]" class="modal" tabindex="-1" aria-labelledby="#edit_message_form_[% patron_message.message_id | html %]" aria-hidden="true"> |
380 |
<div class="modal-dialog"> |
380 |
<div class="modal-dialog"> |
381 |
<div class="modal-content"> |
381 |
<div class="modal-content"> |
382 |
<form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="message_form" name="message_f"> |
382 |
<form method="post" action="/cgi-bin/koha/circ/add_message.pl" id="edit_message_form" name="message_f"> |
383 |
[% INCLUDE 'csrf-token.inc' %] |
383 |
[% INCLUDE 'csrf-token.inc' %] |
384 |
<input type="hidden" name="op" value="cud-edit_message"> |
384 |
<input type="hidden" name="op" value="cud-edit_message"> |
385 |
<input type="hidden" name="message_id" value="[% pm.message_id | html %]"/> |
385 |
<input type="hidden" name="message_id" value="[% pm.message_id | html %]"/> |
Lines 388-396
Link Here
|
388 |
</div> |
388 |
</div> |
389 |
<div class="modal-body"> |
389 |
<div class="modal-body"> |
390 |
<div class="form-group"> |
390 |
<div class="form-group"> |
391 |
<label for="message_type"> |
391 |
<label for="edit_message_type"> |
392 |
Message is for: |
392 |
Message is for: |
393 |
<select name="message_type" id="message_type" disabled> |
393 |
<select name="message_type" id="edit_message_type" disabled> |
394 |
[% IF pm.message_type == "L" %] |
394 |
[% IF pm.message_type == "L" %] |
395 |
<option value="L" selected="selected">Staff - Internal note</option> |
395 |
<option value="L" selected="selected">Staff - Internal note</option> |
396 |
[% ELSE %] |
396 |
[% ELSE %] |
Lines 406-412
Link Here
|
406 |
</label> |
406 |
</label> |
407 |
</div> |
407 |
</div> |
408 |
<div class="form-group"> |
408 |
<div class="form-group"> |
409 |
<textarea rows="3" class="modal-textarea" name="borrower_message" id="borrower_message" >[% pm.message | html %]</textarea> |
409 |
<textarea rows="3" class="modal-textarea" name="borrower_message" id="edit_borrower_message" >[% pm.message | html %]</textarea> |
410 |
</div> |
410 |
</div> |
411 |
</div> |
411 |
</div> |
412 |
<div class="modal-footer"> |
412 |
<div class="modal-footer"> |