Bugzilla – Attachment 130260 Details for
Bug 29526
Add 'Immediately delete holds history' button to patron privacy tab in opac
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29526: (follow-up) Put delete buttons in HTML table
Bug-29526-follow-up-Put-delete-buttons-in-HTML-tab.patch (text/plain), 5.70 KB, created by
Martin Renvoize (ashimema)
on 2022-02-08 08:17:21 UTC
(
hide
)
Description:
Bug 29526: (follow-up) Put delete buttons in HTML table
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-02-08 08:17:21 UTC
Size:
5.70 KB
patch
obsolete
>From c4ef3b9f240304ab71c89316c78cf0e7472911de Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Mon, 3 Jan 2022 18:07:14 +0000 >Subject: [PATCH] Bug 29526: (follow-up) Put delete buttons in HTML table > >Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../bootstrap/en/modules/opac-privacy.tt | 46 ++++++++++++------- > 1 file changed, 30 insertions(+), 16 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt >index adede9145a..4e291acd73 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-privacy.tt >@@ -154,34 +154,48 @@ > > <h2>Immediate deletion</h2> > >- <p>Whatever your privacy rule you choose, you can delete all your checkout and hold history immediately by clicking here. <strong>BE CAREFUL</strong>. Once you've confirmed the deletion, no one can retrieve the list!</p> >+ <p>You can delete all your checkout and hold history immediately by clicking here. <strong>BE CAREFUL</strong>. Once you've confirmed the deletion, no one can retrieve the list!</p> > >- <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-form"> >- <legend class="sr-only">Checkout history deletion</legend> >+ <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-checkouts"> > <input type="hidden" name="op" value="delete_record" /> > <input type="hidden" name="checkouts" value="1" /> >- <fieldset class="action"> >- <input type="submit" value="Checkout history" class="btn btn-danger" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" /> >- </fieldset> > </form> > >- <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-form"> >- <legend class="sr-only">Hold history deletion</legend> >+ <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-holds"> > <input type="hidden" name="op" value="delete_record" /> > <input type="hidden" name="holds" value="1" /> >- <fieldset class="action"> >- <input type="submit" value="Hold history" class="btn btn-danger" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" /> >- </fieldset> > </form> > >- <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-form"> >- <legend class="sr-only">Checkout and hold history deletion</legend> >+ <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-all"> > <input type="hidden" name="op" value="delete_record" /> > <input type="hidden" name="all" value="1" /> >- <fieldset class="action"> >- <input type="submit" value="Checkout and hold history" class="btn btn-danger" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" /> >- </fieldset> > </form> >+ <table class="table table-bordered table-condensed table-striped"> >+ <tr> >+ <td colspan=7>Immediately delete my checkout history. This action cannot be undone.</td> >+ <td colspan=1> >+ <fieldset class="action"> >+ <input type="submit" value="Delete checkout history" form="opac-privacy-delete-checkouts" class="btn btn-danger btn-block" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" /> >+ </fieldset> >+ </td> >+ </tr> >+ <tr> >+ <td colspan=7>Immediately delete my hold history. This action cannot be undone.</td> >+ <td colspan=1> >+ <fieldset class="action"> >+ <input type="submit" value="Delete hold history" form="opac-privacy-delete-holds" class="btn btn-danger btn-block" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" /> >+ </fieldset> >+ </td> >+ </tr> >+ <tr> >+ <td colspan=7>Immediately delete my checkout history & my hold history. This action cannot be undone.</td> >+ <td colspan=1> >+ <fieldset class="action"> >+ <input type="submit" value="Delete checkout and hold history" form="opac-privacy-delete-all" class="btn btn-danger btn-block" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" /> >+ </fieldset> >+ </td> >+ </tr> >+ </table> > > [% IF Koha.Preference('StoreLastBorrower') %] > <p id="store-last-borrower-msg">Please note, the last person to return an item is tracked for the management of items returned damaged.</p> >-- >2.20.1
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 29526
:
128967
|
128974
|
128982
|
129027
|
129028
|
129029
|
130259
| 130260 |
130261