@@ -, +, @@ yellow, if the return was not allowed, the row is highlighted in red. --- .../intranet-tmpl/prog/en/css/staff-global.css | 8 +++++++- koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js | 3 +++ 2 files changed, 10 insertions(+), 1 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -289,6 +289,12 @@ tr.warn:nth-child(odd) td { background-color: #FF9090; } +tr.ok td, +tr.ok:nth-child(odd) td, +tr.ok:nth-child(even) td { + background-color: #FFFFCC; +} + tr.onissue td { background-color: #FFFFCC; } @@ -2740,4 +2746,4 @@ span.onsite_checkout { background-color : rgba(255, 242, 206, 0.5); border-radius: 4px; border : 1px solid #FFF2CE; -} +} --- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js +++ a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js @@ -65,8 +65,11 @@ $(document).ready(function() { content = ""; if ( data.returned ) { content = CIRCULATION_RETURNED; + $(id).parent().parent().addClass('ok'); + $('#date_due_' + data.itemnumber).html(_("Returned")); } else { content = CIRCULATION_NOT_RETURNED; + $(id).parent().parent().addClass('warn'); } $(id).replaceWith( content ); --