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

29 lines
1.4 KiB
HTML
Raw Normal View History

2017-12-11 09:50:27 +01:00
<div class="ui-g dynamic-formc full-width full-height">
2017-12-11 17:39:32 +01:00
<ng-sidebar-container contentClass="scrollableContent">
2017-12-11 09:10:54 +01:00
<ng-sidebar mode="push" position="right" [(opened)]="visibleSidebar">
<table-of-content class="toc-container full-height" [model]="dataModel"></table-of-content>
2017-12-06 10:04:55 +01:00
</ng-sidebar>
<div class="ui-g" ng-sidebar-content>
<button class="ui-g" pButton type="button" (click)="toggleSidebar()" icon="fa-arrow-left">Table Of Contents</button>
<button type="button" class="btn btn-primary" (click)="submit();">Save and Finalize</button>
<progress-bar class="ui-g" *ngIf="progressbar" [formGroup]=form></progress-bar>
<div class="ui-g-12">
2017-12-11 15:21:49 +01:00
<p-steps [model]="stepperItems" [activeIndex]="this.currentPageIndex" (activeIndexChange)="changePageIndex($event)" [readonly]="false"></p-steps>
2017-12-07 10:26:06 +01:00
</div>
<div class="ui-g-12">
2017-12-08 11:19:50 +01:00
<progress-bar *ngIf="form" [formGroup]="form"></progress-bar>
</div>
2017-12-06 10:04:55 +01:00
<div class="col-md-12 form-body-container" id="form-container">
2017-12-05 17:56:21 +01:00
2017-12-06 10:04:55 +01:00
<form *ngIf="form" novalidate [formGroup]="form" (ngSubmit)="onSubmit()">
2017-11-13 17:19:43 +01:00
2017-12-06 10:04:55 +01:00
<div *ngFor="let section of dataModel.sections; let i = index;">
2017-12-11 14:47:52 +01:00
<df-section *ngIf='this.shouldDisplaySection(section)' [section]="section" [form]="form.get('sections').get(''+i)" [path]="i+1"
[pathName]="'sections.'+i"></df-section>
2017-12-06 10:04:55 +01:00
</div>
</form>
2017-12-05 17:56:21 +01:00
</div>
</div>
2017-12-06 10:04:55 +01:00
</ng-sidebar-container>
2017-12-11 09:10:54 +01:00
</div>