1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Preview notice template › Tools › Koha</title>
3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <body id="preview_letter" class="catalog">
6 <div class="main container-fluid">
7 <h1>Preview notice template</h1>
8 [% FOR m IN messages %]
9 [%# FIXME The message block does not appear at the top of the modal! %]
10 <div class="dialog [% m.type | html %]">
12 [% CASE 'no_data_for_preview' %]<span>You did not specify data for preview.</span>
13 [% CASE 'preview_not_available' %]<span>Preview is not available for letters '[% m.letter_code | html %]'.</span>
14 [% CASE 'not_checked_in_yet' %]<span>Do not forget that the item has not been checked in yet.</span>
15 [% CASE 'not_checked_out_yet' %]<span>Do not forget that the item has not been checked out yet.</span>
16 [% CASE 'no_checkout' %]<span>This item is not checked out.</span>
17 [% CASE 'no_item_or_no_patron' %]<span>The item or the patron does not exist.</span>
18 [% CASE 'no_hold' %]<span>No hold is placed by this patron on this bibliographic record.</span>
19 [% CASE %]<span>[% m.code | html %]</span>
24 [% IF rendered_tt_message %]
25 [% IF messages_are_similar %]
26 <div class="dialog message">The generated notices are exactly the same!</div>
28 <div class="dialog alert">The generated notices are different!</div>
32 [% IF rendered_message %]
34 <div class="col-xs-6">
35 <h3>Original version</h3>
36 <span style="font-family:monospace">
37 [% FILTER html_line_break %]
38 [% original_content | html %]
42 <div class="col-xs-6">
43 <h3>Original message, rendered:</h3>
44 <span style="font-family:monospace">
45 [% FILTER html_line_break %]
46 [% rendered_message.content | html %]
54 [% IF rendered_tt_message %]
57 <div class="col-xs-6">
58 <h3>Converted version</h3>
59 <span style="font-family:monospace">
60 [% FILTER html_line_break %]
61 [% tt_content | html %]
65 <div class="col-xs-6">
66 <h3>Converted message, rendered:</h3>
67 <span style="font-family:monospace">
68 [% FILTER html_line_break %]
69 [% rendered_tt_message.content | html %]
75 </div> <!-- /.main -->