-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #358 from NREL/issue-129
Issue 129: Print to PDF for Reports
- Loading branch information
Showing
28 changed files
with
857 additions
and
606 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
.neb-container{ | ||
.neb-container { | ||
/* width: 100%; */ | ||
height: 100vh; | ||
background-color: #efefef; | ||
} | ||
|
||
.main-content{ | ||
.main-content { | ||
height: calc(100vh - 4rem); | ||
overflow-y: auto; | ||
} | ||
|
||
@media print { | ||
.main-content { | ||
height: auto !important; | ||
} | ||
|
||
.neb-container{ | ||
height: auto !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
<div class="neb-container d-flex flex-column"> | ||
<app-navbar></app-navbar> | ||
<div class="d-flex flex-column" [ngClass]="{'neb-container': !print}"> | ||
<app-navbar class="hide-print"></app-navbar> | ||
<ng-template [ngIf]="dataInitialized" [ngIfElse]="initializingDataBlock"> | ||
<div class="d-flex w-100"> | ||
<div class="d-flex"> | ||
<app-sidebar></app-sidebar> | ||
</div> | ||
<div class="w-100 main-content" (click)="collapseSidebar()"> | ||
<router-outlet></router-outlet> | ||
<app-toast-notifications></app-toast-notifications> | ||
<app-toast-notifications *ngIf="!print"></app-toast-notifications> | ||
</div> | ||
</div> | ||
<!-- <router-outlet></router-outlet> --> | ||
</ng-template> | ||
<ng-template #initializingDataBlock> | ||
Initializing data... | ||
</ng-template> | ||
<app-loading></app-loading> | ||
<app-setup-wizard-modal></app-setup-wizard-modal> | ||
<app-alpha-disclaimer></app-alpha-disclaimer> | ||
<ng-container *ngIf="!print"> | ||
<app-loading></app-loading> | ||
<app-setup-wizard-modal></app-setup-wizard-modal> | ||
<app-alpha-disclaimer></app-alpha-disclaimer> | ||
</ng-container> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...n/on-site-assessment/on-site-assessment-results/on-site-assessment-results.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<div class="ps-2 pe-2 pb-2"> | ||
<app-assessment-savings-chart [assessmentReport]="assessmentReport"></app-assessment-savings-chart> | ||
<app-assessment-savings-table [assessmentReport]="assessmentReport"></app-assessment-savings-table> | ||
<div class="alert alert-info w-100 p-1 text-center small"> | ||
A printable version of this report can be found in the "Data Evaluation" section of the wizard. | ||
</div> | ||
</div> |
40 changes: 18 additions & 22 deletions
40
...p/setup-wizard/data-evaluation/assessment-evaluation/assessment-evaluation.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,26 @@ | ||
<div class="setup-wizard-content" *ngIf="assessment"> | ||
<div class="row g-0 justify-content-center h-100 w-100 overflow-scroll"> | ||
<div class="col-10 pt-4 pb-4"> | ||
<div class="form-paper shadow"> | ||
<nav class="navbar top-nav"> | ||
<h5> | ||
<fa-icon [icon]="faChartPie"></fa-icon> {{assessment.name}} Report | ||
</h5> | ||
</nav> | ||
<div [ngClass]="{'setup-wizard-content': !print}" *ngIf="assessment"> | ||
<div [ngClass]="{'row g-0 justify-content-center h-100 w-100 overflow-scroll': !print}"> | ||
<div [ngClass]="{'col-10 pt-4 pb-4': !print}"> | ||
<div [ngClass]="{'form-paper shadow': !print}"> | ||
<h5> | ||
<fa-icon [icon]="faChartPie"></fa-icon> {{assessment.name}} Report | ||
</h5> | ||
<app-assessment-report [assessment]="assessment"></app-assessment-report> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<nav class="setup-wizard-footer navbar shadow"> | ||
<nav class="setup-wizard-footer navbar shadow" *ngIf="!print"> | ||
<div class="container-fluid justify-content-between"> | ||
<div class="col-3"> | ||
<button class="btn nav-btn btn-sm" (click)="goBack()"> | ||
<fa-icon [icon]="faChevronLeft"></fa-icon> | ||
</button> | ||
</div> | ||
<div class="col-3"> | ||
<div class="d-flex justify-content-end"> | ||
<button class="btn nav-btn btn-sm" (click)="goToNext()"> | ||
<fa-icon [icon]="faChevronRight"></fa-icon> | ||
</button> | ||
</div> | ||
</div> | ||
<button class="btn nav-btn btn-sm" (click)="goBack()"> | ||
<fa-icon [icon]="faChevronLeft"></fa-icon> | ||
</button> | ||
<button class="btn btn-success btn-sm" (click)="togglePrint()"> | ||
<fa-icon [icon]="faFilePdf"></fa-icon> | ||
Generate PDF | ||
</button> | ||
<button class="btn nav-btn btn-sm" (click)="goToNext()"> | ||
<fa-icon [icon]="faChevronRight"></fa-icon> | ||
</button> | ||
</div> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 29 additions & 35 deletions
64
src/app/setup-wizard/data-evaluation/visit-report/visit-report.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,42 @@ | ||
<div class="setup-wizard-content"> | ||
<div class="row g-0 justify-content-center h-100 w-100 overflow-scroll"> | ||
<div class="col-10 pt-4 pb-4"> | ||
<div class="form-paper shadow"> | ||
<nav class="navbar top-nav"> | ||
<h5> | ||
<fa-icon [icon]="faChartColumn"></fa-icon> | ||
On Site Visit Report | ||
</h5> | ||
</nav> | ||
<div [ngClass]="{'setup-wizard-content': !print}"> | ||
<div [ngClass]="{'row g-0 justify-content-center h-100 w-100 overflow-scroll': !print}"> | ||
<div [ngClass]="{'col-10 pt-4 pb-4': !print}"> | ||
<div [ngClass]="{'form-paper shadow': !print}"> | ||
<h5> | ||
<fa-icon [icon]="faChartColumn"></fa-icon> | ||
On Site Visit Report | ||
</h5> | ||
<app-on-site-visit-report [onSiteVisit]="onSiteVisit"></app-on-site-visit-report> | ||
</div> | ||
</div> | ||
<div class="col-10"> | ||
<div class="col-10 hide-print"> | ||
<hr> | ||
</div> | ||
<div class="col-10 pt-4 pb-4" *ngFor="let assessment of assessments"> | ||
<div class="form-paper shadow"> | ||
<nav class="navbar top-nav"> | ||
<h5> | ||
<fa-icon [icon]="faScrewdriverWrench"></fa-icon> {{assessment.name}} Report | ||
</h5> | ||
</nav> | ||
<div class="print-break-avoid" *ngFor="let assessment of assessments" [ngClass]="{'col-10 pt-4 pb-4': !print}"> | ||
<div [ngClass]="{'form-paper shadow': !print}"> | ||
<h5> | ||
<fa-icon [icon]="faScrewdriverWrench"></fa-icon> {{assessment.name}} Report | ||
</h5> | ||
<app-assessment-report [assessment]="assessment" [inRollup]="true"></app-assessment-report> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<nav class="setup-wizard-footer navbar shadow"> | ||
<nav class="setup-wizard-footer navbar shadow" *ngIf="!print"> | ||
<div class="container-fluid justify-content-between"> | ||
<div class="col-3"> | ||
<button class="btn nav-btn btn-sm" (click)="goBack()"> | ||
<fa-icon [icon]="faChevronLeft"></fa-icon> | ||
<span class="d-md-none"> | ||
Back | ||
</span> | ||
</button> | ||
</div> | ||
<div class="col-3"> | ||
<div class="d-flex justify-content-end"> | ||
<button class="btn nav-btn btn-sm" (click)="goNext()"> | ||
<fa-icon [icon]="faFolderOpen"></fa-icon> | ||
Go To Portfolio | ||
</button> | ||
</div> | ||
</div> | ||
<button class="btn nav-btn btn-sm" (click)="goBack()"> | ||
<fa-icon [icon]="faChevronLeft"></fa-icon> | ||
<span class="d-md-none"> | ||
Back | ||
</span> | ||
</button> | ||
<button class="btn btn-success btn-sm" (click)="togglePrint()"> | ||
<fa-icon [icon]="faFilePdf"></fa-icon> | ||
Generate PDF | ||
</button> | ||
<button class="btn nav-btn btn-sm" (click)="goNext()"> | ||
<fa-icon [icon]="faFolderOpen"></fa-icon> | ||
Go To Portfolio | ||
</button> | ||
</div> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.