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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc (+112 lines)
Line 0 Link Here
1
<h3>Fines and charges</h3>
2
3
[% IF ( ACCOUNT_LINES ) %]
4
    <form method="post" action="opac-account-pay.pl" class="form-horizontal">
5
    <table class="table table-bordered table-striped" id="finestable">
6
        <thead>
7
            <tr>
8
                [% IF ENABLE_OPAC_PAYMENTS %]<th>&nbsp;</th>[% END %]
9
                <th class="title-string">Date</th>
10
                <th>Description</th>
11
                <th>Fine amount</th>
12
                <th>Amount outstanding</th>
13
            </tr>
14
        </thead>
15
16
        <tfoot>
17
        <tr>
18
            [%- IF ENABLE_OPAC_PAYMENTS -%]
19
                [%- SET COLSPAN = 4 -%]
20
            [%- ELSE -%]
21
                [%- SET COLSPAN = 3 -%]
22
            [%- END -%]
23
            <th class="sum" colspan="[% COLSPAN | html %]">Total due</th>
24
            <td class="sum">[% total | $Price %]</td>
25
        </tr>
26
        </tfoot>
27
28
        <tbody>
29
            [% FOREACH ACCOUNT_LINE IN ACCOUNT_LINES %]
30
                [% IF ( ACCOUNT_LINE.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
31
                    [% IF ENABLE_OPAC_PAYMENTS %]
32
                        <td>
33
                            [% IF ACCOUNT_LINE.amountoutstanding > 0 %]
34
                                [% SET DISPLAY_PAYMENT_BLOCK = 1 %]
35
                                <input class="checkbox-pay pay-online hidden" name="accountline" type="checkbox" id="checkbox-pay-[% ACCOUNT_LINE.accountlines_id | html %]" value="[% ACCOUNT_LINE.accountlines_id | html %]">
36
                                <input type="hidden" id="amount-[% ACCOUNT_LINE.accountlines_id | html %]" value="[% ACCOUNT_LINE.amountoutstanding | html %]" />
37
                            [% END %]
38
                        </td>
39
                    [% END %]
40
                    <td><span title="[% ACCOUNT_LINE.date | html %]">[% ACCOUNT_LINE.date | $KohaDates %]</span></td>
41
                    <td>
42
                        [% SWITCH ACCOUNT_LINE.accounttype %]
43
                        [% CASE 'Pay' %]Payment, thanks
44
                        [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
45
                        [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
46
                        [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
47
                        [% CASE 'N' %]New card
48
                        [% CASE 'F' %]Fine
49
                        [% CASE 'A' %]Account management fee
50
                        [% CASE 'M' %]Sundry
51
                        [% CASE 'L' %]Lost item
52
                        [% CASE 'W' %]Writeoff
53
                        [% CASE 'FU' %]Accruing fine
54
                        [% CASE 'HE' %]Hold waiting too long
55
                        [% CASE 'Rent' %]Rental fee
56
                        [% CASE 'FOR' %]Forgiven
57
                        [% CASE 'LR' %]Lost item fee refund
58
                        [% CASE 'PF' %]Processing fee
59
                        [% CASE 'PAY' %]Payment
60
                        [% CASE 'WO' %]Writeoff
61
                        [% CASE 'C' %]Credit
62
                        [% CASE 'CR' %]Credit
63
                        [% CASE %][% ACCOUNT_LINE.accounttype | html %]
64
                        [%- END -%]
65
                        [%- IF ACCOUNT_LINE.payment_type %], [% AuthorisedValues.GetByCode('PAYMENT_TYPE', ACCOUNT_LINE.payment_type, 1) | html %][% END %]
66
                        [%- IF ACCOUNT_LINE.description %], [% ACCOUNT_LINE.description | html %][% END %]
67
                        [% IF ACCOUNT_LINE.title %]([% ACCOUNT_LINE.title | html %])[% END %]
68
                    </td>
69
                    [% IF ( ACCOUNT_LINE.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amount | $Price %]</td>
70
                    [% IF ( ACCOUNT_LINE.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amountoutstanding | $Price %]</td>
71
                </tr>
72
            [% END %]
73
        </tbody>
74
75
    </table>
76
77
        [% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %]
78
            <fieldset class="pay-online hidden">
79
                <legend>Pay selected fines and charges</legend>
80
                    <span class="help-block"><h3>Payment method</h3></span>
81
82
                    [% IF Koha.Preference('EnablePayPalOpacPayments') %]
83
                        <div class="control-group">
84
                            <label class="radio">
85
                                <input type="radio" name="payment_method" id="payment_method-paypal" value="paypal" checked="checked">
86
                                <!-- PayPal Logo --><a href="https://www.paypal.com/webapps/mpp/paypal-popup" title="How PayPal Works" class="paypal"><img src="https://www.paypalobjects.com/webstatic/mktg/logo/AM_SbyPP_mc_vs_dc_ae.jpg" border="0" alt="PayPal Acceptance Mark"></a><!-- PayPal Logo -->
87
                            </label>
88
                        </div>
89
                    [% END %]
90
91
                    [% FOREACH p IN plugins %]
92
                        <div class="control-group">
93
                            <label class="radio">
94
                                <input type="radio" name="payment_method" id="payment_method-[% p.class | html %]" value="[% p.class | html %]" checked="checked">
95
                                [% p.get_metadata.name | html %]
96
                            </label>
97
                        </div>
98
                    [% END %]
99
100
                    <div class="control-group">
101
                        <input type="hidden" id="payment-amount" name="payment_amount" value="0" />
102
                        <button id="submit-pay" type="submit" class="btn" disabled="disabled">Make payment</button>
103
                        <span id="amount-to-pay-label">
104
                            Amount to pay: <span id="amount-to-pay">0.00</span>
105
                        </span>
106
                    </div>
107
            </fieldset>
108
        [% END %]
109
    </form>
110
[% ELSE %]
111
    <h4>You have no fines or charges</h4>
112
[% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc (+222 lines)
Line 0 Link Here
1
[% USE Branches %]
2
[% USE ItemTypes %]
3
[% USE KohaDates %]
4
5
[% IF ( HOLDS.count ) %]
6
    <div id="opac-user-holds">
7
        <table id="holdst" class="table table-bordered table-striped">
8
            <caption>Holds <span class="count">([% HOLDS.count | html %] total)</span></caption>
9
            <!-- HOLDS TABLE ROWS -->
10
            <thead>
11
                <tr>
12
                    <th class="anti-the">Title</th>
13
                    [% IF ( showpriority ) %]
14
                        <th class="title-string">Placed on</th>
15
                    [% ELSE %]
16
                        <th class="psort title-string">Placed on</th>
17
                    [% END %]
18
                    <th class="title-string">Expires on</th>
19
                    [% UNLESS( singleBranchMode) %]
20
                        <th>Pick up location</th>
21
                    [% END %]
22
                    [% IF ( showpriority ) %]
23
                        <th class="psort">Priority</th>
24
                    [% END %]
25
                    <th>Status</th>
26
                    [% IF SuspendHoldsOpac and ! onlyinfo %]
27
                            <th class="nosort" >Suspend</th>
28
                    [% END %]
29
                    [% IF ! onlyinfo %]
30
                        <th class="nosort">Modify</th>
31
                    [% END %]
32
                </tr>
33
            </thead>
34
            <tbody>
35
            [% FOREACH HOLD IN HOLDS %]
36
                [% IF ( HOLD.is_waiting ) %]
37
                    [% IF ( HOLD.is_at_destination ) %]
38
                        [% IF ( HOLD.is_found ) %]
39
                            <tr class="reserved">
40
                        [% ELSE %]
41
                            <tr>
42
                        [% END %]
43
                    [% ELSE %]
44
                        <tr class="transfered">
45
                    [% END %]
46
                [% ELSE %]
47
                    <tr>
48
                [% END %]
49
                    <td class="title">
50
                        [% IF ! onlyinfo %]
51
                        <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% HOLD.biblionumber | html %]">
52
                            [% HOLD.biblio.title | html %]
53
                            [% FOREACH s IN HOLD.biblio.subtitles %]
54
                                [% s | html %]
55
                            [% END %]
56
                            [% HOLD.item.enumchron | html %]
57
                        </a>
58
                        [% ELSE %]
59
                        <strong>
60
                            [% HOLD.biblio.title | html %]
61
                            [% FOREACH s IN HOLD.biblio.subtitles %]
62
                                [% s | html %]
63
                            [% END %]
64
                            [% HOLD.item.enumchron | html %]
65
                        </strong>
66
                        [% END %]
67
                        [% HOLD.biblio.author | html %]
68
                    </td>
69
                    <td class="reservedate">
70
                        <span title="[% HOLD.reservedate | html %]">
71
                            <span class="tdlabel">Hold date:</span>
72
                            [% HOLD.reservedate | $KohaDates %]
73
                        </span>
74
                    </td>
75
                    <td class="expirationdate">
76
                        [% IF ! HOLD.found %]
77
                            [% IF ( HOLD.expirationdate ) %]
78
                                <span title="[% HOLD.expirationdate | html %]">
79
                                    <span class="tdlabel">Expiration:</span>
80
                                        [% HOLD.expirationdate | $KohaDates %]
81
                                </span>
82
                            [% ELSE %]
83
                                <span title="0000-00-00">
84
                                    <span class="tdlabel">Expiration:</span>
85
                                    Never expires
86
                                </span>
87
                            [% END %]
88
                        [% ELSE %]
89
                            <span title="0000-00-00">-</span>
90
                        [% END %]
91
                    </td>
92
                    [% UNLESS( singleBranchMode) %]
93
                        <td class="branch">
94
                            <span class="tdlabel">Pick up location:</span>
95
                            [% HOLD.branch.branchname | html %]
96
                        </td>
97
                    [% END %]
98
                    [% IF ( showpriority ) %]
99
                            <td data-order="[% HOLD.priority | html %]" class="priority">
100
                            <span class="tdlabel">Priority:</span>
101
                            [% HOLD.priority | html %]
102
                        </td>
103
                    [% END %]
104
                    <td class="status">
105
                        <span class="tdlabel">Status:</span>
106
                        [% IF ( HOLD.is_waiting ) %]
107
                            [% IF ( HOLD.is_at_destination ) %]
108
                                [% IF ( HOLD.found ) %]
109
                                    Item waiting at <b> [% HOLD.branch.branchname | html %]</b>
110
                                    [% IF ( HOLD.waitingdate ) %]
111
                                        since [% HOLD.waitingdate | $KohaDates %]
112
                                        [% IF HOLD.expirationdate %]
113
                                            until [% HOLD.expirationdate | $KohaDates %]
114
                                        [% END %]
115
                                    [% END %]
116
                                    <input type="hidden" name="pickup" value="[% HOLD.branchcode | html %]" />
117
                                [% ELSE %]
118
                                    Item waiting to be pulled from <b> [% Branches.GetName( HOLD.branchcode ) | html %]</b>
119
                                [% END %]
120
                            [% ELSE %]
121
                                Item in transit to <b> [% Branches.GetName( HOLD.branchcode ) | html %]</b> <input type="hidden" name="pickup" value="[% HOLD.branchcode | html %]" />
122
                            [% END %]
123
                        [% ELSE %]
124
                            [% IF ( HOLD.is_in_transit ) %]
125
                                [% SET transfer = HOLD.item.get_transfer %]
126
                                Item in transit from <b> [% Branches.GetName( transfer.frombranch ) | html %]</b> since
127
                                [% transfer.datesent | $KohaDates %]
128
                            [% ELSIF ( HOLD.suspend ) %]
129
                                Suspended [% IF ( HOLD.suspend_until ) %] until [% HOLD.suspend_until | html %] [% END %]
130
                            [% ELSE %]
131
                                [% IF HOLD.itemtype %]
132
                                    Pending for next available item of item type '[% ItemTypes.GetDescription( HOLD.itemtype ) | html %]'
133
                                [% ELSE %]
134
                                    Pending
135
                                [% END %]
136
                            [% END %]
137
                        [% END %]
138
                    </td>
139
                    [% IF SuspendHoldsOpac and ! onlyinfo %]
140
                        <td>
141
                            [% IF ( HOLD.is_cancelable_from_opac ) %]
142
                                [% IF HOLD.suspend %]
143
                                    <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
144
                                        <input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" />
145
                                        <button class="btn btn-link" type="submit" name="submit"><i class="fa fa-play"></i> Resume</button>
146
                                    </form>
147
                                [% ELSE %]
148
                                    [% IF AutoResumeSuspendedHolds %]
149
                                        <a class="btn btn-link js-show" href="#suspendModal[% HOLD.reserve_id | html %]" role="button" data-toggle="modal"><i class="fa fa-pause"></i> Suspend</a>
150
                                        [% # hold suspend modal form %]
151
                                        <div id="suspendModal[% HOLD.reserve_id | html %]" class="modal-nojs" tabindex="-1" role="dialog" aria-labelledby="suspendModal[% HOLD.reserve_id | html %]Label" aria-hidden="true">
152
                                            <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
153
                                                <div class="modal-header">
154
                                                    <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
155
                                                    [% IF HOLD.suspend %]
156
                                                        <h3 id="suspendModal[% HOLD.reserve_id | html %]Label">Resume your hold on <i>[% HOLD.biblio.title | html %]</i></h3>
157
                                                    [% ELSE %]
158
                                                        <h3 id="suspendModal[% HOLD.reserve_id | html %]Label">Suspend your hold on <i>[% HOLD.biblio.title | html %]</i></h3>
159
                                                    [% END %]
160
                                                </div>
161
                                                <div class="modal-body">
162
                                                    <input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" />
163
                                                    <label for="suspend_until_[% HOLD.reserve_id | html %]">Suspend until:</label>
164
                                                    <input type="text" name="suspend_until" id="suspend_until_[% HOLD.reserve_id | html %]" class="suspend-until" size="10" />
165
                                                    [% INCLUDE 'date-format.inc' %]
166
                                                    <p class="js-show"><a href="#" onclick="document.getElementById('suspend_until_[% HOLD.reserve_id | html %]').value='';return false;">Clear date to suspend indefinitely</a></p>
167
                                                    <button class="btn btn-mini js-hide" type="submit" name="submit">Suspend</button>
168
                                                </div>
169
                                                <div class="modal-footer">
170
                                                    <button class="btn btn-primary" type="submit" name="submit">Suspend</button>
171
                                                    <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
172
                                                </div>
173
                                            </form>
174
                                        </div>  <!-- /#suspendModal[% HOLD.reserve_id | html %] -->
175
                                    [% ELSE %]
176
                                        <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
177
                                            <input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" />
178
                                            <button class="btn btn-link" type="submit" name="submit"><i class="fa fa-pause"></i> Suspend</button>
179
                                        </form>
180
                                    [% END # / IF AutoResumeSuspendedHolds %]
181
                                [% END # / IF HOLD.suspend %]
182
                            [% END # / IF ( HOLD.is_cancelable_from_opac )%]
183
                        </td>
184
                    [% END # / IF SuspendHoldsOpac %]
185
                    [% IF ! onlyinfo %]
186
                        <td class="modify">
187
                            [% IF ( HOLD.is_cancelable_from_opac ) %]
188
                                <form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
189
                                <input type="hidden" name="biblionumber" value="[% HOLD.biblionumber | html %]" />
190
                                <input type="hidden" name="reserve_id" value="[% HOLD.reserve_id | html %]" />
191
                                <button type="submit" name="submit" class="btn btn-xs btn-danger" onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);"><i class="fa fa-remove"></i> Cancel</button></form>
192
                            [% END %]
193
                        </td>
194
                    [% END # / IF onlyinfo %]
195
                </tr>
196
            [% END # /FOREACH HOLDS %]
197
            </tbody>
198
        </table>
199
200
        [% IF SuspendHoldsOpac and ! onlyinfo %]
201
            <div>
202
                <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
203
                    <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_SUSPEND_HOLDS);"><i class="fa fa-pause"></i> Suspend all holds</button>
204
                    <input type="hidden" name="suspend" value="1" />
205
206
                    [% IF AutoResumeSuspendedHolds %]
207
                        <label for="suspend_until"> until </label>
208
                        <input type="text" name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" />
209
                        <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a>
210
                    [% END %]
211
                </form>
212
            </div>
213
            <br/>
214
            <div>
215
                <form action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
216
                    <button type="submit" name="submit" class="btn" onclick="return confirmDelete(MSG_CONFIRM_RESUME_HOLDS);"><i class="fa fa-play"></i> Resume all suspended holds</button>
217
                    <input type="hidden" name="suspend" value="0" />
218
                </form>
219
            </div>
220
        [% END %]
221
    </div> <!-- / #opac-user-holds -->
222
[% END # / #HOLDS.count %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt (-112 / +2 lines)
Lines 66-183 Link Here
66
                        </div>
66
                        </div>
67
                    [% END %]
67
                    [% END %]
68
68
69
                    <h3>Fines and charges</h3>
69
                    [% PROCESS 'account-table.inc' ACCOUNT_LINES = ACCOUNT_LINES, ENABLE_OPAC_PAYMENTS = ENABLE_OPAC_PAYMENTS, plugins = plugins %]
70
70
71
                    [% IF ( ACCOUNT_LINES ) %]
72
                        <form method="post" action="opac-account-pay.pl" class="form-horizontal">
73
                        <table class="table table-bordered table-striped" id="finestable">
74
                            <thead>
75
                                <tr>
76
                                    [% IF ENABLE_OPAC_PAYMENTS %]<th>&nbsp;</th>[% END %]
77
                                    <th class="title-string">Date</th>
78
                                    <th>Description</th>
79
                                    <th>Fine amount</th>
80
                                    <th>Amount outstanding</th>
81
                                </tr>
82
                            </thead>
83
84
                            <tfoot>
85
                            <tr>
86
                                [%- IF ENABLE_OPAC_PAYMENTS -%]
87
                                    [%- SET COLSPAN = 4 -%]
88
                                [%- ELSE -%]
89
                                    [%- SET COLSPAN = 3 -%]
90
                                [%- END -%]
91
                                <th class="sum" colspan="[% COLSPAN | html %]">Total due</th>
92
                                <td class="sum">[% total | $Price %]</td>
93
                            </tr>
94
                            </tfoot>
95
96
                            <tbody>
97
                                [% FOREACH ACCOUNT_LINE IN ACCOUNT_LINES %]
98
                                    [% IF ( ACCOUNT_LINE.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
99
                                        [% IF ENABLE_OPAC_PAYMENTS %]
100
                                            <td>
101
                                                [% IF ACCOUNT_LINE.amountoutstanding > 0 %]
102
                                                    [% SET DISPLAY_PAYMENT_BLOCK = 1 %]
103
                                                    <input class="checkbox-pay pay-online hidden" name="accountline" type="checkbox" id="checkbox-pay-[% ACCOUNT_LINE.accountlines_id | html %]" value="[% ACCOUNT_LINE.accountlines_id | html %]">
104
                                                    <input type="hidden" id="amount-[% ACCOUNT_LINE.accountlines_id | html %]" value="[% ACCOUNT_LINE.amountoutstanding | html %]" />
105
                                                [% END %]
106
                                            </td>
107
                                        [% END %]
108
                                        <td><span title="[% ACCOUNT_LINE.date | html %]">[% ACCOUNT_LINE.date | $KohaDates %]</span></td>
109
                                        <td>
110
                                            [% SWITCH ACCOUNT_LINE.accounttype %]
111
                                            [% CASE 'Pay' %]Payment, thanks
112
                                            [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
113
                                            [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
114
                                            [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
115
                                            [% CASE 'N' %]New card
116
                                            [% CASE 'F' %]Fine
117
                                            [% CASE 'A' %]Account management fee
118
                                            [% CASE 'M' %]Sundry
119
                                            [% CASE 'L' %]Lost item
120
                                            [% CASE 'W' %]Writeoff
121
                                            [% CASE 'FU' %]Accruing fine
122
                                            [% CASE 'HE' %]Hold waiting too long
123
                                            [% CASE 'Rent' %]Rental fee
124
                                            [% CASE 'FOR' %]Forgiven
125
                                            [% CASE 'LR' %]Lost item fee refund
126
                                            [% CASE 'PF' %]Processing fee
127
                                            [% CASE 'PAY' %]Payment
128
                                            [% CASE 'WO' %]Writeoff
129
                                            [% CASE 'C' %]Credit
130
                                            [% CASE 'CR' %]Credit
131
                                            [% CASE %][% ACCOUNT_LINE.accounttype | html %]
132
                                          [%- END -%]
133
                                          [%- IF ACCOUNT_LINE.payment_type %], [% AuthorisedValues.GetByCode('PAYMENT_TYPE', ACCOUNT_LINE.payment_type, 1) | html %][% END %]
134
                                          [%- IF ACCOUNT_LINE.description %], [% ACCOUNT_LINE.description | html %][% END %]
135
                                          [% IF ACCOUNT_LINE.title %]([% ACCOUNT_LINE.title | html %])[% END %]
136
                                        </td>
137
                                        [% IF ( ACCOUNT_LINE.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amount | $Price %]</td>
138
                                        [% IF ( ACCOUNT_LINE.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amountoutstanding | $Price %]</td>
139
                                    </tr>
140
                                [% END %]
141
                            </tbody>
142
143
                        </table>
144
145
                            [% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %]
146
                                <fieldset class="pay-online hidden">
147
                                    <legend>Pay selected fines and charges</legend>
148
                                        <span class="help-block"><h3>Payment method</h3></span>
149
150
                                        [% IF Koha.Preference('EnablePayPalOpacPayments') %]
151
                                            <div class="control-group">
152
                                                <label class="radio">
153
                                                    <input type="radio" name="payment_method" id="payment_method-paypal" value="paypal" checked="checked">
154
                                                    <!-- PayPal Logo --><a href="https://www.paypal.com/webapps/mpp/paypal-popup" title="How PayPal Works" class="paypal"><img src="https://www.paypalobjects.com/webstatic/mktg/logo/AM_SbyPP_mc_vs_dc_ae.jpg" border="0" alt="PayPal Acceptance Mark"></a><!-- PayPal Logo -->
155
                                                </label>
156
                                            </div>
157
                                        [% END %]
158
159
                                        [% FOREACH p IN plugins %]
160
                                            <div class="control-group">
161
                                                <label class="radio">
162
                                                    <input type="radio" name="payment_method" id="payment_method-[% p.class | html %]" value="[% p.class | html %]" checked="checked">
163
                                                    [% p.get_metadata.name | html %]
164
                                                </label>
165
                                            </div>
166
                                        [% END %]
167
168
                                        <div class="control-group">
169
                                            <input type="hidden" id="payment-amount" name="payment_amount" value="0" />
170
                                            <button id="submit-pay" type="submit" class="btn" disabled="disabled">Make payment</button>
171
                                            <span id="amount-to-pay-label">
172
                                                Amount to pay: <span id="amount-to-pay">0.00</span>
173
                                            </span>
174
                                        </div>
175
                                </fieldset>
176
                            [% END %]
177
                        </form>
178
                    [% ELSE %]
179
                        <h4>You have no fines or charges</h4>
180
                    [% END %]
181
                </div> <!-- / #useraccount -->
71
                </div> <!-- / #useraccount -->
182
            </div> <!-- / .span10 -->
72
            </div> <!-- / .span10 -->
183
        </div> <!-- / .row-fluid -->
73
        </div> <!-- / .row-fluid -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-206 / +1 lines)
Lines 597-807 Link Here
597
                            </div> <!-- / #opac-user-overdues -->
597
                            </div> <!-- / #opac-user-overdues -->
598
                        [% END # /overdues_count %]
598
                        [% END # /overdues_count %]
599
599
600
600
                        [% PROCESS 'holds-table.inc' HOLDS => RESERVES, SuspendHoldsOpac = SuspendHoldsOpac, showpriority = showpriority, AutoResumeSuspendedHolds = AutoResumeSuspendedHolds %]
601
                        [% IF ( RESERVES.count ) %]
602
                            <div id="opac-user-holds">
603
                                <table id="holdst" class="table table-bordered table-striped">
604
                                    <caption>Holds <span class="count">([% RESERVES.count | html %] total)</span></caption>
605
                                    <!-- RESERVES TABLE ROWS -->
606
                                    <thead>
607
                                        <tr>
608
                                            <th class="anti-the">Title</th>
609
                                            [% IF ( showpriority ) %]
610
                                                <th class="title-string">Placed on</th>
611
                                            [% ELSE %]
612
                                                <th class="psort title-string">Placed on</th>
613
                                            [% END %]
614
                                            <th class="title-string">Expires on</th>
615
                                            [% UNLESS( singleBranchMode) %]
616
                                                <th>Pick up location</th>
617
                                            [% END %]
618
                                            [% IF ( showpriority ) %]
619
                                                <th class="psort">Priority</th>
620
                                            [% END %]
621
                                            <th>Status</th>
622
                                            [% IF SuspendHoldsOpac %]
623
                                                 <th class="nosort" >Suspend</th>
624
                                            [% END %]
625
                                            <th class="nosort">Modify</th>
626
                                        </tr>
627
                                    </thead>
628
                                    <tbody>
629
                                    [% FOREACH RESERVE IN RESERVES %]
630
                                        [% IF ( RESERVE.is_waiting ) %]
631
                                            [% IF ( RESERVE.is_at_destination ) %]
632
                                                [% IF ( RESERVE.is_found ) %]
633
                                                    <tr class="reserved">
634
                                                [% ELSE %]
635
                                                    <tr>
636
                                                [% END %]
637
                                            [% ELSE %]
638
                                                <tr class="transfered">
639
                                            [% END %]
640
                                        [% ELSE %]
641
                                            <tr>
642
                                        [% END %]
643
                                            <td class="title">
644
                                                <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% RESERVE.biblionumber | html %]">
645
                                                    [% RESERVE.biblio.title | html %]
646
                                                    [% FOREACH s IN RESERVE.biblio.subtitles %]
647
                                                        [% s | html %]
648
                                                    [% END %]
649
                                                    [% RESERVE.item.enumchron | html %]
650
                                                </a>
651
                                                [% RESERVE.biblio.author | html %]
652
                                            </td>
653
                                            <td class="reservedate">
654
                                                <span title="[% RESERVE.reservedate | html %]">
655
                                                    <span class="tdlabel">Hold date:</span>
656
                                                    [% RESERVE.reservedate | $KohaDates %]
657
                                                </span>
658
                                            </td>
659
                                            <td class="expirationdate">
660
                                                [% IF ! RESERVE.found %]
661
                                                    [% IF ( RESERVE.expirationdate ) %]
662
                                                        <span title="[% RESERVE.expirationdate | html %]">
663
                                                            <span class="tdlabel">Expiration:</span>
664
                                                                [% RESERVE.expirationdate | $KohaDates %]
665
                                                        </span>
666
                                                    [% ELSE %]
667
                                                        <span title="0000-00-00">
668
                                                            <span class="tdlabel">Expiration:</span>
669
                                                            Never expires
670
                                                        </span>
671
                                                    [% END %]
672
                                                [% ELSE %]
673
                                                    <span title="0000-00-00">-</span>
674
                                                [% END %]
675
                                            </td>
676
                                            [% UNLESS( singleBranchMode) %]
677
                                                <td class="branch">
678
                                                    <span class="tdlabel">Pick up location:</span>
679
                                                    [% RESERVE.branch.branchname | html %]
680
                                                </td>
681
                                            [% END %]
682
                                            [% IF ( showpriority ) %]
683
                                                 <td data-order="[% RESERVE.priority | html %]" class="priority">
684
                                                    <span class="tdlabel">Priority:</span>
685
                                                    [% RESERVE.priority | html %]
686
                                                </td>
687
                                            [% END %]
688
                                            <td class="status">
689
                                                <span class="tdlabel">Status:</span>
690
                                                [% IF ( RESERVE.is_waiting ) %]
691
                                                    [% IF ( RESERVE.is_at_destination ) %]
692
                                                        [% IF ( RESERVE.found ) %]
693
                                                            Item waiting at <b> [% RESERVE.branch.branchname | html %]</b>
694
                                                            [% IF ( RESERVE.waitingdate ) %]
695
                                                                since [% RESERVE.waitingdate | $KohaDates %]
696
                                                                [% IF RESERVE.expirationdate %]
697
                                                                    until [% RESERVE.expirationdate | $KohaDates %]
698
                                                                [% END %]
699
                                                            [% END %]
700
                                                            <input type="hidden" name="pickup" value="[% RESERVE.branchcode | html %]" />
701
                                                        [% ELSE %]
702
                                                            Item waiting to be pulled from <b> [% Branches.GetName( RESERVE.branchcode ) | html %]</b>
703
                                                        [% END %]
704
                                                    [% ELSE %]
705
                                                        Item in transit to <b> [% Branches.GetName( RESERVE.branchcode ) | html %]</b> <input type="hidden" name="pickup" value="[% RESERVE.branchcode | html %]" />
706
                                                    [% END %]
707
                                                [% ELSE %]
708
                                                    [% IF ( RESERVE.is_in_transit ) %]
709
                                                        [% SET transfer = RESERVE.item.get_transfer %]
710
                                                        Item in transit from <b> [% Branches.GetName( transfer.frombranch ) | html %]</b> since
711
                                                        [% transfer.datesent | $KohaDates %]
712
                                                    [% ELSIF ( RESERVE.suspend ) %]
713
                                                        Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until | html %] [% END %]
714
                                                    [% ELSE %]
715
                                                        [% IF RESERVE.itemtype %]
716
                                                            Pending for next available item of item type '[% ItemTypes.GetDescription( RESERVE.itemtype ) | html %]'
717
                                                        [% ELSE %]
718
                                                            Pending
719
                                                        [% END %]
720
                                                    [% END %]
721
                                                [% END %]
722
                                            </td>
723
                                            [% IF SuspendHoldsOpac %]
724
                                                <td>
725
                                                    [% IF ( RESERVE.is_cancelable_from_opac ) %]
726
                                                        [% IF RESERVE.suspend %]
727
                                                            <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
728
                                                                <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" />
729
                                                                <button class="btn btn-link" type="submit" name="submit"><i class="fa fa-play"></i> Resume</button>
730
                                                            </form>
731
                                                        [% ELSE %]
732
                                                            [% IF AutoResumeSuspendedHolds %]
733
                                                                <a class="btn btn-link js-show" href="#suspendModal[% RESERVE.reserve_id | html %]" role="button" data-toggle="modal"><i class="fa fa-pause"></i> Suspend</a>
734
                                                                [% # hold suspend modal form %]
735
                                                                <div id="suspendModal[% RESERVE.reserve_id | html %]" class="modal-nojs" tabindex="-1" role="dialog" aria-labelledby="suspendModal[% RESERVE.reserve_id | html %]Label" aria-hidden="true">
736
                                                                    <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
737
                                                                        <div class="modal-header">
738
                                                                            <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
739
                                                                            [% IF RESERVE.suspend %]
740
                                                                                <h3 id="suspendModal[% RESERVE.reserve_id | html %]Label">Resume your hold on <i>[% RESERVE.biblio.title | html %]</i></h3>
741
                                                                            [% ELSE %]
742
                                                                                <h3 id="suspendModal[% RESERVE.reserve_id | html %]Label">Suspend your hold on <i>[% RESERVE.biblio.title | html %]</i></h3>
743
                                                                            [% END %]
744
                                                                        </div>
745
                                                                        <div class="modal-body">
746
                                                                            <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" />
747
                                                                            <label for="suspend_until_[% RESERVE.reserve_id | html %]">Suspend until:</label>
748
                                                                            <input type="text" name="suspend_until" id="suspend_until_[% RESERVE.reserve_id | html %]" class="suspend-until" size="10" />
749
                                                                            [% INCLUDE 'date-format.inc' %]
750
                                                                            <p class="js-show"><a href="#" onclick="document.getElementById('suspend_until_[% RESERVE.reserve_id | html %]').value='';return false;">Clear date to suspend indefinitely</a></p>
751
                                                                            <button class="btn btn-mini js-hide" type="submit" name="submit">Suspend</button>
752
                                                                        </div>
753
                                                                        <div class="modal-footer">
754
                                                                            <button class="btn btn-primary" type="submit" name="submit">Suspend</button>
755
                                                                            <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
756
                                                                        </div>
757
                                                                    </form>
758
                                                                </div>  <!-- /#suspendModal[% RESERVE.reserve_id | html %] -->
759
                                                            [% ELSE %]
760
                                                                <form class="form-inline" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
761
                                                                    <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" />
762
                                                                    <button class="btn btn-link" type="submit" name="submit"><i class="fa fa-pause"></i> Suspend</button>
763
                                                                </form>
764
                                                            [% END # / IF AutoResumeSuspendedHolds %]
765
                                                        [% END # / IF RESERVE.suspend %]
766
                                                    [% END # / IF ( RESERVE.is_cancelable_from_opac )%]
767
                                                </td>
768
                                            [% END # / IF SuspendHoldsOpac %]
769
                                            <td class="modify">
770
                                                [% IF ( RESERVE.is_cancelable_from_opac ) %]
771
                                                    <form id="delete_hold_[% RESERVE.reserve_id | html %]" action="/cgi-bin/koha/opac-modrequest.pl" method="post">
772
                                                    <input type="hidden" name="biblionumber" value="[% RESERVE.biblionumber | html %]" />
773
                                                    <input type="hidden" name="reserve_id" value="[% RESERVE.reserve_id | html %]" />
774
                                                    <button data-title="[% RESERVE.biblio.title | html %] [% FOREACH s IN RESERVE.biblio.subtitles %] [% s | html %] [% END %] [% RESERVE.item.enumchron | html %]" data-reserve_id="[% RESERVE.reserve_id | html %]" type="submit" class="btn btn-sm btn-danger btn-delete-hold"><i class="fa fa-remove"></i> Cancel</button></form>
775
                                                [% END %]
776
                                            </td>
777
                                        </tr>
778
                                    [% END # /FOREACH RESERVES %]
779
                                </tbody>
780
                            </table>
781
782
                            [% IF SuspendHoldsOpac %]
783
                                <div>
784
                                    <form class="form-inline" id="suspend_all_holds" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
785
                                        <button type="submit" id="suspend_all_submit" class="btn"><i class="fa fa-pause"></i> Suspend all holds</button>
786
                                        <input type="hidden" name="suspend" value="1" />
787
788
                                        [% IF AutoResumeSuspendedHolds %]
789
                                            <label for="suspend_until"> until </label>
790
                                            <input type="text" name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" />
791
                                            <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a>
792
                                        [% END %]
793
                                    </form>
794
                                </div>
795
                                <br/>
796
                                <div>
797
                                    <form id="resume_all_holds" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
798
                                        <button type="submit" id="resume_all_submit" class="btn"><i class="fa fa-play"></i> Resume all suspended holds</button>
799
                                        <input type="hidden" name="suspend" value="0" />
800
                                    </form>
801
                                </div>
802
                            [% END %]
803
                        </div> <!-- / #opac-user-holds -->
804
                        [% END # / #RESERVES.count %]
805
601
806
                        [% IF Koha.Preference('ArticleRequests') %]
602
                        [% IF Koha.Preference('ArticleRequests') %]
807
                            <div id="opac-user-article-requests">
603
                            <div id="opac-user-article-requests">
808
- 

Return to bug 21772