15 lines
1.1 KiB
HTML
15 lines
1.1 KiB
HTML
|
<div *ngFor="let field of dataManagementPlanProfile.fields; let i = index">
|
||
|
<div *ngIf="field.type == DMPProfileType.INPUT">
|
||
|
<mat-form-field class="full-width" *ngIf="field.dataType == DMPProfileFieldDataType.DATE">
|
||
|
<input matInput [matDatepicker]="picker" [placeholder]="field.label" [formControl]="formGroup.get('properties').get('fields').get(''+i).get('value')">
|
||
|
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
|
||
|
<mat-datepicker #picker></mat-datepicker>
|
||
|
</mat-form-field>
|
||
|
<mat-form-field class="full-width" *ngIf="field.dataType == DMPProfileFieldDataType.TEXT">
|
||
|
<input matInput [placeholder]="field.label" [formControl]="formGroup.get('properties').get('fields').get(''+i).get('value')">
|
||
|
</mat-form-field>
|
||
|
<mat-form-field class="full-width" *ngIf="field.dataType == DMPProfileFieldDataType.NUMBER">
|
||
|
<input matInput type="number" [placeholder]="field.label" [formControl]="formGroup.get('properties').get('fields').get(''+i).get('value')">
|
||
|
</mat-form-field>
|
||
|
</div>
|
||
|
</div>
|