LP2000482 Angular 15 and Bootstrap 5 upgrade
[evergreen-equinox.git] / Open-ILS / src / eg2 / src / app / staff / admin / acq / edi_attr_set / edi-attr-set-edit-dialog.component.html
1 <ng-template #dialogContent>
2   <div class="modal-header bg-info">
3     <h3 *ngIf="mode === 'create'" class="modal-title" i18n>New EDI Attribute Set</h3>
4     <h3 *ngIf="mode === 'update'" class="modal-title" i18n>Modify EDI Attribute Set</h3>
5     <h3 *ngIf="mode === 'clone'" class="modal-title" i18n>Clone EDI Attribute Set (from {{clonedLabel}})</h3>
6     <button type="button" class="btn-close btn-close-white"
7       i18n-aria-label aria-label="Close" (click)="close()"></button>
8   </div>
9   <div class="modal-body">
10     <form #myForm="ngForm" role="form" class="form-validated">
11       <div class="form-group row mt-2" *ngIf="attrSet">
12         <label for="attr-set-label" class="form-label col-sm-3 col-form-label" i18n>Attribute Set Label
13         </label>
14         <div class="col-sm-3">
15           <input class="form-control" type="text" id="attr-set-label"
16             required="required" pattern="[\s\S]*\S[\s\S]*"
17             [ngModel]="attrSet.label()" name="label"
18             (ngModelChange)="attrSet.label($event)">
19         </div>
20       </div>
21       <table class="table table-striped table-sm col-lg-10 offset-lg-1">
22         <thead>
23           <tr>
24             <td>&nbsp;</td>
25             <td i81n>Attribute</td>
26             <td i81n>Description</td>
27           </tr>
28         </thead>
29         <tr *ngFor="let inp of attrInputs">
30           <td><input type="checkbox" [(ngModel)]="inp.selected"
31                id="attr-map-{{inp.key}}" name="attr-map-{{inp.key}}"></td>
32           <td><label class="form-label" for="attr-map-{{inp.key}}">{{inp.key}}</label></td>
33           <td>{{inp.label}}</td>
34         </tr>
35       </table>
36     </form>
37   </div>
38   <div class="modal-footer">
39     <button type="button" class="btn btn-info" [disabled]="!myForm?.valid || !(myForm?.dirty)"
40       (click)="save()" i18n>Save</button>
41     <button type="button" class="btn btn-warning"
42       (click)="close()" i18n>Cancel</button>
43   </div>
44 </ng-template>