webstaff: Show event name in the manage interface (useful for staff alerts)
authorMike Rylander <mrylander@gmail.com>
Thu, 14 Apr 2016 20:27:48 +0000 (16:27 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 31 Aug 2017 17:23:16 +0000 (13:23 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/staff/share/t_copy_alert_manager_dialog.tt2
Open-ILS/web/js/ui/default/staff/services/ui.js

index 9f15cc9..ed28d85 100644 (file)
@@ -10,8 +10,9 @@
   <div class="modal-body">
     <div>
       <div class="row" ng-repeat="alert in alerts" style="border-bottom: 1px solid grey; margin-top: 3px;">
+        <div class="col-md-2">{{alert.evt}}</div>
         <div class="col-md-8" ng-class="{ acknowledged: isAcknowledged(alert) }">{{alert.message}}</div>
-        <div class="col-md-4">
+        <div class="col-md-2">
           <button ng-if="canBeAcknowledged(alert)"
                   class="btn btn-xs btn-default"
                   ng-click="alert.acked = !alert.acked" >[% l('Acknowledge') %]</button>
index bd9960a..92fc2c4 100644 (file)
@@ -671,10 +671,10 @@ function($modal , $interpolate , egCore) {
                         $scope.alerts = copy_alerts;
                         angular.forEach($scope.alerts, function(copy_alert) {
                             var state = copy_alert.alert_type().state();
-                            var evt   = copy_alert.alert_type().event();
+                            copy_alert.evt = copy_alert.alert_type().event();
 
                             copy_alert.message = copy_alert.note() ||
-                                egCore.strings.ON_DEMAND_COPY_ALERT[evt][state];
+                                egCore.strings.ON_DEMAND_COPY_ALERT[copy_alert.evt][state];
 
                             if (copy_alert.temp() == 't') {
                                 angular.forEach(copy_alert.alert_type().next_status(), function (st) {