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>
Sat, 19 Nov 2022 19:52:45 +0000 (14:52 -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 2b72912..19ef7ef 100644 (file)
@@ -673,7 +673,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">
@@ -685,6 +686,7 @@ within the "form" by name for validation.
         type='checkbox' ng-model="patron.barred"/>
   </div>
 </div>
+</div>
 
 <!-- MASTER_ACCOUNT -->