argos/dmp-frontend/src/app/ui/misc/dataset-description-form/dataset-description-form.co...

21 lines
965 B
HTML
Raw Normal View History

2019-01-18 18:03:45 +01:00
<form *ngIf="form" novalidate [formGroup]="form">
<div class="dynamic-form-editor row">
<app-form-progress-indication class="col-12" *ngIf="form" [formGroup]="form"></app-form-progress-indication>
<div class="col-12" id="form-container">
2019-01-18 18:03:45 +01:00
<mat-vertical-stepper #stepper [linear]="false">
<div *ngFor="let pageFormGroup of form.get('pages')['controls']; let z = index;">
<div *ngFor="let sectionFormGroup of pageFormGroup.get('sections')['controls']; let i = index;">
<mat-step [stepControl]="sectionFormGroup">
<ng-template matStepLabel>{{pageFormGroup.get('title').value}}</ng-template>
2019-01-18 18:03:45 +01:00
<div *ngIf="stepper.selectedIndex == z" class="row">
2019-01-29 08:47:50 +01:00
<app-form-section class="col-12" [form]="sectionFormGroup" [path]="z+1" [pathName]="'pages.'+z+'.sections.'+i" [datasetProfileId]="datasetProfileId"></app-form-section>
2019-01-18 18:03:45 +01:00
</div>
</mat-step>
</div>
</div>
</mat-vertical-stepper>
</div>
</div>
</form>