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

22 lines
1.1 KiB
HTML
Raw Normal View History

2017-12-06 17:45:54 +01:00
<p-panel *ngIf="visibilityRulesService.isElementVisible(pathName,section.id)" class="section-component" [toggleable]="true">
2017-12-06 11:35:50 +01:00
<p-header>
<div class="ui-helper-clearfix">
2017-12-06 12:39:49 +01:00
<h2>{{path}} {{section.title}}</h2>
2017-12-06 11:35:50 +01:00
</div>
</p-header>
2017-12-05 17:56:21 +01:00
<div [id]="section.id" [formGroup]="form">
2017-12-06 11:35:50 +01:00
<h3 *ngIf="section.description">{{section.description}}</h3>
<h4 *ngIf="section.extendedDescription">{{section.extendedDescription}}</h4>
2017-12-05 17:56:21 +01:00
<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>
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>
</div>
2017-12-05 17:56:21 +01:00
</div>
</p-panel>