Bug 21795: Switch two-column templates to Bootstrap grid: Notices and slips
[koha_ffzg] / koha-tmpl / intranet-tmpl / prog / en / modules / tools / preview_letter.tt
index 199a958..73c32ee 100644 (file)
@@ -3,19 +3,19 @@
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     </head>
     <body id="preview_letter" class="catalog">
-        <div id="main">
+        <div class="main container-fluid">
             [% FOR m IN messages %]
                 [%# FIXME The message block does not appear at the top of the modal! %]
-                <div class="dialog [% m.type %]">
+                <div class="dialog [% m.type | html %]">
                     [% SWITCH m.code %]
                     [% CASE 'no_data_for_preview' %]You did not specify data for preview.
-                    [% CASE 'preview_not_available' %]Preview is not available for letters '[% m.letter_code %]'.
+                    [% CASE 'preview_not_available' %]Preview is not available for letters '[% m.letter_code | html %]'.
                     [% CASE 'not_checked_in_yet' %]Do not forget that the issue has not been checked in yet.
                     [% CASE 'not_checked_out_yet' %]Do not forget that the issue has not been checked out yet.
                     [% CASE 'no_checkout' %]This item is not checked out.
                     [% CASE 'no_item_or_no_patron' %]The item or the patron does not exist.
                     [% CASE 'no_hold' %]No hold is placed by this patron on this bibliographic record.
-                    [% CASE %][% m.code %]
+                    [% CASE %][% m.code | html %]
                     [% END %]
                 </div>
             [% END %]
@@ -29,8 +29,8 @@
             [% END %]
 
             [% IF rendered_message %]
-                <div class="yui-g">
-                    <div class="yui-u first">
+                <div class="row">
+                    <div class="col-xs-6">
                         <h3>Original version</h3>
                         <span style="font-family:monospace">
                             [% FILTER html_line_break %]
@@ -38,7 +38,7 @@
                             [% END %]
                         </span>
                     </div>
-                    <div class="yui-u">
+                    <div class="col-xs-6">
                         <h3>Original message, rendered:</h3>
                         <span style="font-family:monospace">
                             [% FILTER html_line_break %]
@@ -52,8 +52,8 @@
 
             [% IF rendered_tt_message %]
             <hr />
-                <div class="yui-g">
-                    <div class="yui-u first">
+                <div class="row">
+                    <div class="col-xs-6">
                         <h3>Converted version</h3>
                         <span style="font-family:monospace">
                             [% FILTER html_line_break %]
@@ -61,7 +61,7 @@
                             [% END %]
                         </span>
                     </div>
-                    <div class="yui-u">
+                    <div class="col-xs-6">
                         <h3>Converted message, rendered:</h3>
                         <span style="font-family:monospace">
                             [% FILTER html_line_break %]
@@ -71,7 +71,7 @@
                     </div>
                 </div>
             [% END %]
-        </div>
+        </div> <!-- /.main -->
 
     </body>
 </html>