-
Notifications
You must be signed in to change notification settings - Fork 1
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 #1840 from bcgov/develop
Deployment PR - 1295
- Loading branch information
Showing
84 changed files
with
1,152 additions
and
1,408 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
45 changes: 45 additions & 0 deletions
45
...res/commissioner/application/commissioner-decisions/commissioner-decisions.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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<div *ngFor="let decision of applicationDecisions; let index = index"> | ||
<h4>Decision #{{ applicationDecisions.length - index }}</h4> | ||
<div class="decision-table"> | ||
<div> | ||
<div class="subheading2">Decision Date</div> | ||
{{ decision.date | momentFormat }} | ||
</div> | ||
|
||
<div> | ||
<div class="subheading2">Resolution Number</div> | ||
#{{ decision.resolutionNumber }}/{{ decision.resolutionYear }} | ||
</div> | ||
|
||
<div class="full-width"> | ||
<div class="subheading2">Decision Summary</div> | ||
{{ decision.decisionDescription }} | ||
</div> | ||
|
||
<div class="full-width"> | ||
<div class="subheading2">Decision Document</div> | ||
<div class="document split" *ngFor="let document of decision.documents"> | ||
<div> | ||
<a (click)="openFile(decision, document)">{{ document.fileName }}</a> | ||
({{ document.fileSize! | filesize }}) | ||
</div> | ||
<button class="center" mat-button (click)="openFile(decision, document)"> | ||
<mat-icon>file_download</mat-icon> | ||
Download | ||
</button> | ||
</div> | ||
<div class="document responsive left" *ngFor="let document of decision.documents"> | ||
<div class="document-name"> | ||
<a (click)="openFile(decision, document)">{{ document.fileName }}</a> | ||
</div> | ||
<div class="split"> | ||
<div>{{ document.fileSize! | filesize }}</div> | ||
<button class="center" mat-button (click)="openFile(decision, document)"> | ||
<mat-icon>file_download</mat-icon> | ||
Download | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
35 changes: 35 additions & 0 deletions
35
...res/commissioner/application/commissioner-decisions/commissioner-decisions.component.scss
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@use '../../../../../styles/colors.scss'; | ||
|
||
.decision-table { | ||
padding: 16px; | ||
margin: 24px 0 40px 0; | ||
background-color: colors.$grey-light; | ||
display: grid; | ||
grid-row-gap: 24px; | ||
grid-column-gap: 16px; | ||
grid-template-columns: 100%; | ||
word-wrap: break-word; | ||
hyphens: auto; | ||
grid-template-columns: 49% 49%; | ||
.full-width { | ||
grid-column: 1/3; | ||
} | ||
} | ||
|
||
.document { | ||
display: none; | ||
padding: 9px 16px; | ||
border-radius: 4px; | ||
border: 1px solid colors.$grey; | ||
background: colors.$white; | ||
margin: 8px 0; | ||
display: flex; | ||
} | ||
|
||
.responsive { | ||
display: none; | ||
} | ||
|
||
.document-name { | ||
padding: 6px 0; | ||
} |
19 changes: 19 additions & 0 deletions
19
...tures/commissioner/application/commissioner-decisions/commissioner-decisions.component.ts
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Component, Input, type OnInit } from '@angular/core'; | ||
import { CommissionerDecisionDto } from '../../../../services/commissioner/commissioner.dto'; | ||
import { ApplicationDocumentService } from '../../../../services/application/application-document/application-document.service'; | ||
import { ApplicationDecisionV2Service } from '../../../../services/application/decision/application-decision-v2/application-decision-v2.service'; | ||
import { ApplicationDocumentDto } from '../../../../services/application/application-document/application-document.dto'; | ||
|
||
@Component({ | ||
selector: 'app-commissioner-decisions', | ||
templateUrl: './commissioner-decisions.component.html', | ||
styleUrl: './commissioner-decisions.component.scss', | ||
}) | ||
export class CommissionerDecisionsComponent { | ||
@Input() applicationDecisions: CommissionerDecisionDto[] = []; | ||
constructor(private decisionService: ApplicationDecisionV2Service) {} | ||
|
||
async openFile(decision: CommissionerDecisionDto, file: ApplicationDocumentDto) { | ||
const res = await this.decisionService.downloadFile(decision.uuid, file.uuid, file.fileName); | ||
} | ||
} |
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
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
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
File renamed without changes.
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
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
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.