]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates-bootstrap/opac/myopac/last_chance_form.tt2
LP1895679: Add Stripe v3 support to Bootstrap OPAC
[Evergreen.git] / Open-ILS / src / templates-bootstrap / opac / myopac / last_chance_form.tt2
1     <h3>[% l("Confirm Payment") %]</h3>
2
3     <form action="[% ctx.opac_root %]/myopac/main_pay_init" method="post">
4         [% FOR k IN CGI.Vars;
5             NEXT UNLESS k;
6             FOR val IN CGI.param(k) %]
7         <input type="hidden" name="[% k | html %]" value="[% val | html %]" />
8         [% END; END %]
9
10         <button type="submit" class="btn btn-confirm"><i class="fas fa-check"></i> [% l('Confirm') %]</button>
11         <a href="[% mkurl(ctx.opac_root _ '/myopac/main#selected_fines', {}, 1) %]" class="btn btn-deny"><i class="fas fa-ban"></i> [% l('Cancel') %]</a>
12     <p class="my-2"><big>[% l("Are you sure you are ready to charge ") %]
13          <strong> [% l("[_1] ", money(ctx.fines.balance_owed))%]</strong>
14         [% l("to your credit card?") %]</big></p>
15      <table title="[% l('List of Transactions') %]" id="acct_fines_confirm_header"
16         class="table my-2">
17    <thead>
18       <tr>
19         <th>[% l('Charge/Fee') %]</th>
20         <th class="text-right"><span>[% l('Amount') %]</th>
21      </tr>
22    </thead>
23    <tbody>
24       [%
25        FOR f IN ctx.fines.circulation;
26          NEXT IF CGI.param('xact').size &&
27             !CGI.param('xact').grep(f.xact.id).size;
28          attrs = {marc_xml => f.marc_xml};
29          IF f.marc_xml;
30              PROCESS get_marc_attrs args=attrs;
31          ELSIF f.xact.reservation;
32               attrs.title = f.xact.reservation.target_resource_type.name;
33          END %]
34          <tr>
35             <td>[% attrs.title | html %]</td>
36             <td class="text-right">[% money(f.xact.balance_owed) %]</td>
37          </tr>
38           [%
39           END;
40           FOR f IN ctx.fines.grocery;
41               NEXT IF CGI.param('xact_misc').size &&
42                   !CGI.param('xact_misc').grep(f.xact.id).size %]
43               <tr>
44                  <td>[% f.xact.last_billing_type | html %]</td>
45                  <td class="text-right">[% money(f.xact.balance_owed) %]</td>
46             </tr>
47         [% END %]
48      </tbody>
49    </table>