PINES Customization: Hide Barred Checkbox on New Patron Reg
authorMcCanna <tmccanna@georgialibraries.org>
Wed, 20 Dec 2017 18:57:44 +0000 (13:57 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 25 Nov 2020 16:43:06 +0000 (11:43 -0500)
Hide the barred checkbox when creating a new patron account because
it is unnecessary. Display it only when editing accounts.

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

index ca70671..82a69c3 100644 (file)
@@ -631,7 +631,8 @@ within the "form" by name for validation.
 </div>
 
 <!-- BARRED -->
-
+<!-- PINES Customization: hide field if new patron registration -->
+<div ng-if="patron_id">
 <div class="row reg-field-row" ng-show="show_field('au.barred')">
   [% draw_field_label('au', 'barred') %]
   <div class="col-md-3 reg-field-input">
@@ -642,6 +643,7 @@ within the "form" by name for validation.
         type='checkbox' ng-model="patron.barred"/>
   </div>
 </div>
+</div>
 
 <!-- MASTER_ACCOUNT -->