add appointment notes field to staff schedule pickup tab
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 3 Jun 2020 18:33:28 +0000 (14:33 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 3 Jun 2020 18:34:16 +0000 (14:34 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/circ/curbside/t_schedule_pickup.tt2
Open-ILS/web/js/ui/default/staff/circ/curbside/directives/schedule_pickup.js

index 2425a26..65533b8 100644 (file)
         <label for="appointment-id">[% l('Appointment') %]</label>
         <div id="appointment-id">{{appt.id}}</div>
       </div>
-      <div class="col-md-1">
+      <div class="col-md-2">
         <label for="appointment-day">[% l('Date') %]</label>
         <eg-date-input id="appointment-day" hide-time-picker ng-model="appt.slot_date"
                        required min-date="minDate">
         </eg-date-input>
       </div>
-      <div class="col-md-1 input-group">
+      <div class="col-md-1">
         <label for="appointment-time">[% l('Time') %]</label>
         <select class="form-control" id="appointment-time" ng-model="appt.slot_time"
                 name="slot_time"
           <option ng-repeat="t in appt.available_times" value="{{t}}">{{t}}</option>
         </select>
       </div>
-      <div class="col-md-2 input-group">
+      <div class="col-md-2">
+        <label for="appointment-notes">[% l('Notes') %]</label>
+        <input class="form-control" type="text" id="appointment-notes" ng-model="appt.notes" style="display: block;"></input>
+      </div>
+      <div class="col-md-2">
         <label for="appointment-actions">[% l('Actions') %]</label>
         <div id="appointment-actions">
           <button ng-click="updateAppointment(appt)" ng-disabled="!forms['curbside' + appt.id].$valid" class="btn btn-primary">[% l('Save') %]</button>
index c4b9f8b..6b4a738 100644 (file)
@@ -295,7 +295,9 @@ function($scope , $q , egCurbsideCoreSvc , egCore , patronSvc ,
             egCore.auth.token(),
             $scope.user_id,
             (new Date(appt.slot_date)).toISOString().substring(0, 10),
-            appt.slot_time
+            appt.slot_time,
+            egCore.auth.user().ws_ou(),
+            appt.notes
         ).then(function(resp) {
             if (evt = egCore.evt.parse(resp)) {
                 ngToast.danger(egCore.strings.$replace(