LP1904036 Option to invalidate patron Secondary & Other phone
authorBill Erickson <berickxx@gmail.com>
Thu, 24 Mar 2022 19:48:44 +0000 (15:48 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:42 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.html

index 9cafdf5..3d2c868 100644 (file)
     {args: {template: fieldInput, field: 'ident_value2'}}">
   </ng-container>
 
-
   <div class="row pt-1 pb-1 mt-1">
     <ng-container 
       *ngTemplateOutlet="fieldLabel; context: {args: {field: 'email'}}">
     </div>
   </div>
 
-  <ng-container *ngTemplateOutlet="fieldRow; context: 
-    {args: {template: fieldInput, field: 'evening_phone'}}">
-  </ng-container>
-  <ng-container *ngTemplateOutlet="fieldRow; context: 
-    {args: {template: fieldInput, field: 'other_phone'}}">
-  </ng-container>
+  <div class="row pt-1 pb-1 mt-1">
+    <ng-container 
+      *ngTemplateOutlet="fieldLabel; context: {args: {field: 'evening_phone'}}">
+    </ng-container>
+    <ng-container 
+      *ngTemplateOutlet="fieldInput; context: {args: {field: 'evening_phone'}}">
+    </ng-container>
+    <div class="col-lg-6">
+      <ng-container *ngIf="patron.evening_phone() && !patron.isnew()">
+        <button class="btn btn-outline-dark" 
+          (click)="invalidateField('evening_phone')" i18n>Invalidate</button>
+      </ng-container>
+      <ng-container *ngTemplateOutlet="fieldExample; context: {args: {field: 'evening_phone'}}">
+      </ng-container>
+    </div>
+  </div>
+
+  <div class="row pt-1 pb-1 mt-1">
+    <ng-container 
+      *ngTemplateOutlet="fieldLabel; context: {args: {field: 'other_phone'}}">
+    </ng-container>
+    <ng-container 
+      *ngTemplateOutlet="fieldInput; context: {args: {field: 'other_phone'}}">
+    </ng-container>
+    <div class="col-lg-6">
+      <ng-container *ngIf="patron.other_phone() && !patron.isnew()">
+        <button class="btn btn-outline-dark" 
+          (click)="invalidateField('other_phone')" i18n>Invalidate</button>
+      </ng-container>
+      <ng-container *ngTemplateOutlet="fieldExample; context: {args: {field: 'other_phone'}}">
+      </ng-container>
+    </div>
+  </div>
 
   <div class="row pt-1 pb-1 mt-1" *ngIf="showField('au.home_ou')">
     <ng-container