2017-12-05 17:56:21 +01:00
|
|
|
<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>
|
2017-11-23 11:40:02 +01:00
|
|
|
</div>
|
2017-12-05 17:56:21 +01:00
|
|
|
<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>
|
2017-11-23 11:40:02 +01:00
|
|
|
</div>
|
2017-12-05 17:56:21 +01:00
|
|
|
</div>
|
|
|
|
</p-panel>
|