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>
Sat, 19 Nov 2022 19:59:31 +0000 (14:59 -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 3a1dd3a..ab198f6 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>