2023-12-28 16:18:49 +01:00
|
|
|
|
<div *ngIf="datasetDescription" class="col-12 intro" [innerHTML]="datasetDescription"></div>
|
2023-12-20 08:20:38 +01:00
|
|
|
|
<form *ngIf="descriptionTemplate && propertiesFormGroup" novalidate class="col-12 card">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="dynamic-form-editor p-0 col-md-12">
|
|
|
|
|
<div id="form-container">
|
2023-12-28 16:18:49 +01:00
|
|
|
|
<mat-accordion [multi]="true">
|
|
|
|
|
<ng-container *ngFor="let page of descriptionTemplate?.definition?.pages; let z = index;">
|
|
|
|
|
<mat-expansion-panel [expanded]="true" #expansionPanel>
|
|
|
|
|
<mat-expansion-panel-header>
|
|
|
|
|
<mat-panel-title>
|
|
|
|
|
<h4 class="panel-title toc-page-header">
|
|
|
|
|
{{z+1}}. {{page.title |uppercase}}
|
|
|
|
|
</h4>
|
|
|
|
|
</mat-panel-title>
|
|
|
|
|
</mat-expansion-panel-header>
|
2024-01-31 20:16:39 +01:00
|
|
|
|
<ng-container *ngFor="let section of page.sections; let i = index;">
|
2023-12-28 16:18:49 +01:00
|
|
|
|
<div class="row">
|
2024-03-13 09:45:22 +01:00
|
|
|
|
<app-description-form-section class="col-12" [section]="section" [path]="(z+1)+'.'+(i+1)" [pathName]="'pages.'+z+'.sections.'+i" [propertiesFormGroup]="propertiesFormGroup" [descriptionId]="descriptionId" [visibilityRulesService]="visibilityRulesService" (askedToScroll)="onAskedToScroll(expansionPanel, $event)" [linkToScroll]="linkToScroll" [validationErrorModel]="validationErrorModel"></app-description-form-section>
|
2023-12-28 16:18:49 +01:00
|
|
|
|
</div>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</mat-expansion-panel>
|
|
|
|
|
</ng-container>
|
|
|
|
|
</mat-accordion>
|
2023-12-20 08:20:38 +01:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-12-28 16:18:49 +01:00
|
|
|
|
</form>
|