From 2ed010e19f836f824a89c4789c23439d8073495b Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 24 May 2017 13:46:50 +0000 Subject: [PATCH] Bug 18656 - Require confirmation of deletion of files from patron record This patch adds a JavaScript confirm to the deletion of files. It also styles the file deletion link as a Bootstrap button. To test, apply the patch and open the "Files" page for a patron who has files attached. - Verify that clicking any "delete" link prompts for a confirmation. - Verify that confirming the dialog triggers the deletion of the correct file. - Verify that canceling the confirmation dialog aborts the deletion. - Confirm that the "Delete" button looks correct. Signed-off-by: David Roberts Revision for QA: Replaced '.click(function' with '.on("click",function' Signed-off-by: Jonathan Druart (cherry picked from commit a38ffe2d48c35029ef80ea0a4294e36b408cd1a4) Signed-off-by: Fridolin Somers (cherry picked from commit 2bc4791dedc9d266b7aa3a121e62af2dc78354e2) Signed-off-by: Katrin Fischer --- .../prog/en/modules/members/files.tt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt index 15bdc1b36a..ba4cc1f63b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt @@ -3,6 +3,19 @@ [% INCLUDE 'doc-head-open.inc' %] Files for [% INCLUDE 'patron-title.inc' %] [% INCLUDE 'doc-head-close.inc' %] + [% INCLUDE 'header.inc' %] @@ -44,7 +57,7 @@ [% f.file_type %] [% f.file_description %] [% f.date_uploaded | $KohaDates %] - [% IF CAN_user_borrowers %]Delete[% END %] + [% IF CAN_user_borrowers %] Delete[% END %] [% END %] -- 2.39.5