LP1816475: Booking module refresh
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / booking / pull-list.component.html
1 <eg-staff-banner bannerText="Booking Pull List" i18n-bannerText>
2 </eg-staff-banner>
3 <eg-title i18n-prefix i18n-suffix prefix="Booking" suffix="Pull List"></eg-title>
4
5 <form [formGroup]="pullListCriteria" class="row">
6   <div class="col-md-4">
7     <div class="input-group">
8       <div class="input-group-prepend">
9         <label for="ou" class="input-group-text" i18n>Library:</label>
10       </div>
11       <eg-org-select domId="ou" [applyDefault]="true"
12         (onChange)="fillGrid($event.id())"
13         [disableOrgs]="disableOrgs()" [hideOrgs]="disableOrgs()">
14       </eg-org-select>
15     </div>
16   </div>
17   <div class="col-md-4">
18     <div class="input-group">
19       <div class="input-group-prepend">
20         <label for="days-hence" class="input-group-text" i18n>Number of days to fetch:</label>
21       </div>
22       <input type="number" min="1" class="form-control" formControlName="daysHence">
23     </div>
24   </div>
25 </form>
26 <eg-grid [dataSource]="dataSource" [useLocalSort]="true" #pullList
27   [sortable]="true" persistKey="booking.pull_list">
28   <eg-grid-toolbar-action label="Cancel Selected" i18n-label (onClick)="cancelSelected($event)" [disableOnRows]="noSelectedRows"></eg-grid-toolbar-action>
29   <eg-grid-toolbar-action label="View Item Status" i18n-label (onClick)="viewItemStatus($event)" [disableOnRows]="notOneCatalogedItemSelected"></eg-grid-toolbar-action>
30   <eg-grid-toolbar-action label="View Reservations for This Resource" i18n-label (onClick)="viewByResource($event)" [disableOnRows]="notOneResourceSelected"></eg-grid-toolbar-action>
31   <eg-grid-toolbar-action label="Print Pull List" i18n-label (onClick)="pullList.print()"></eg-grid-toolbar-action>
32
33   <eg-grid-column name="id" [hidden]="true" [index]="true" i18n-label label="ID" path="current_resource.id"></eg-grid-column>
34   <eg-grid-column label="Shelving location" path="shelving_location" i18n-label></eg-grid-column>
35   <eg-grid-column label="Call number" path="call_number" i18n-label></eg-grid-column>
36   <eg-grid-column label="Call number sortkey" path="call_number_sortkey" i18n-label></eg-grid-column>
37   <eg-grid-column name="barcode" label="Barcode" i18n-label path="current_resource.barcode"></eg-grid-column>
38   <eg-grid-column name="title" label="Title or name" i18n-label path="target_resource_type.name"></eg-grid-column>
39   <eg-grid-column label="Reservation start time" [datePlusTime]="true" path="reservations.0.start_time" i18n-label></eg-grid-column>
40   <eg-grid-column label="Reservation end time" [datePlusTime]="true" path="reservations.0.end_time" i18n-label></eg-grid-column>
41   <eg-grid-column label="Patron first name" path="reservations.0.usr.first_given_name" i18n-label></eg-grid-column>
42   <eg-grid-column label="Patron last name" path="reservations.0.usr.family_name" i18n-label></eg-grid-column>
43 </eg-grid>
44
45 <eg-cancel-reservation-dialog #confirmCancelReservationDialog
46   (onSuccessfulCancel)="fillGrid()">
47 </eg-cancel-reservation-dialog>