Bug 35241: Fix markup errors in point of sale template
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / preview_letter.tt
1 [% USE raw %]
2 [% PROCESS 'i18n.inc' %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% FILTER collapse %]
5     [% t("Preview notice template") | html %] &rsaquo;
6     [% t("Notices") | html %] &rsaquo;
7     [% t("Tools") | html %] &rsaquo;
8     [% t("Koha") | html %]
9 [% END %]</title>
10     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11     </head>
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 %]">
18                     [% SWITCH m.code %]
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>
27                     [% END %]
28                 </div>
29             [% END %]
30
31             [% IF rendered_tt_message %]
32                 [% IF messages_are_similar %]
33                     <div class="dialog message">The generated notices are exactly the same!</div>
34                 [% ELSE %]
35                     <div class="dialog alert">The generated notices are different!</div>
36                 [% END %]
37             [% END %]
38
39             [% IF rendered_message %]
40                 <div class="row">
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 %]
46                             [% END %]
47                         </span>
48                     </div>
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 %]
54                             [% END %]
55                         </span>
56                     </div>
57                 </div>
58             [% END %]
59
60
61             [% IF rendered_tt_message %]
62             <hr />
63                 <div class="row">
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 %]
69                             [% END %]
70                         </span>
71                     </div>
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 %]
77                             [% END %]
78                         </span>
79                     </div>
80                 </div>
81             [% END %]
82         </div> <!-- /.main -->
83
84     </body>
85 </html>