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>
Wed, 15 Sep 2021 18:52:49 +0000 (14:52 -0400)
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 1b65a7d..6c05a7e 100644 (file)
     <div class="row" 
       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 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>