Bug 18007: Interface updates to notices and notice previews
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / preview_letter.tt
blob199a958a8e96b2ccb326b91e439e9a62f0461fac
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Tools &rsaquo; Preview notice template</title>
3     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4     </head>
5     <body id="preview_letter" class="catalog">
6         <div id="main">
7             [% FOR m IN messages %]
8                 [%# FIXME The message block does not appear at the top of the modal! %]
9                 <div class="dialog [% m.type %]">
10                     [% SWITCH m.code %]
11                     [% CASE 'no_data_for_preview' %]You did not specify data for preview.
12                     [% CASE 'preview_not_available' %]Preview is not available for letters '[% m.letter_code %]'.
13                     [% CASE 'not_checked_in_yet' %]Do not forget that the issue has not been checked in yet.
14                     [% CASE 'not_checked_out_yet' %]Do not forget that the issue has not been checked out yet.
15                     [% CASE 'no_checkout' %]This item is not checked out.
16                     [% CASE 'no_item_or_no_patron' %]The item or the patron does not exist.
17                     [% CASE 'no_hold' %]No hold is placed by this patron on this bibliographic record.
18                     [% CASE %][% m.code %]
19                     [% END %]
20                 </div>
21             [% END %]
23             [% IF rendered_tt_message %]
24                 [% IF messages_are_similar %]
25                     <div class="dialog message">The generated notices are exactly the same!</div>
26                 [% ELSE %]
27                     <div class="dialog alert">The generated notices are different!</div>
28                 [% END %]
29             [% END %]
31             [% IF rendered_message %]
32                 <div class="yui-g">
33                     <div class="yui-u first">
34                         <h3>Original version</h3>
35                         <span style="font-family:monospace">
36                             [% FILTER html_line_break %]
37                                 [% original_content | html %]
38                             [% END %]
39                         </span>
40                     </div>
41                     <div class="yui-u">
42                         <h3>Original message, rendered:</h3>
43                         <span style="font-family:monospace">
44                             [% FILTER html_line_break %]
45                                 [% rendered_message.content | html %]
46                             [% END %]
47                         </span>
48                     </div>
49                 </div>
50             [% END %]
53             [% IF rendered_tt_message %]
54             <hr />
55                 <div class="yui-g">
56                     <div class="yui-u first">
57                         <h3>Converted version</h3>
58                         <span style="font-family:monospace">
59                             [% FILTER html_line_break %]
60                                 [% tt_content | html %]
61                             [% END %]
62                         </span>
63                     </div>
64                     <div class="yui-u">
65                         <h3>Converted message, rendered:</h3>
66                         <span style="font-family:monospace">
67                             [% FILTER html_line_break %]
68                                 [% rendered_tt_message.content | html %]
69                             [% END %]
70                         </span>
71                     </div>
72                 </div>
73             [% END %]
74         </div>
76     </body>
77 </html>