]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/admin/local/copy-loc-order/copy-loc-order.component.html
LP2061136 - Stamping 1405 DB upgrade script
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / admin / local / copy-loc-order / copy-loc-order.component.html
1 <eg-staff-banner i18n-bannerText bannerText="Shelving Location Order">
2 </eg-staff-banner>
3
4 <eg-string #editString i18n-text text="Changes Saved"></eg-string>
5
6 <div class="row">
7   <div class="col-lg-12 d-flex">
8     <div class="mr-2" i18n>Context Org Unit</div>
9     <div>
10       <eg-org-select (onChange)="orgChanged($event)" [initialOrgId]="contextOrg">
11       </eg-org-select>
12     </div>
13     <div class="ml-3">
14       <button (click)="up()" i18n-title title="Move Selected Location Up"
15         class="mr-2 btn btn-sm btn-outline-dark .mat-icon-shrunk-in-button">
16         <span class="material-icons">arrow_upward</span>
17       </button>
18       <button (click)="down()" i18n-title title="Move Selected Location Down"
19         class="mr-2 btn btn-sm btn-outline-dark .mat-icon-shrunk-in-button">
20         <span class="material-icons">arrow_downward</span>
21       </button>
22       <button (click)="up(true)" i18n-title title="Move Selected Location To Top"
23         class="mr-2 btn btn-sm btn-outline-dark .mat-icon-shrunk-in-button">
24         <span class="material-icons">vertical_align_top</span>
25       </button>
26       <button (click)="down(true)" i18n-title title="Move Selected Location To Bottom"
27         class="mr-2 btn btn-sm btn-outline-dark .mat-icon-shrunk-in-button">
28         <span class="material-icons">vertical_align_bottom</span>
29       </button>
30       <span class="ml-2 font-italic" *ngIf="selected()">
31         Selected: {{selected().location().name()}} 
32           ({{orgSn(selected().location().owning_lib())}})
33       </span>
34     </div>
35     <div class="flex-1"></div>
36     <button class="btn btn-outline-dark" (click)="save()" 
37       [disabled]="!changesPending()" i18n>Save Changes</button>
38   </div>
39 </div>
40
41 <div class="mt-2 mb-2 font-italic" i18n>
42   Select a shelving location below and use the arrows above to change its position.
43 </div>
44
45 <ol class="mt-3">
46   <li *ngFor="let entry of entries" (click)="selectedEntry = entry.id()">
47     <div class="row p-1">
48       <div class="col-lg-12">
49         <input type="radio" name="selected-entry" 
50           [value]="entry.id()" [(ngModel)]="selectedEntry"/>
51         <span class="flex-1 ml-1 p-1" i18n
52           [ngClass]="{'border border-primary rounded': selectedEntry == entry.id()}">
53           {{entry.location().name()}} ({{orgSn(entry.location().owning_lib())}})
54         </span>
55         <span *ngIf="entry.isnew()" class="ml-2 font-italic text-info">(unsaved)</span>
56       </div>
57     </div>
58   </li>
59 </ol>
60