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