View | Details | Raw Unified | Return to bug 24476
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-31 / +31 lines)
Lines 49-84 Link Here
49
49
50
                    <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>
50
                    <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>
51
51
52
                    [% IF Koha.Preference('AllowPatronToControlAutorenewal') %]
53
                    <form id="autorenewal_option" action="/cgi-bin/koha/opac-user.pl" method="post">
54
                            <label for="yes-autorenew_checkouts">
55
                                Allow auto renewal:
56
                            </label>
57
                                [% IF ( borrower.autorenew_checkouts ) %]
58
                                    <label class="radio inline" for="yes-autorenew_checkouts">
59
                                        Yes
60
                                        <input type="radio" id="yes-autorenew_checkouts" name="borrower_autorenew_checkouts" value="1" checked="checked" />
61
                                    </label>
62
63
                                    <label class="radio inline" for="no-autorenew_checkouts">
64
                                        No
65
                                        <input type="radio" id="no-autorenew_checkouts" name="borrower_autorenew_checkouts" value="0" />
66
                                    </label>
67
                                [% ELSE %]
68
                                    <label class="radio inline" for="yes-autorenew_checkouts">
69
                                        Yes
70
                                        <input type="radio" id="yes-autorenew_checkouts" name="borrower_autorenew_checkouts" value="1" />
71
                                    </label>
72
                                    <label class="radio inline" for="no-autorenew_checkouts">
73
                                        No
74
                                        <input type="radio" id="no-autorenew_checkouts" name="borrower_autorenew_checkouts" value="0" checked="checked" />
75
                                    </label>
76
                                [% END %]
77
                        <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
78
                        <input type="hidden" name="update_arc" value="1" />
79
                        <input type="submit" value="Update auto renewal preference" />
80
                    </form>
81
                    [% END %]
82
                    [% 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 %]
52
                    [% 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 %]
83
53
84
                    [% IF failed_holds %]
54
                    [% IF failed_holds %]
Lines 181-186 Link Here
181
                        <div id="opac-my-summary-note">[% Koha.Preference('OPACMySummaryNote') | $raw %]</div>
151
                        <div id="opac-my-summary-note">[% Koha.Preference('OPACMySummaryNote') | $raw %]</div>
182
                    [% END %]
152
                    [% END %]
183
153
154
                    [% IF Koha.Preference('AllowPatronToControlAutorenewal') %]
155
                    <form id="autorenewal_option" action="/cgi-bin/koha/opac-user.pl" method="post">
156
                            <label for="yes-autorenew_checkouts">
157
                                Allow auto renewal:
158
                            </label>
159
                                [% IF ( borrower.autorenew_checkouts ) %]
160
                                    <label class="radio inline" for="yes-autorenew_checkouts">
161
                                        Yes
162
                                        <input type="radio" id="yes-autorenew_checkouts" name="borrower_autorenew_checkouts" value="1" checked="checked" />
163
                                    </label>
164
165
                                    <label class="radio inline" for="no-autorenew_checkouts">
166
                                        No
167
                                        <input type="radio" id="no-autorenew_checkouts" name="borrower_autorenew_checkouts" value="0" />
168
                                    </label>
169
                                [% ELSE %]
170
                                    <label class="radio inline" for="yes-autorenew_checkouts">
171
                                        Yes
172
                                        <input type="radio" id="yes-autorenew_checkouts" name="borrower_autorenew_checkouts" value="1" />
173
                                    </label>
174
                                    <label class="radio inline" for="no-autorenew_checkouts">
175
                                        No
176
                                        <input type="radio" id="no-autorenew_checkouts" name="borrower_autorenew_checkouts" value="0" checked="checked" />
177
                                    </label>
178
                                [% END %]
179
                        <input type="hidden" name="csrf_token" value="[% csrf_token | html %]" />
180
                        <input type="hidden" name="update_arc" value="1" />
181
                        <input type="submit" value="Update auto renewal preference" />
182
                    </form>
183
                    [% END %]
184
184
                    <div id="opac-user-views" class="toptabs">
185
                    <div id="opac-user-views" class="toptabs">
185
                        <ul>
186
                        <ul>
186
                            <li><a href="#opac-user-checkouts">Checked out ([% issues_count | html %])</a></li>
187
                            <li><a href="#opac-user-checkouts">Checked out ([% issues_count | html %])</a></li>
187
- 

Return to bug 24476