From d0a04e438bafd684c1ee40f183184917568d87bf Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 18 Apr 2023 04:58:29 +0000 Subject: [PATCH] Bug 33478: [WIP] Allow formatting of notices --- .../prog/en/modules/tools/letter.tt | 136 ++++++++++++++++++ tools/letter.pl | 9 +- 2 files changed, 144 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt index 910deebfef5..15987f31656 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -49,6 +49,14 @@ [% END %] +[% BLOCK translate_justification_types %] + [% SWITCH type %] + [% CASE 'L' %]Left + [% CASE 'C' %]Center + [% CASE 'R' %]Right + [% END %] +[% END %] + [% WRAPPER 'header.inc' %] [% INCLUDE 'letters-search.inc' %] @@ -648,6 +656,134 @@ [% END # /FOR mtt %] + +
+ +
+
+
+ +
+
    +
  1. + + +
  2. +
  3. + + +
  4. +
  5. + + +
  6. +
  7. + + +
  8. +
  9. + + +
  10. +
  11. + + +
  12. +
  13. + + +
  14. +
  15. + + +
  16. +
+
+
+
    +
  1. + + +
  2. +
  3. + + +
  4. +
  5. + + +
  6. +
  7. + + +
  8. +
  9. + + +
  10. +
  11. + + +
  12. +
  13. + + +
  14. +
  15. + + +
  16. +
+
+
+
+
+
+ [% END %] diff --git a/tools/letter.pl b/tools/letter.pl index c00cc6de3dc..d73ee03e138 100755 --- a/tools/letter.pl +++ b/tools/letter.pl @@ -49,7 +49,11 @@ use C4::Context; use C4::Output qw( output_html_with_http_headers ); use C4::Letters qw( GetMessageTransportTypes ); use C4::Log qw( logaction ); - +use C4::Creators qw( + get_font_types + get_text_justification_types + get_unit_values +); use Koha::Notice::Templates; use Koha::Patron::Attribute::Types; @@ -299,6 +303,9 @@ sub add_form { SQLfieldnames => $field_selection, branchcode => $branchcode, preview_is_available => $preview_is_available, + text_justification_types => get_text_justification_types(), + font_types => get_font_types(), + units => get_unit_values(), ); return; } -- 2.30.2