You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
2.5 KiB
HTML
48 lines
2.5 KiB
HTML
<div class="dynamic-form-editor">
|
|
<!-- <mat-sidenav-container class="ng-sidebar-container"> -->
|
|
<!-- <mat-sidenav mode="push" position="right" [(opened)]="visibleSidebar">
|
|
<table-of-content class="toc-container full-height" [model]="datasetProfileDefinitionModel"></table-of-content>
|
|
</mat-sidenav> -->
|
|
|
|
<!-- <mat-sidenav-content> -->
|
|
<!-- <button mat-raised-button color="primary" style="margin: 15px;" (click)="toggleSidebar()" icon="fa-arrow-left">Table Of Contents</button> -->
|
|
<form *ngIf="form" novalidate [formGroup]="form">
|
|
<!-- <button mat-raised-button color="primary" *ngIf="dataModel&&dataModel.status.toString() != 1" style="margin-top: 15px;margin-bottom: 15px;margin-right: 15px;"
|
|
(click)="save();" type="button">Save</button>
|
|
<button mat-raised-button color="primary" *ngIf="dataModel&&dataModel?.status != 1" style="margin-top: 15px;margin-bottom: 15px;margin-right: 15px;"
|
|
(click)="saveFinalize();" type="button">Save and Finalize</button> -->
|
|
<div>
|
|
<div class="alignment-center">
|
|
<!-- <ngb-pagination *ngIf="pages" [collectionSize]="pages.length*10" [page]="currentPageIndex" (pageChange)="changePageIndex($event)" aria-label="Default pagination"></ngb-pagination> -->
|
|
<progress-bar *ngIf="form" [formGroup]="form"></progress-bar>
|
|
</div>
|
|
</div>
|
|
|
|
<div *ngIf='datasetProfileDefinitionModel' class="col-md-12" id="form-container">
|
|
<!-- <form *ngIf="form" novalidate [formGroup]="form" (ngSubmit)="onSubmit()"> -->
|
|
<mat-vertical-stepper #stepper [linear]="false">
|
|
<div *ngFor="let page of datasetProfileDefinitionModel.pages let z=index;">
|
|
<div *ngFor="let section of page.sections; let i = index;">
|
|
<mat-step [stepControl]="section">
|
|
<ng-template matStepLabel>{{page.title}}</ng-template>
|
|
<div *ngIf="stepper.selectedIndex == z">
|
|
<df-section [section]="section" [form]="form.get('pages').get(''+z).get('sections').get(''+i)" [path]="z+1" [pathName]="'pages.'+z+'.sections.'+i"></df-section>
|
|
<!-- <div>
|
|
<button mat-button matStepperNext>Next</button>
|
|
</div> -->
|
|
</div>
|
|
</mat-step>
|
|
</div>
|
|
</div>
|
|
</mat-vertical-stepper>
|
|
<!-- <div *ngFor="let section of datasetProfileDefinitionModel.sections; let i = index;">
|
|
<df-section *ngIf='this.shouldDisplaySection(section)' [section]="section" [form]="form.get('sections').get(''+i)" [path]="i+1"
|
|
[pathName]="'sections.'+i"></df-section>
|
|
</div> -->
|
|
|
|
</div>
|
|
</form>
|
|
<!-- </mat-sidenav-content>
|
|
</mat-sidenav-container> -->
|
|
</div>
|
|
<!-- <p>Form value: {{ form.value | json }}</p> --> |