]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/share/holdings/replace-barcode-dialog.component.html
LP1836962: correcting comments in the Angular client
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / share / holdings / replace-barcode-dialog.component.html
1
2
3 <eg-string #successMsg
4     text="Successfully Replaced Barcode" i18n-text></eg-string>
5 <eg-string #errorMsg 
6     text="Failed To Replace Barcode" i18n-text></eg-string>
7
8 <ng-template #dialogContent>
9     <div class="modal-header bg-info">
10       <h4 class="modal-title">
11         <span i18n>Replace Item Barcode</span>
12       </h4>
13       <button type="button" class="close" 
14         i18n-aria-label aria-label="Close" (click)="close()">
15         <span aria-hidden="true">&times;</span>
16       </button>
17     </div>
18     <div class="modal-body">
19       <div class="row">
20         <div class="col-lg-4" i18n>Replacing barcode</div>
21         <div class="col-lg-8 font-weight-bold">{{copy.barcode()}}</div>
22       </div>
23       <div class="row pt-2 form-validated">
24         <div class="col-lg-4" i18n>
25           <label for="new-barcode-intput">New Barcode:</label>
26         </div>
27         <div class="col-log-8">
28           <input type="text" class="form-control" [required]="true"
29             [(ngModel)]="newBarcode" (keyup)="barcodeExists=false" 
30             id="new-barcode-input"/>
31         </div>
32       </div>
33       <div class="row d-flex pt-2 justify-content-center" *ngIf="barcodeExists">
34         <div class="alert alert-danger" i18n>
35           Barcode <span class="font-weight-bold">{{newBarcode}}</span> is already in use.
36         </div>
37       </div>
38     </div>
39     <div class="modal-footer">
40       <ng-container>
41         <button type="button" class="btn btn-warning" 
42           (click)="close()" i18n>Cancel</button>
43         <button type="button" class="btn btn-success" 
44           (click)="replaceOneBarcode()" [disabled]="!newBarcode" i18n>
45           Replace Barcode
46         </button>
47       </ng-container>
48     </div>
49   </ng-template>
50