2019-01-29 17:34:19 +01:00
|
|
|
<div class="row">
|
|
|
|
<!-- BooleanDecision -->
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="viewStyle === viewStyleEnum.BooleanDecision">
|
|
|
|
<mat-select [formControl]="form" [placeholder]="placeHolder" [required]="required">
|
2019-02-08 11:31:22 +01:00
|
|
|
<mat-option [value]="null">{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.DEFAULT-VALUES.NONE' |
|
2019-01-29 17:34:19 +01:00
|
|
|
translate}}</mat-option>
|
2019-02-12 13:19:03 +01:00
|
|
|
<mat-option [value]="'true'">{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.DEFAULT-VALUES.BOOLEAN-DECISION.YES'
|
|
|
|
|
|
2019-02-08 11:31:22 +01:00
|
|
|
translate}}</mat-option>
|
2019-02-12 13:19:03 +01:00
|
|
|
<mat-option [value]="'false'">{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.DEFAULT-VALUES.BOOLEAN-DECISION.NO'
|
|
|
|
|
|
2019-01-29 17:34:19 +01:00
|
|
|
translate}}</mat-option>
|
|
|
|
</mat-select>
|
|
|
|
<mat-error *ngIf="form.hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
<!-- CheckBox -->
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="viewStyle === viewStyleEnum.CheckBox">
|
|
|
|
<mat-select [formControl]="form" [placeholder]="placeHolder" [required]="required">
|
2019-02-12 13:19:03 +01:00
|
|
|
<mat-option [value]="'true'">{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.DEFAULT-VALUES.CHECK-BOX.CHECKED' |
|
2019-01-29 17:34:19 +01:00
|
|
|
translate}}</mat-option>
|
2019-02-12 13:19:03 +01:00
|
|
|
<mat-option [value]="'false'">{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.DEFAULT-VALUES.CHECK-BOX.UNCHECKED'
|
|
|
|
|
|
2019-01-29 17:34:19 +01:00
|
|
|
translate}}</mat-option>
|
|
|
|
</mat-select>
|
|
|
|
<mat-error *ngIf="form.hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
<!-- ComboBox -->
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="viewStyle === viewStyleEnum.ComboBox && comboBoxType === comboBoxTypeEnum.Autocomplete">
|
2019-02-12 13:19:03 +01:00
|
|
|
<input matInput type="text" [placeholder]="placeHolder" [formControl]="form" [required]="required">
|
2019-01-29 17:34:19 +01:00
|
|
|
</mat-form-field>
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="viewStyle === viewStyleEnum.ComboBox && comboBoxType === comboBoxTypeEnum.WordList">
|
|
|
|
<mat-select [formControl]="form" [placeholder]="placeHolder" [required]="required">
|
2019-02-08 11:31:22 +01:00
|
|
|
<mat-option [value]="null">{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.DEFAULT-VALUES.NONE' | translate }}</mat-option>
|
2019-01-29 17:34:19 +01:00
|
|
|
<mat-option *ngFor="let opt of formArrayOptions['controls']" [value]="opt.get('value').value">{{opt.get('label').value}}</mat-option>
|
|
|
|
</mat-select>
|
|
|
|
<mat-error *ngIf="form.hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
|
|
</mat-form-field>
|
|
|
|
|
2019-07-16 15:41:12 +02:00
|
|
|
<!-- InternalDmpEntities -->
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="viewStyle === viewStyleEnum.InternalDmpEntities && internalDmpEntitiesType === internalDmpEntitiesTypeEnum.Researchers">
|
|
|
|
<input matInput type="text" [placeholder]="placeHolder" [formControl]="form" [required]="required">
|
2019-07-30 12:35:06 +02:00
|
|
|
</mat-form-field>
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="viewStyle === viewStyleEnum.InternalDmpEntities && internalDmpEntitiesType === internalDmpEntitiesTypeEnum.Datasets">
|
|
|
|
<input matInput type="text" [placeholder]="placeHolder" [formControl]="form" [required]="required">
|
2019-07-30 13:31:41 +02:00
|
|
|
</mat-form-field>
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="viewStyle === viewStyleEnum.InternalDmpEntities && internalDmpEntitiesType === internalDmpEntitiesTypeEnum.Dmps">
|
|
|
|
<input matInput type="text" [placeholder]="placeHolder" [formControl]="form" [required]="required">
|
2019-07-16 15:41:12 +02:00
|
|
|
</mat-form-field>
|
2019-01-29 17:34:19 +01:00
|
|
|
|
|
|
|
<!-- FreeText -->
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="viewStyle === viewStyleEnum.FreeText">
|
2019-02-12 13:19:03 +01:00
|
|
|
<input matInput type="text" [placeholder]="placeHolder" [formControl]="form" [required]="required">
|
2019-01-29 17:34:19 +01:00
|
|
|
<mat-error *ngIf="form.hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
<!-- RadioBox -->
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="viewStyle === viewStyleEnum.RadioBox">
|
|
|
|
<mat-select [formControl]="form" [placeholder]="placeHolder" [required]="required">
|
2019-02-08 11:31:22 +01:00
|
|
|
<mat-option [value]="null">{{'DATASET-PROFILE-EDITOR.STEPS.FORM.FIELD.DEFAULT-VALUES.NONE' | translate}}</mat-option>
|
2019-01-29 17:34:19 +01:00
|
|
|
<mat-option *ngFor="let opt of formArrayOptions['controls']" [value]="opt.get('value').value">{{opt.get('label').value}}</mat-option>
|
|
|
|
</mat-select>
|
|
|
|
<mat-error *ngIf="form.hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
|
|
</mat-form-field>
|
|
|
|
|
|
|
|
<!-- TextArea -->
|
|
|
|
<mat-form-field class="col-md-12" *ngIf="viewStyle === viewStyleEnum.TextArea">
|
2019-02-12 13:19:03 +01:00
|
|
|
<input matInput type="text" [placeholder]="placeHolder" [formControl]="form" [required]="required">
|
2019-01-29 17:34:19 +01:00
|
|
|
<mat-error *ngIf="form.hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
|
|
</mat-form-field>
|
|
|
|
|
2019-02-15 11:26:14 +01:00
|
|
|
<!-- DatePicker -->
|
|
|
|
<mat-form-field class="col-12" *ngIf="viewStyle === viewStyleEnum.DatePicker">
|
|
|
|
<!--(focus)="date.open()" (click)="date.open()"-->
|
2019-07-16 15:41:12 +02:00
|
|
|
<input matInput
|
2019-02-15 11:26:14 +01:00
|
|
|
[placeholder]="placeHolder" class="table-input" [matDatepicker]="date"
|
|
|
|
[formControl]="form" [required]="required">
|
|
|
|
<mat-datepicker-toggle matSuffix [for]="date"></mat-datepicker-toggle>
|
|
|
|
<mat-datepicker #date></mat-datepicker>
|
|
|
|
<mat-error *ngIf="form.hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}
|
|
|
|
</mat-error>
|
|
|
|
</mat-form-field>
|
2019-07-16 15:41:12 +02:00
|
|
|
</div>
|