4 text="Successfully Replaced Barcode" i18n-text></eg-string>
6 text="Failed To Replace Barcode" i18n-text></eg-string>
8 <ng-template #dialogContent>
9 <div class="modal-header bg-info">
10 <h4 class="modal-title">
11 <span i18n>Replace Item Barcode</span>
13 <button type="button" class="close"
14 i18n-aria-label aria-label="Close" (click)="dismiss('cross_click')">
15 <span aria-hidden="true">×</span>
18 <div class="modal-body">
20 <div class="col-lg-4" i18n>Replacing barcode</div>
21 <div class="col-lg-8 font-weight-bold">{{copy.barcode()}}</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>
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"/>
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.
39 <div class="modal-footer">
41 <button type="button" class="btn btn-warning"
42 (click)="dismiss('canceled')" i18n>Cancel</button>
43 <button type="button" class="btn btn-success"
44 (click)="replaceOneBarcode()" [disabled]="!newBarcode" i18n>