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 <gmc@esilibrary.com>
</li>
<li>
<label for="checkinmsg">Check in message: </label>
- <input type="text" id="checkinmsg" name="checkinmsg" size="48" value="[% checkinmsg %]" />
+ <textarea id="checkinmsg" name="checkinmsg" cols="55" rows="5">[% checkinmsg %]</textarea>
</li>
<li>
<label for="checkinmsgtype">Check in message type: </label>
[% loo.rentalcharge %]
[% END %]
</td>
- <td>[% loo.checkinmsg %]</td>
+ <td>[% loo.checkinmsg | html_line_break %]</td>
<td>
<a href="[% loo.script_name %]?op=add_form&itemtype=[% loo.itemtype |html %]">Edit</a>
<a href="[% loo.script_name %]?op=delete_confirm&itemtype=[% loo.itemtype |html %]">Delete</a>
[% ELSE %]
<div class="dialog message">
[% END %]
- <p class="problem">[% checkinmsg %]</p>
+ <p class="problem">[% checkinmsg | html_line_break %]</p>
</div>
[% END%]