Bugzilla – Attachment 91511 Details for
Bug 11642
Improve Batch patron deletion and anonymization GUI to make consequences clearer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11642: Add confirmation and tooltips to batch deletion tool
Bug-11642-Add-confirmation-and-tooltips-to-batch-d.patch (text/plain), 2.20 KB, created by
Katrin Fischer
on 2019-07-13 09:04:22 UTC
(
hide
)
Description:
Bug 11642: Add confirmation and tooltips to batch deletion tool
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-07-13 09:04:22 UTC
Size:
2.20 KB
patch
obsolete
>From 20371f824da4c4924916290077f0aff5b86ac71d Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 6 Jun 2019 15:16:35 +0000 >Subject: [PATCH] Bug 11642: Add confirmation and tooltips to batch deletion > tool > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt >index 40aae31c9e..0ba2d02ebe 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt >@@ -148,10 +148,10 @@ > <br /> > [% IF patrons_to_delete.size %] > <fieldset><legend>What do you want to do for deleted patrons?</legend> >- <input id="delete" type="radio" name="radio" value="delete" /> >+ <input id="delete" type="radio" name="radio" value="delete" title="Delete patrons directly from the database, not recoverable"/> > <label for="delete">Permanently delete these patrons</label> > >- <br /><input id="trash" type="radio" name="radio" value="trash" /> >+ <br /><input id="trash" type="radio" name="radio" value="trash" title="Move patrons to the deleted borrowers table, they can be deleted permanently by the cleanup_database script"/> > <label for="trash">Move these patrons to the trash</label> > > <br /><input id="testrun" type="radio" name="radio" value="testrun" checked="checked" /> >@@ -231,6 +231,13 @@ > $('#branch').change(function() { > $('#selectlibrary').submit(); > }); >+ $("form[name='f2']").on('submit',function(){ >+ if( $("#delete").attr("checked") ){ >+ if( !confirm(_("These patrons will be permanently removed from the database and cannot be recovered")) ){ >+ return false; >+ } >+ } >+ }); > }); > > /** >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11642
:
24891
|
90381
|
90457
|
90496
|
90497
|
90498
|
90499
|
90556
|
90557
|
90558
| 91511 |
91512
|
91513