Lines 1-7
Link Here
|
1 |
<h3>Fines and charges</h3> |
1 |
<h3>Fines and charges</h3> |
2 |
|
2 |
|
|
|
3 |
<form method="post" action="opac-account-pay.pl" class="form-horizontal"> |
3 |
[% IF ( ACCOUNT_LINES ) %] |
4 |
[% 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"> |
5 |
<table class="table table-bordered table-striped" id="finestable"> |
6 |
<thead> |
6 |
<thead> |
7 |
<tr> |
7 |
<tr> |
Lines 79-117
Link Here
|
79 |
|
79 |
|
80 |
</table> |
80 |
</table> |
81 |
|
81 |
|
82 |
[% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %] |
|
|
83 |
<fieldset class="pay-online hidden"> |
84 |
<legend>Pay selected fines and charges</legend> |
85 |
<span class="help-block"><h3>Payment method</h3></span> |
86 |
|
82 |
|
87 |
[% IF Koha.Preference('EnablePayPalOpacPayments') %] |
|
|
88 |
<div class="control-group"> |
89 |
<label class="radio"> |
90 |
<input type="radio" name="payment_method" id="payment_method-paypal" value="paypal" checked="checked"> |
91 |
<!-- 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 --> |
92 |
</label> |
93 |
</div> |
94 |
[% END %] |
95 |
|
96 |
[% FOREACH p IN plugins %] |
97 |
<div class="control-group"> |
98 |
<label class="radio"> |
99 |
<input type="radio" name="payment_method" id="payment_method-[% p.class | html %]" value="[% p.class | html %]" checked="checked"> |
100 |
[% p.get_metadata.name | html %] |
101 |
</label> |
102 |
</div> |
103 |
[% END %] |
104 |
|
105 |
<div class="control-group"> |
106 |
<input type="hidden" id="payment-amount" name="payment_amount" value="0" /> |
107 |
<button id="submit-pay" type="submit" class="btn" disabled="disabled">Make payment</button> |
108 |
<span id="amount-to-pay-label"> |
109 |
Amount to pay: <span id="amount-to-pay">0.00</span> |
110 |
</span> |
111 |
</div> |
112 |
</fieldset> |
113 |
[% END %] |
114 |
</form> |
115 |
[% ELSE %] |
83 |
[% ELSE %] |
116 |
<h4>You have no fines or charges</h4> |
84 |
<h4>You have no fines or charges</h4> |
117 |
[% END %] |
85 |
[% END %] |
Lines 122-127
Link Here
|
122 |
<table class="table table-bordered table-striped" id="finestable-[% r.id | html %]"> |
90 |
<table class="table table-bordered table-striped" id="finestable-[% r.id | html %]"> |
123 |
<thead> |
91 |
<thead> |
124 |
<tr> |
92 |
<tr> |
|
|
93 |
[% IF ENABLE_OPAC_PAYMENTS %]<th> </th>[% END %] |
125 |
<th class="title-string">Date</th> |
94 |
<th class="title-string">Date</th> |
126 |
<th>Description</th> |
95 |
<th>Description</th> |
127 |
<th>Fine amount</th> |
96 |
<th>Fine amount</th> |
Lines 134-139
Link Here
|
134 |
[% FOREACH a IN r.accountlines %] |
103 |
[% FOREACH a IN r.accountlines %] |
135 |
[% SET account_sum = account_sum + a.amountoutstanding %] |
104 |
[% SET account_sum = account_sum + a.amountoutstanding %] |
136 |
<tr> |
105 |
<tr> |
|
|
106 |
[% IF ENABLE_OPAC_PAYMENTS %] |
107 |
<td> |
108 |
[% IF a.amountoutstanding > 0 %] |
109 |
[% SET DISPLAY_PAYMENT_BLOCK = 1 %] |
110 |
<input class="checkbox-pay pay-online hidden" name="accountline" type="checkbox" id="checkbox-pay-[% a.accountlines_id | html %]" value="[% a.accountlines_id | html %]"> |
111 |
<input type="hidden" id="amount-[% a.accountlines_id | html %]" value="[% a.amountoutstanding | html %]" /> |
112 |
[% END %] |
113 |
</td> |
114 |
[% END %] |
137 |
<td><span title="[% a.date | html %]">[% a.date | $KohaDates %]</span></td> |
115 |
<td><span title="[% a.date | html %]">[% a.date | $KohaDates %]</span></td> |
138 |
<td> |
116 |
<td> |
139 |
[% SWITCH a.accounttype %] |
117 |
[% SWITCH a.accounttype %] |
Lines 176-182
Link Here
|
176 |
</tr> |
154 |
</tr> |
177 |
</tfoot> |
155 |
</tfoot> |
178 |
</table> |
156 |
</table> |
|
|
157 |
[% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %] |
158 |
<fieldset class="pay-online hidden"> |
159 |
<legend>Pay selected fines and charges</legend> |
160 |
<span class="help-block"><h3>Payment method</h3></span> |
161 |
|
162 |
[% IF Koha.Preference('EnablePayPalOpacPayments') %] |
163 |
<div class="control-group"> |
164 |
<label class="radio"> |
165 |
<input type="radio" name="payment_method" id="payment_method-paypal" value="paypal" checked="checked"> |
166 |
<!-- 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 --> |
167 |
</label> |
168 |
</div> |
169 |
[% END %] |
170 |
|
171 |
[% FOREACH p IN plugins %] |
172 |
<div class="control-group"> |
173 |
<label class="radio"> |
174 |
<input type="radio" name="payment_method" id="payment_method-[% p.class | html %]" value="[% p.class | html %]" checked="checked"> |
175 |
[% p.get_metadata.name | html %] |
176 |
</label> |
177 |
</div> |
178 |
[% END %] |
179 |
|
180 |
<div class="control-group"> |
181 |
<input type="hidden" id="payment-amount" name="payment_amount" value="0" /> |
182 |
<button id="submit-pay" type="submit" class="btn" disabled="disabled">Make payment</button> |
183 |
<span id="amount-to-pay-label"> |
184 |
Amount to pay: <span id="amount-to-pay">0.00</span> |
185 |
</span> |
186 |
</div> |
187 |
</fieldset> |
188 |
[% END %] |
179 |
[% END %] |
189 |
[% END %] |
|
|
190 |
</form> |
180 |
|
191 |
|
181 |
[%- BLOCK account_status_description -%] |
192 |
[%- BLOCK account_status_description -%] |
182 |
[%- SWITCH account.status -%] |
193 |
[%- SWITCH account.status -%] |
183 |
- |
|
|