-
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 #949 from bcgov/feature/ALCS-1035
Add Notification Documents
- Loading branch information
Showing
29 changed files
with
2,262 additions
and
26 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
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
104 changes: 104 additions & 0 deletions
104
...features/notifications/edit-submission/other-attachments/other-attachments.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,104 @@ | ||
<div class="step-description"> | ||
<h2>Optional Attachments</h2> | ||
<p> | ||
Please upload any optional supporting documents. Where possible, provide KML/KMZ Google Earth files or GIS | ||
shapefiles and geodatabases. | ||
</p> | ||
</div> | ||
<section> | ||
<h4>Upload Optional Attachments (Max. 100 MB per attachment)</h4> | ||
<form [formGroup]="form"> | ||
<div class="scrollable"> | ||
<table mat-table [dataSource]="otherFiles"> | ||
<ng-container matColumnDef="type"> | ||
<th mat-header-cell *matHeaderCellDef>Type</th> | ||
<td mat-cell *matCellDef="let element"> | ||
<mat-form-field appearance="outline"> | ||
<mat-select | ||
[formControlName]="element.uuid + '-type'" | ||
(valueChange)="onChangeType(element.uuid, $event)" | ||
placeholder="Select a type" | ||
> | ||
<mat-option *ngFor="let type of selectableTypes" [value]="type.code">{{ type.label }}</mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
<div | ||
*ngIf=" | ||
form.controls[element.uuid + '-type']!.invalid && | ||
(form.controls[element.uuid + '-type']!.dirty || form.controls[element.uuid + '-type']!.touched) | ||
" | ||
class="field-error" | ||
> | ||
<mat-icon>warning</mat-icon> | ||
<div *ngIf="form.controls[element.uuid + '-type']!.errors?.['required']">This field is required</div> | ||
</div> | ||
</td> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="description"> | ||
<th mat-header-cell *matHeaderCellDef>Description</th> | ||
<td mat-cell *matCellDef="let element"> | ||
<mat-form-field appearance="outline"> | ||
<input | ||
[formControlName]="element.uuid + '-description'" | ||
(change)="onChangeDescription(element.uuid, $event)" | ||
id="fileType" | ||
type="text" | ||
matInput | ||
placeholder="Type description" | ||
/> | ||
</mat-form-field> | ||
<div | ||
*ngIf=" | ||
form.controls[element.uuid + '-description']!.invalid && | ||
(form.controls[element.uuid + '-description']!.dirty || | ||
form.controls[element.uuid + '-description']!.touched) | ||
" | ||
class="field-error" | ||
> | ||
<mat-icon>warning</mat-icon> | ||
<div *ngIf="form.controls[element.uuid + '-description']!.errors?.['required']"> | ||
This field is required | ||
</div> | ||
</div> | ||
</td> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="fileName"> | ||
<th mat-header-cell *matHeaderCellDef>File Name</th> | ||
<td mat-cell *matCellDef="let element"> | ||
<a (click)="openFile(element.uuid)">{{ element.fileName }}</a> | ||
</td> | ||
</ng-container> | ||
|
||
<ng-container matColumnDef="actions"> | ||
<th mat-header-cell *matHeaderCellDef>Action</th> | ||
<td mat-cell class="actions" *matCellDef="let element"> | ||
<button (click)="onDeleteFile(element)" mat-stroked-button color="accent">Remove</button> | ||
</td> | ||
</ng-container> | ||
|
||
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> | ||
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr> | ||
|
||
<tr class="mat-row" *matNoDataRow> | ||
<td class="no-data-text" colspan="6">No attachments</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</form> | ||
<div class="uploader"> | ||
<app-file-drag-drop (uploadFiles)="attachFile($event, null)"></app-file-drag-drop> | ||
</div> | ||
</section> | ||
<div class="button-container"> | ||
<button (click)="onSaveExit()" mat-stroked-button color="accent">Save and Exit</button> | ||
<div> | ||
<button mat-stroked-button color="primary" (click)="onNavigateToStep(currentStep - 1)"> | ||
Previous<span class="mobile-hidden"> Step</span> | ||
</button> | ||
<button mat-flat-button color="primary" (click)="onNavigateToStep(currentStep + 1)"> | ||
Next<span class="mobile-hidden"> Step</span> | ||
</button> | ||
</div> | ||
</div> |
38 changes: 38 additions & 0 deletions
38
...features/notifications/edit-submission/other-attachments/other-attachments.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,38 @@ | ||
@use '../../../../../styles/functions' as *; | ||
@use '../../../../../styles/colors'; | ||
|
||
section { | ||
margin-top: rem(32); | ||
} | ||
|
||
.uploader { | ||
margin-top: rem(24); | ||
} | ||
|
||
h4 { | ||
margin-bottom: rem(8) !important; | ||
} | ||
|
||
.scrollable { | ||
overflow-x: auto; | ||
} | ||
|
||
.mat-mdc-table .mdc-data-table__row { | ||
height: rem(75); | ||
} | ||
|
||
.mat-mdc-form-field { | ||
width: 100%; | ||
} | ||
|
||
:host::ng-deep { | ||
.mdc-text-field--invalid { | ||
margin-top: rem(8); | ||
} | ||
} | ||
|
||
.no-data-text { | ||
text-align: center; | ||
color: colors.$grey; | ||
padding-top: rem(12); | ||
} |
Oops, something went wrong.