[open-ils-commits] [GIT] Evergreen ILS branch master updated. d96059d980bb41440493678481a9e3721c3e4f6e

Evergreen Git git at git.evergreen-ils.org
Fri Feb 21 10:44:54 EST 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  d96059d980bb41440493678481a9e3721c3e4f6e (commit)
      from  bab3860d53fd118f82e0d1c44d6f847342afb723 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d96059d980bb41440493678481a9e3721c3e4f6e
Author: Jane Sandberg <sandbej at linnbenton.edu>
Date:   Tue Jan 14 16:32:58 2020 -0800

    LP1859728: Allow users to add notes when creating a booking reservation
    
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Lynn Floyd <lfloyd1 at library.in.gov>
    Signed-off-by: Chris Sharp <csharp at georgialibraries.org>

diff --git a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.html b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.html
index f2fa02107d..af68e76876 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.html
@@ -73,6 +73,12 @@
         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>
diff --git a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.ts
index 0ef212b1a6..bf61b190c7 100644
--- a/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/booking/create-reservation-dialog.component.ts
@@ -83,6 +83,7 @@ export class CreateReservationDialogComponent
             'startTime': new FormControl(null, notBeforeMomentValidator(Moment().add('15', 'minutes'))),
             'endTime': new FormControl(),
             'resourceList': new FormControl(),
+            'note': new FormControl(),
         }, [startTimeIsBeforeEndTimeValidator]
         );
         if (this.patronId) {
@@ -111,7 +112,8 @@ export class CreateReservationDialogComponent
                 this.targetResourceType.id,
                 selectedResourceId,
                 this.attributes.filter(Boolean),
-                this.emailNotify
+                this.emailNotify,
+                this.bresvNote
             ).pipe(tap(
                 (success) => {
                     if (success.ilsevent) {
@@ -197,6 +199,10 @@ export class CreateReservationDialogComponent
         return this.create.get('emailNotify').value;
     }
 
+    get bresvNote() {
+        return this.create.get('note').value;
+    }
+
     get patronBarcode() {
         return this.create.get('patronBarcode');
     }

-----------------------------------------------------------------------

Summary of changes:
 .../app/staff/booking/create-reservation-dialog.component.html    | 6 ++++++
 .../src/app/staff/booking/create-reservation-dialog.component.ts  | 8 +++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list