Lines 1-7
Link Here
|
1 |
<h3>Charges</h3> |
1 |
<h3>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 |
[% PROCESS account_type_description account=a %] |
117 |
[% PROCESS account_type_description account=a %] |
Lines 154-160
Link Here
|
154 |
</tr> |
132 |
</tr> |
155 |
</tfoot> |
133 |
</tfoot> |
156 |
</table> |
134 |
</table> |
|
|
135 |
[% IF ENABLE_OPAC_PAYMENTS && DISPLAY_PAYMENT_BLOCK %] |
136 |
<fieldset class="pay-online hidden"> |
137 |
<legend>Pay selected fines and charges</legend> |
138 |
<span class="help-block"><h3>Payment method</h3></span> |
139 |
|
140 |
[% IF Koha.Preference('EnablePayPalOpacPayments') %] |
141 |
<div class="control-group"> |
142 |
<label class="radio"> |
143 |
<input type="radio" name="payment_method" id="payment_method-paypal" value="paypal" checked="checked"> |
144 |
<!-- 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 --> |
145 |
</label> |
146 |
</div> |
147 |
[% END %] |
148 |
|
149 |
[% FOREACH p IN plugins %] |
150 |
<div class="control-group"> |
151 |
<label class="radio"> |
152 |
<input type="radio" name="payment_method" id="payment_method-[% p.class | html %]" value="[% p.class | html %]" checked="checked"> |
153 |
[% p.get_metadata.name | html %] |
154 |
</label> |
155 |
</div> |
156 |
[% END %] |
157 |
|
158 |
<div class="control-group"> |
159 |
<input type="hidden" id="payment-amount" name="payment_amount" value="0" /> |
160 |
<button id="submit-pay" type="submit" class="btn" disabled="disabled">Make payment</button> |
161 |
<span id="amount-to-pay-label"> |
162 |
Amount to pay: <span id="amount-to-pay">0.00</span> |
163 |
</span> |
164 |
</div> |
165 |
</fieldset> |
166 |
[% END %] |
157 |
[% END %] |
167 |
[% END %] |
|
|
168 |
</form> |
158 |
|
169 |
|
159 |
[%- BLOCK account_type_description -%] |
170 |
[%- BLOCK account_type_description -%] |
160 |
[%- SWITCH account.accounttype -%] |
171 |
[%- SWITCH account.accounttype -%] |
161 |
- |
|
|