fb7b0f5fbe93673971412ea52cb0148f8644fae6
[koha-ffzg.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / preview_letter.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Preview notice template &rsaquo; Tools &rsaquo; Koha</title>
3     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4     </head>
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 %]">
11                     [% SWITCH m.code %]
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>
20                     [% END %]
21                 </div>
22             [% END %]
23
24             [% IF rendered_tt_message %]
25                 [% IF messages_are_similar %]
26                     <div class="dialog message">The generated notices are exactly the same!</div>
27                 [% ELSE %]
28                     <div class="dialog alert">The generated notices are different!</div>
29                 [% END %]
30             [% END %]
31
32             [% IF rendered_message %]
33                 <div class="row">
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 %]
39                             [% END %]
40                         </span>
41                     </div>
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 %]
47                             [% END %]
48                         </span>
49                     </div>
50                 </div>
51             [% END %]
52
53
54             [% IF rendered_tt_message %]
55             <hr />
56                 <div class="row">
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 %]
62                             [% END %]
63                         </span>
64                     </div>
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 %]
70                             [% END %]
71                         </span>
72                     </div>
73                 </div>
74             [% END %]
75         </div> <!-- /.main -->
76
77     </body>
78 </html>