PINES Customization for PLAY Card
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 10 Jun 2021 17:06:41 +0000 (13:06 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 8 Nov 2021 15:00:34 +0000 (10:00 -0500)
Modify the patron summary bar to alert staff that they should not
edit PLAY Card accounts.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/staff/circ/patron/t_summary.tt2

index 8de2ae1..c57ef4a 100644 (file)
     <div class="row" 
       ng-class="{'patron-summary-divider' : alert_penalties().length}">
       <div class="col-md-5">[% l('Profile') %]</div>
-      <div class="col-md-7">{{patron().profile().name()}}</div>
+      <div class="col-md-7">
+            <!-- PINES Customization -->
+            <div ng-if="patron().profile().id() == '61'">
+                <span style='font-weight:bold; color:red;'>
+                {{patron().profile().name()}}</span>
+                <eg-help-popover help-text="[% l('PLAY Card accounts should not be edited by the library. Students may log in to the OPAC to change their passwords, hold preferences, and email address, but other updates should be referred to the school.') %]">
+            </div>
+            <div ng-if="patron().profile().id() != '61'">
+                {{patron().profile().name()}}
+            </div>
+            <!-- End Customization -->
+      </div>
     </div>
     <div class="row" ng-if="show_name()">
       <div class="col-md-5">[% l('ID') %]</div>