From 62e6a365499b6c00f4f6ef9dbbd6182f6fb85d4c 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 --- koha-tmpl/intranet-tmpl/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 15bdc1b..c7f41f6 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.1.4