Bugzilla – Attachment 101542 Details for
Bug 24476
Allow patrons to opt-out of auto-renewal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24476: (QA follow-up) Move new option below warnings and messages in OPAC account
Bug-24476-QA-follow-up-Move-new-option-below-warni.patch (text/plain), 5.95 KB, created by
Nick Clemens (kidclamp)
on 2020-03-24 11:23:00 UTC
(
hide
)
Description:
Bug 24476: (QA follow-up) Move new option below warnings and messages in OPAC account
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-03-24 11:23:00 UTC
Size:
5.95 KB
patch
obsolete
>From 5b0bf350c9bee7f0c64b6018f7b914caf058062a Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Tue, 24 Mar 2020 10:14:55 +0100 >Subject: [PATCH] Bug 24476: (QA follow-up) Move new option below warnings and > messages in OPAC account > >This makes it so the new option appears right above the table of checkouts etc. >but below any warnings, messages or dialogs. > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > .../opac-tmpl/bootstrap/en/modules/opac-user.tt | 61 +++++++++++----------- > 1 file changed, 31 insertions(+), 30 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >index f886df0c5e..b4c92c6176 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -49,36 +49,6 @@ > > <p><a href="/cgi-bin/koha/opac-main.pl?logout.x=1">Click here if you're not [% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a></p> > >- [% IF Koha.Preference('AllowPatronToControlAutorenewal') %] >- <form id="autorenewal_option" action="/cgi-bin/koha/opac-user.pl" method="post"> >- <label for="yes-autorenew_checkouts"> >- Allow auto renewal: >- </label> >- [% IF ( borrower.autorenew_checkouts ) %] >- <label class="radio inline" for="yes-autorenew_checkouts"> >- Yes >- <input type="radio" id="yes-autorenew_checkouts" name="borrower_autorenew_checkouts" value="1" checked="checked" /> >- </label> >- >- <label class="radio inline" for="no-autorenew_checkouts"> >- No >- <input type="radio" id="no-autorenew_checkouts" name="borrower_autorenew_checkouts" value="0" /> >- </label> >- [% ELSE %] >- <label class="radio inline" for="yes-autorenew_checkouts"> >- Yes >- <input type="radio" id="yes-autorenew_checkouts" name="borrower_autorenew_checkouts" value="1" /> >- </label> >- <label class="radio inline" for="no-autorenew_checkouts"> >- No >- <input type="radio" id="no-autorenew_checkouts" name="borrower_autorenew_checkouts" value="0" checked="checked" /> >- </label> >- [% END %] >- <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> >- <input type="hidden" name="update_arc" value="1" /> >- <input type="submit" value="Update auto renewal preference" /> >- </form> >- [% END %] > [% IF ( patronupdate ) %]<div class="alert alert-info"><h3>Thank you!</h3><p>Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.</p></div>[% END %] > > [% IF failed_holds %] >@@ -181,6 +151,37 @@ > <div id="opac-my-summary-note">[% Koha.Preference('OPACMySummaryNote') | $raw %]</div> > [% END %] > >+ [% IF Koha.Preference('AllowPatronToControlAutorenewal') %] >+ <form id="autorenewal_option" action="/cgi-bin/koha/opac-user.pl" method="post"> >+ <label for="yes-autorenew_checkouts"> >+ Allow auto renewal: >+ </label> >+ [% IF ( borrower.autorenew_checkouts ) %] >+ <label class="radio inline" for="yes-autorenew_checkouts"> >+ Yes >+ <input type="radio" id="yes-autorenew_checkouts" name="borrower_autorenew_checkouts" value="1" checked="checked" /> >+ </label> >+ >+ <label class="radio inline" for="no-autorenew_checkouts"> >+ No >+ <input type="radio" id="no-autorenew_checkouts" name="borrower_autorenew_checkouts" value="0" /> >+ </label> >+ [% ELSE %] >+ <label class="radio inline" for="yes-autorenew_checkouts"> >+ Yes >+ <input type="radio" id="yes-autorenew_checkouts" name="borrower_autorenew_checkouts" value="1" /> >+ </label> >+ <label class="radio inline" for="no-autorenew_checkouts"> >+ No >+ <input type="radio" id="no-autorenew_checkouts" name="borrower_autorenew_checkouts" value="0" checked="checked" /> >+ </label> >+ [% END %] >+ <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" /> >+ <input type="hidden" name="update_arc" value="1" /> >+ <input type="submit" value="Update auto renewal preference" /> >+ </form> >+ [% END %] >+ > <div id="opac-user-views" class="toptabs"> > <ul> > <li><a href="#opac-user-checkouts">Checked out ([% issues_count | html %])</a></li> >-- >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 24476
:
97766
|
97767
|
97768
|
97769
|
97770
|
97831
|
97832
|
97833
|
97834
|
97835
|
97836
|
97923
|
97924
|
97925
|
97926
|
97927
|
97928
|
97997
|
97998
|
97999
|
98000
|
98001
|
98002
|
99793
|
99794
|
99795
|
99796
|
99797
|
99798
|
99799
|
99800
|
100022
|
100023
|
100024
|
100025
|
100026
|
100027
|
100028
|
100029
|
101385
|
101419
|
101420
|
101421
|
101422
|
101423
|
101424
|
101425
|
101426
|
101427
|
101511
|
101512
|
101513
|
101514
|
101515
|
101516
|
101517
|
101518
|
101519
|
101520
|
101521
| 101542