|
Lines 29-35
Link Here
|
| 29 |
[% IF ( Koha.Preference('SlipCSS') ) %] |
29 |
[% IF ( Koha.Preference('SlipCSS') ) %] |
| 30 |
<link rel="stylesheet" type="text/css" href="[% Koha.Preference('SlipCSS') | $raw %]" /> |
30 |
<link rel="stylesheet" type="text/css" href="[% Koha.Preference('SlipCSS') | $raw %]" /> |
| 31 |
[% END %] |
31 |
[% END %] |
| 32 |
[% IF slip.style %]<style>[% slip.style | $raw %]</style>[% END %] |
|
|
| 33 |
|
32 |
|
| 34 |
[% INCLUDE 'slip-print.inc' #printThenClose %] |
33 |
[% INCLUDE 'slip-print.inc' #printThenClose %] |
| 35 |
</head> |
34 |
</head> |
|
Lines 37-45
Link Here
|
| 37 |
<div id="receipt"> |
36 |
<div id="receipt"> |
| 38 |
|
37 |
|
| 39 |
[% UNLESS slips && slips.size %] |
38 |
[% UNLESS slips && slips.size %] |
| 40 |
[% SET slips = [{content => slip, is_html => !plain}] %] |
39 |
[% SET slips = [{content => slip, is_html => !plain, style => style }] %] |
| 41 |
[% END %] |
40 |
[% END %] |
| 42 |
[% FOR slip IN slips %] |
41 |
[% FOR slip IN slips %] |
|
|
42 |
[% IF slip.style %]<style>[% slip.style | $raw %]</style>[% END %] |
| 43 |
[% UNLESS slip.is_html %] |
43 |
[% UNLESS slip.is_html %] |
| 44 |
<pre> |
44 |
<pre> |
| 45 |
[% IF ( slip.content ) %][% slip.content | html %][% ELSE %]No slip template found[% END %] |
45 |
[% IF ( slip.content ) %][% slip.content | html %][% ELSE %]No slip template found[% END %] |