View | Details | Raw Unified | Return to bug 33478
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printnotice.tt (-7 / +23 lines)
Lines 16-29 Link Here
16
[% END %]
16
[% END %]
17
</head>
17
</head>
18
18
19
[% PROCESS 'notice_format_translations.inc' %]
20
19
<body id="members_printslip" class="member">
21
<body id="members_printslip" class="member">
20
    <div id="slip">
22
<div id="slip">
21
        [% IF plain %]
23
    [% IF ( slip ) %]
22
            <pre>[% IF ( slip ) %][% slip | html %][% ELSE %]No slip template found[% END %]</pre>
24
        <div class="slip" style="
23
        [% ELSE %]
25
            text-align:[% PROCESS translate_justification_types type=slip.text_justify | trim %];
24
            [% IF ( slip ) %][% slip | $raw %][% ELSE %]No slip template found[% END %]
26
            font-size:[% slip.font_size %]px;
25
        [% END %]
27
            width:[% slip.notice_width %][% PROCESS translate_unit_types type=slip.units | trim %];
26
    </div>
28
            margin-top:[% slip.top_margin %][% PROCESS translate_unit_types type=slip.units | trim %];
29
            margin-left:[% slip.left_margin %][% PROCESS translate_unit_types type=slip.units | trim %];
30
        ">
31
            [% IF slip.is_html %]
32
                [% slip.content | $raw %]
33
            [% ELSE %]
34
            <pre>
35
                [% slip.content | html %]
36
            </pre>
37
            [% END %]
38
        </div>
39
    [% ELSE %]
40
        No slip template found
41
    [% END %]
42
</div>
27
43
28
[% MACRO jsinclude BLOCK %]
44
[% MACRO jsinclude BLOCK %]
29
    [% INCLUDE 'slip-print.inc' #printThenClose %]
45
    [% INCLUDE 'slip-print.inc' #printThenClose %]
(-)a/members/printnotice.pl (-3 / +1 lines)
Lines 65-72 my $letter = C4::Letters::GetPreparedLetter( Link Here
65
65
66
$template->param(
66
$template->param(
67
    title  => $letter->{title},
67
    title  => $letter->{title},
68
    slip   => $letter->{content},
68
    slip   => $letter,
69
    plain  => !$letter->{is_html},
70
);
69
);
71
70
72
output_html_with_http_headers $input, $cookie, $template->output;
71
output_html_with_http_headers $input, $cookie, $template->output;
73
- 

Return to bug 33478