2023-12-20 08:20:38 +01:00
|
|
|
<div class="dynamic-form-section row" [id]="section.id">
|
|
|
|
<mat-accordion class="col-12">
|
2023-12-28 16:18:49 +01:00
|
|
|
<mat-expansion-panel class="row expansion-panel toc-section-header" [id]="path" [(expanded)]="panelExpanded">
|
|
|
|
<mat-expansion-panel-header>
|
2023-12-20 08:20:38 +01:00
|
|
|
<mat-panel-title>
|
2023-12-28 16:18:49 +01:00
|
|
|
<h6 class='panel-title' *ngIf="section?.sections?.length > 0">{{path}}.section {{section.title}}</h6>
|
|
|
|
<h6 class='panel-title' *ngIf="section?.fieldSets?.length > 0">{{path}} {{section.title}}</h6>
|
2023-12-20 08:20:38 +01:00
|
|
|
</mat-panel-title>
|
2023-12-28 16:18:49 +01:00
|
|
|
</mat-expansion-panel-header>
|
2023-12-20 08:20:38 +01:00
|
|
|
<mat-panel-description class="col-12">
|
|
|
|
<h6 class='panel-desc' *ngIf="section.description" [innerHTML]="section.description"></h6>
|
2023-12-28 16:18:49 +01:00
|
|
|
</mat-panel-description>
|
|
|
|
<div *ngFor="let fieldSet of section.fieldSets; let i = index;" class="col-12" [id]="fieldSet.id" (click)="onAskedToScroll(fieldSet.id)">
|
|
|
|
<div class="row">
|
2023-12-20 08:20:38 +01:00
|
|
|
<div class="col-12">
|
|
|
|
<div class="row">
|
2024-02-02 17:43:24 +01:00
|
|
|
<app-description-form-field-set class="align-self-center col"
|
|
|
|
[propertiesFormGroup]="propertiesFormGroup.get('fieldSets')?.get(fieldSet.id)"
|
|
|
|
[fieldSet]="fieldSet"
|
|
|
|
[path]="path + '.' + (i+1)"
|
|
|
|
[visibilityRulesService]="visibilityRulesService"
|
|
|
|
[isChild]="false"></app-description-form-field-set>
|
2023-12-20 08:20:38 +01:00
|
|
|
</div>
|
2024-02-02 17:43:24 +01:00
|
|
|
</div>
|
2023-12-20 08:20:38 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-12-28 16:18:49 +01:00
|
|
|
<div *ngIf="section?.sections?.length > 0" class="col-12">
|
|
|
|
<ng-container *ngFor="let innerSection of section.sections; let j = index;">
|
|
|
|
<div class="row">
|
2024-02-02 17:43:24 +01:00
|
|
|
<app-description-form-section class="col-12" [section]="innerSection" [path]="path+'.'+(j+1)" [pathName]="pathName+'.sections.'+j" (askedToScroll)="onAskedToScroll($event)" [propertiesFormGroup]="propertiesFormGroup" [visibilityRulesService]="visibilityRulesService" [linkToScroll]="subsectionLinkToScroll"></app-description-form-section>
|
2023-12-20 08:20:38 +01:00
|
|
|
</div>
|
|
|
|
</ng-container>
|
|
|
|
</div>
|
2023-12-28 16:18:49 +01:00
|
|
|
</mat-expansion-panel>
|
|
|
|
</mat-accordion>
|
|
|
|
</div>
|