LP1993305 Comprise SmartPay support, UI bits
[evergreen-equinox.git] / Open-ILS / src / templates / opac / myopac / smartpay_payment_form.tt2
1 <p><big>[% l("Click Submit to temporarily leave this website for the payment processor. After payment, you will be returned to these pages.") %]</big></p>
2 <a href="[% ctx.smartpay_target %]" class="opac-button">[% l('Submit') %]</a>
3 <a href="[% mkurl(ctx.opac_root _ '/myopac/main#selected_fines', {}, 1) %]" class="opac-button">[% l('Cancel') %]</a>
4
5  <table title="[% l('List of Transactions') %]" id="acct_fines_confirm_header"
6     class="table_no_border_space table_no_cell_pad" style="padding-top:1em;">
7 <thead>
8   <tr>
9     <th>[% l('Charge/Fee') %]</th>
10     <th>[% l('Amount') %]</th>
11  </tr>
12 </thead>
13 <tbody>
14   [%
15    FOR f IN ctx.fines.circulation;
16      NEXT IF CGI.param('xact').size &&
17         !CGI.param('xact').grep(f.xact.id).size;
18      attrs = {marc_xml => f.marc_xml};
19      IF f.marc_xml;
20          PROCESS get_marc_attrs args=attrs;
21      ELSIF f.xact.reservation;
22           attrs.title = f.xact.reservation.target_resource_type.name;
23      END %]
24      <tr>
25         <td>[% attrs.title | html %]</td>
26         <td class="text-right">[% money(f.xact.balance_owed) %]</td>
27      </tr>
28       [%
29       END;
30       FOR f IN ctx.fines.grocery;
31           NEXT IF CGI.param('xact_misc').size &&
32               !CGI.param('xact_misc').grep(f.xact.id).size %]
33           <tr>
34              <td>[% f.xact.last_billing_type | html %]</td>
35              <td class="text-right">[% money(f.xact.balance_owed) %]</td>
36         </tr>
37     [% END %]
38  </tbody>
39 </table>