Bug 17981: Move the divs to the top of the modal
[koha_ffzg] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / preview_letter.tt
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 %]
22
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 %]
30
31             [% IF rendered_message %]
32                 <fieldset class="brief">
33                     <legend>Original version</legend>
34                     <pre>[% original_content | html %]</pre>
35                 </fieldset>
36
37                 <fieldset class="brief">
38                     <legend>Rendered message:</legend>
39                     <pre>[% rendered_message.content | html %]</pre>
40                 </fieldset>
41             [% END %]
42
43             [% IF rendered_tt_message %]
44                 <fieldset class="brief">
45                     <legend>Converted version</legend>
46                     <pre>[% tt_content | html %]</pre>
47                 </fieldset>
48
49                 <fieldset class="brief">
50                     <legend>Rendered message:</legend>
51                     <pre>[% rendered_tt_message.content | html %]</pre>
52                 </fieldset>
53             [% END %]
54         </div>
55
56     </body>
57 </html>