In the patrons items out list, if an item is overdue, style the due date as
"error" (i.e. bold red).
Signed-off-by: Bill Erickson <berick@esilibrary.com>
<td width="8%" name="renewals" align="center">
[% circ.circ.renewal_remaining %]
</td>
- <td width="13%" style="padding-left:5px;"
- name="due_date">
- [% date.format(ctx.parse_datetime(circ.circ.due_date),DATE_FORMAT) %]
+ [%
+ due_date = ctx.parse_datetime(circ.circ.due_date);
+ due_class = (date.now > date.format(due_date, '%s')) ? 'error' : '';
+ %]
+ <td width="13%" style="padding-left:5px;" name="due_date" class='[% due_class %]'>
+ [% date.format(due_date, DATE_FORMAT) %]
</td>
<td width="16%" name="barcode">
[% circ.circ.target_copy.barcode | html %]