This displays an alert on the patron summary bar if a patron account
is set to expire within x number of days as defined by the
'Warn when patron account is about to expire' library setting.
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
{{patron().alert_message()}}
</div>
</div>
+ <div class="row" ng-class="{'patron-summary-alert' : doesPatronExpireSoon()}">
+ <div ng-if="doesPatronExpireSoon()" class="col-md-12">[% l('Patron account will expire soon. Please renew.') %]</div>
+ </div>
<div ng-if="patron().photo_url()" class="row">
<div class="col-md-8 patron_photo_wrap"><img class="img-responsive img-rounded" src="{{patron().photo_url()}}" alt=""></div>
</div>
$scope.summary_stat_cats = function() { return patronSvc.summary_stat_cats }
$scope.hasAlerts = function() { return patronSvc.hasAlerts }
$scope.isPatronExpired = function() { return patronSvc.patronExpired }
+ $scope.doesPatronExpireSoon = function() { return patronSvc.patronExpiresSoon }
$scope.print_address = function(addr) {
egCore.print.print({