i18n for="create-email-notify">Notify by email?</label>
<input type="checkbox" formControlName="emailNotify">
</div>
+ <div class="form-group row">
+ <label class="col-lg-4 text-right font-weight-bold"
+ i18n for="create-note">Note</label>
+ <input type="text" id="create-note"
+ class="form-control col-lg-7" formControlName="note">
+ </div>
</form>
<div class="modal-footer">
<button (click)="addBresv$().subscribe()" [disabled]="!create.valid" class="btn btn-info" i18n>Confirm reservation</button>
'startTime': new FormControl(null, notBeforeMomentValidator(Moment().add('15', 'minutes'))),
'endTime': new FormControl(),
'resourceList': new FormControl(),
+ 'note': new FormControl(),
}, [startTimeIsBeforeEndTimeValidator]
);
if (this.patronId) {
this.targetResourceType.id,
selectedResourceId,
this.attributes.filter(Boolean),
- this.emailNotify
+ this.emailNotify,
+ this.bresvNote
).pipe(tap(
(success) => {
if (success.ilsevent) {
return this.create.get('emailNotify').value;
}
+ get bresvNote() {
+ return this.create.get('note').value;
+ }
+
get patronBarcode() {
return this.create.get('patronBarcode');
}