2 [% PROCESS 'i18n.inc' %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% FILTER collapse %]
5 [% t("Preview notice template") | html %] ›
6 [% t("Notices") | html %] ›
7 [% t("Tools") | html %] ›
10 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
12 <body id="preview_letter" class="catalog">
13 <div class="main container-fluid">
14 <h1>Preview notice template</h1>
15 [% FOR m IN messages %]
16 [%# FIXME The message block does not appear at the top of the modal! %]
17 <div class="dialog [% m.type | html %]">
19 [% CASE 'no_data_for_preview' %]<span>You did not specify data for preview.</span>
20 [% CASE 'preview_not_available' %]<span>Preview is not available for letters '[% m.letter_code | html %]'.</span>
21 [% CASE 'not_checked_in_yet' %]<span>Do not forget that the item has not been checked in yet.</span>
22 [% CASE 'not_checked_out_yet' %]<span>Do not forget that the item has not been checked out yet.</span>
23 [% CASE 'no_checkout' %]<span>This item is not checked out.</span>
24 [% CASE 'no_item_or_no_patron' %]<span>The item or the patron does not exist.</span>
25 [% CASE 'no_hold' %]<span>No hold is placed by this patron on this bibliographic record.</span>
26 [% CASE %]<span>[% m.code | html %]</span>
31 [% IF rendered_tt_message %]
32 [% IF messages_are_similar %]
33 <div class="dialog message">The generated notices are exactly the same!</div>
35 <div class="dialog alert">The generated notices are different!</div>
39 [% IF rendered_message %]
41 <div class="col-xs-6">
42 <h3>Original version</h3>
43 <span style="font-family:monospace">
44 [% FILTER html_line_break %]
45 [% original_content | html %]
49 <div class="col-xs-6">
50 <h3>Original message, rendered:</h3>
51 <span style="font-family:monospace">
52 [% FILTER html_line_break %]
53 [% rendered_message.content | html %]
61 [% IF rendered_tt_message %]
64 <div class="col-xs-6">
65 <h3>Converted version</h3>
66 <span style="font-family:monospace">
67 [% FILTER html_line_break %]
68 [% tt_content | html %]
72 <div class="col-xs-6">
73 <h3>Converted message, rendered:</h3>
74 <span style="font-family:monospace">
75 [% FILTER html_line_break %]
76 [% rendered_tt_message.content | html %]
82 </div> <!-- /.main -->