From: pines Date: Mon, 22 Jan 2007 21:26:28 +0000 (+0000) Subject: expiration date in patron summary X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2c2fe3e25924c23bd704aec4ed440e450a759bd1;p=Evergreen.git expiration date in patron summary git-svn-id: svn://svn.open-ils.org/ILS/trunk@6803 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/summary.js b/Open-ILS/xul/staff_client/server/patron/summary.js index e092127e27..3329499b65 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary.js +++ b/Open-ILS/xul/staff_client/server/patron/summary.js @@ -292,6 +292,20 @@ patron.summary.prototype = { }; } ], + 'patron_date_of_exp' : [ + ['render'], + function(e) { + return function() { + e.setAttribute('value', + 'Expires on ' + ( + obj.patron.expire_date() ? + obj.patron.expire_date().substr(0,10) : + '' + ) + ); + }; + } + ], 'patron_date_of_birth' : [ ['render'], function(e) { diff --git a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul index 1daedf4009..2e0d23e8c8 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul @@ -48,6 +48,9 @@ + + diff --git a/Open-ILS/xul/staff_client/server/skin/patron_display.css b/Open-ILS/xul/staff_client/server/skin/patron_display.css index d01aa84bfc..beac0fa824 100755 --- a/Open-ILS/xul/staff_client/server/skin/patron_display.css +++ b/Open-ILS/xul/staff_client/server/skin/patron_display.css @@ -61,6 +61,7 @@ deck#patron_deck { border-left: solid thin black; } .PATRON_EXPIRED .patronNameLarge { background-color: #666666; color: white;} .PATRON_EXPIRED label.expired_indicator { display: inline; color: black; } +.PATRON_EXPIRED label.expire_date { background-color: #666666; color: white } .PATRON_BARRED .patronNameLarge { background-color: #CC3300; color: white; } .PATRON_BARRED label.barred_indicator { display: inline; color: #CC3300; }