LP#1659588 Patron summary displays alert message user/berick/lp1659588-webstaff-patron-alert
authorBill Erickson <berickxx@gmail.com>
Fri, 3 Feb 2017 16:03:22 +0000 (11:03 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 3 Feb 2017 16:03:25 +0000 (11:03 -0500)
Display the contents of the patron alert message in the web staff patron
summary side-bar.  Alert displays below blocking penalties, above the
name, etc. with the same style as a blocking penalty.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/circ/patron/t_summary.tt2

index c67e1de..690a2f6 100644 (file)
         {{penalty.set_date() | date:'shortDate'}}
       </div>
     </div>
+    <div class="row patron-summary-divider">
+      <div
+        class="col-md-9 patron-summary-alert"
+        title="[% l('Patron Alert Message') %]"
+        ng-if="patron().alert_message()">
+        {{patron().alert_message()}}
+      </div>
+    </div>
     <div class="row" 
-      ng-class="{'patron-summary-divider' : alert_penalties().length}">
+      ng-class="{'patron-summary-divider' : alert_penalties().length || patron().alert_message()}">
       <div class="col-md-5">[% l('Profile') %]</div>
       <div class="col-md-7">{{patron().profile().name()}}</div>
     </div>