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

32 lines
1.7 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>
2017-12-11 16:35:51 +01:00
<button type="button" style="margin: 15px;" class="btn btn-primary" (click)="toggleSidebar()" icon="fa-arrow-left">Table Of Contents</button>
2017-12-12 13:08:51 +01:00
<button type="button" *ngIf="dataModel&&dataModel.status != 1" style="margin-top: 15px;margin-bottom: 15px;margin-right: 15px;"
class="btn btn-primary" type="button" (click)="save();">Save</button>
<button type="button" *ngIf="dataModel&&dataModel?.status != 1" style="margin-top: 15px;margin-bottom: 15px;margin-right: 15px;"
class="btn btn-primary" (click)="submit();">Save and Finalize</button>
2017-12-06 10:04:55 +01:00
<div class="ui-g-12">
2017-12-13 13:55:12 +01:00
<div class="alignment-center">
<ngb-pagination *ngIf="pages" [collectionSize]="pages.length*10" [page]="currentPageIndex" (pageChange)="changePageIndex($event)" aria-label="Default pagination"></ngb-pagination>
</div>
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()">
<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>