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>
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
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)">
21 <table class="table table-striped table-sm col-lg-10 offset-lg-1">
25 <td i81n>Attribute</td>
26 <td i81n>Description</td>
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>
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>