-<h3 i18n>Place Hold</h3>
+
+<h3 i18n>Place Hold
+ <ng-container *ngIf="user">
+ ({{user.family_name()}}, {{user.first_given_name()}} {{user.second_given_name()}})
+ </ng-container>
+</h3>
<form class="form form-validated common-form striped-odd"
autocomplete="off" (keydown.enter)="$event.preventDefault()">
</eg-date-select>
</div>
</div>
+ <div class="row mt-2">
+ <div class="col-lg-3">
+ <button class="btn btn-success" (click)="placeHolds()"
+ [disabled]="!user" i18n>Submit</button>
+ </div>
+ </div>
</form>
-<div class="row font-weight-bold mt-2 ml-1 mr-1">
+<div class="row"><div class="col-lg-12"><hr/></div></div>
+
+<div class="row font-weight-bold pt-3 ml-1 mr-1">
<div class="col-lg-10" i18n>Placing hold(s) on record(s)</div>
<div class="col-lg-2" i18n>Holds Status</div>
</div>
this.userBarcodeChanged();
}
} else {
- this.currentUserBarcode = '_'; // just for preventing dupes
+ // To bypass the dupe check.
+ this.currentUserBarcode = '_' + this.requestor.id();
this.getUser(this.requestor.id());
}
}
}
this.resetForm();
- if (!this.userBarcode) { return; }
+
+ if (!this.userBarcode) {
+ this.user = null;
+ return;
+ }
this.user = null;
this.currentUserBarcode = this.userBarcode;
break;
}
});
+
+ if (!this.user.email()) {
+ this.notifyEmail = false;
+ }
+
+ if (!this.phoneValue) {
+ this.notifyPhone = false;
+ }
+ }
+
+ placeHolds() {
}
}