argos/dmp-frontend/src/app/form/dynamic-form-section/dynamic-form-section.html

17 lines
855 B
HTML

<p-panel [header]="path+' '+section.title" [toggleable]="true">
<div [id]="section.id" [formGroup]="form">
<h4>{{section.description}}</h4>
<h4>{{section.extendedDescription}}</h4>
<div *ngIf="section.fieldGroups">
<div *ngFor="let group of section.fieldGroups; let j = index;">
<df-group [group]="group" [form]="form.get('fieldGroups').get(''+j)" [path]="path+'.'+(j+1)" [pathName]="pathName+'.fieldGroups.'+j"></df-group>
</div>
</div>
<div *ngIf="section.sections">
<div *ngFor="let itemsection of section.sections; let j = index;">
<df-section [section]="itemsection" [form]="form.get('sections').get(''+j)" [path]="path+'.'+(j+1)" [pathName]="pathName+'.sections.'+j"></df-section>
</div>
</div>
</div>
</p-panel>