fe6849502bf6d30b70b20f04fb2b8ff3935d1f9a
[Evergreen.git] / Open-ILS / src / templates / opac / myopac / receipt_print.tt2
1 [%# sic! no wrapper %]
2 <html>
3     <head>
4         <title>[% l('Receipt') %]</title>
5     </head>
6     <body onload="if (document.getElementById('printable-receipt')) window.print();">
7         [% IF ctx.printable_receipt.template_output %]
8         <tt id="printable-receipt">
9             [% ctx.printable_receipt.template_output.data %]
10         </tt>
11         [% ELSE %]
12         <div class="payment-error">
13             [% l(
14                 'Error preparing receipt: [_1]',
15                     (ctx.printable_receipt.textcode ? ctx.printable_receipt.textcode _ ' / ' _ ctx.printable_receipt.desc : 0) ||
16                     ctx.printable_receipt.error_output.data ||
17                     l('No receipt data returned from server')
18                 ) | html %]
19         </div>
20         [% END %]
21         <hr />
22         <p>[ <a href="[% ctx.opac_root %]/myopac/main_payments">[%
23             l("Back to Payments History") %]</a> ]</p>
24     </body>
25 </html>