Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools/preview_letter.tt
Wainui Witika-Park b6f036a7ac Bug 26703: tools folder
Swapped the order of the page titles to have the unique information
first, i.e. the name of the specific page displays first, and the name of the website (e.g. Koha) displays at the end.

To test:
1) Apply patch
2) Ensure each of the files in the tools folder are swapped around
to display the most unique information first, and the website name is at the end
3) Ensure the pages displayed on the Staff Client that correspond to
these files also display the changes

Sponsored-by: Catalyst IT
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Henry Bolshaw <bolshawh@parliament.uk>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-04-21 11:16:35 +02:00

77 lines
3.4 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Preview notice template &rsaquo; Tools &rsaquo; Koha</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body id="preview_letter" class="catalog">
<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 | 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 | 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 | html %]
[% END %]
</div>
[% END %]
[% IF rendered_tt_message %]
[% IF messages_are_similar %]
<div class="dialog message">The generated notices are exactly the same!</div>
[% ELSE %]
<div class="dialog alert">The generated notices are different!</div>
[% END %]
[% END %]
[% IF rendered_message %]
<div class="row">
<div class="col-xs-6">
<h3>Original version</h3>
<span style="font-family:monospace">
[% FILTER html_line_break %]
[% original_content | html %]
[% END %]
</span>
</div>
<div class="col-xs-6">
<h3>Original message, rendered:</h3>
<span style="font-family:monospace">
[% FILTER html_line_break %]
[% rendered_message.content | html %]
[% END %]
</span>
</div>
</div>
[% END %]
[% IF rendered_tt_message %]
<hr />
<div class="row">
<div class="col-xs-6">
<h3>Converted version</h3>
<span style="font-family:monospace">
[% FILTER html_line_break %]
[% tt_content | html %]
[% END %]
</span>
</div>
<div class="col-xs-6">
<h3>Converted message, rendered:</h3>
<span style="font-family:monospace">
[% FILTER html_line_break %]
[% rendered_tt_message.content | html %]
[% END %]
</span>
</div>
</div>
[% END %]
</div> <!-- /.main -->
</body>
</html>