2019-01-18 18:03:45 +01:00
|
|
|
<div class="row" *ngIf="form.get('data')">
|
|
|
|
|
2019-02-04 14:41:54 +01:00
|
|
|
<h5 style="font-weight: bold" class="col-12">{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-WORD-LIST-TITLE'
|
|
|
|
| translate}}</h5>
|
2020-09-10 17:04:14 +02:00
|
|
|
<mat-checkbox class="col-auto" [formControl]="this.form.get('data').get('multiList')">
|
|
|
|
{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-MULTIPLE-WORDLIST' | translate}}
|
|
|
|
</mat-checkbox>
|
2019-01-18 18:03:45 +01:00
|
|
|
|
|
|
|
<mat-form-field class="col-12">
|
2021-02-17 17:39:07 +01:00
|
|
|
<mat-label>{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-WORD-LIST-PLACEHOLDER' | translate}}</mat-label>
|
2019-02-14 12:27:41 +01:00
|
|
|
<input matInput type="string"
|
|
|
|
[formControl]="form.get('data').get('label')">
|
2019-01-18 18:03:45 +01:00
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
<div class="col-12">
|
|
|
|
<div *ngFor="let option of form.get('data').get('options')['controls'] index as i" class="row">
|
2019-02-04 14:41:54 +01:00
|
|
|
<mat-form-field class="col">
|
2021-02-17 17:39:07 +01:00
|
|
|
<mat-label>{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-WORD-LIST-LABEL' | translate}}</mat-label>
|
|
|
|
<input matInput type="text" [formControl]="form.get('data').get('options').get(''+i).get('label')">
|
2019-01-18 18:03:45 +01:00
|
|
|
</mat-form-field>
|
2019-02-04 14:41:54 +01:00
|
|
|
<mat-form-field class="col">
|
2021-02-17 17:39:07 +01:00
|
|
|
<mat-label>{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.FIELDS.FIELD-WORD-LIST-VALUE' | translate}}</mat-label>
|
|
|
|
<input matInput [formControl]="form.get('data').get('options').get(''+i).get('value')">
|
2019-01-18 18:03:45 +01:00
|
|
|
</mat-form-field>
|
2019-02-14 12:27:41 +01:00
|
|
|
<button mat-icon-button class="col-auto" (click)="deleteRow(i)" type="button"
|
|
|
|
[disabled]="this.form.disabled">
|
2019-02-04 14:41:54 +01:00
|
|
|
<mat-icon>delete</mat-icon>
|
|
|
|
</button>
|
2019-01-18 18:03:45 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-auto"><button mat-icon-button (click)="addNewRow()">
|
|
|
|
<mat-icon>add</mat-icon>
|
|
|
|
</button></div>
|
2020-09-10 17:04:14 +02:00
|
|
|
</div>
|