From 04818401d739b3aae702bec45237c8df824dfb44 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 16 Sep 2013 17:33:55 +0000 Subject: [PATCH] Bug 10513: (follow-up) allow for multiline checkin alerts/messages This patch turns the form input for the checkin message to a text area and uses the html_line_break Template Toolkit filter to display it. To test: [1] Create or edit an item type. Note that the checkin message field is a text area. [2] Enter a checkin message with at least one line break. [3] In the item types administration page, note that the checkin message is displayed with the line break. [4] Return an item of the item type modified in step 1. Verify that the displayed checkin message includes the line break. Signed-off-by: Galen Charlton --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt index 7d8f7813a6..bbb6923026 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt @@ -230,7 +230,7 @@ Item types administration
  • - +
  • @@ -323,7 +323,7 @@ Item types administration [% loo.rentalcharge %] [% END %] - [% loo.checkinmsg %] + [% loo.checkinmsg | html_line_break %] Edit Delete diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 1ee9efe53d..1e2f87589b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -367,7 +367,7 @@ $(document).ready(function () { [% ELSE %]
    [% END %] -

    [% checkinmsg %]

    +

    [% checkinmsg | html_line_break %]

    [% END%] -- 2.39.2