Skip to content

Commit

Permalink
ALCS-2350 Remove borders when there is a residential warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarreta committed Nov 6, 2024
1 parent b76b2bc commit 0f54acd
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,12 @@ <h2>Proposal</h2>
<table mat-table [dataSource]="structuresSource" multiTemplateDataRows *ngIf="!isMobile">
<ng-container matColumnDef="index">
<th mat-header-cell *matHeaderCellDef>#</th>
<td mat-cell *matCellDef="let i = dataIndex">{{ i + 1 }}</td>
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">{{ i + 1 }}</td>
</ng-container>

<ng-container matColumnDef="type">
<th mat-header-cell *matHeaderCellDef>Type</th>
<td mat-cell *matCellDef="let element">
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">
<mat-form-field appearance="outline">
<mat-select
[value]="element.type"
Expand Down Expand Up @@ -350,7 +350,7 @@ <h2>Proposal</h2>

<ng-container matColumnDef="area">
<th mat-header-cell *matHeaderCellDef>Total Floor Area</th>
<td mat-cell *matCellDef="let element">
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">
<mat-form-field appearance="outline">
<input
type="text"
Expand Down Expand Up @@ -383,7 +383,7 @@ <h2>Proposal</h2>

<ng-container matColumnDef="action">
<th mat-header-cell *matHeaderCellDef>Action</th>
<td mat-cell *matCellDef="let element">
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">
<button mat-stroked-button color="accent" (click)="onStructureRemove(element.id)" type="button">
Remove
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,11 @@ section {
margin: rem(10) 0 rem(20) rem(5);
line-height: rem(24);
}

.no-top-border {
border-top-style: hidden;
}

.no-bottom-border {
border-bottom-style: hidden;
}
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ <h2>Proposal</h2>
<table mat-table [dataSource]="structuresSource" multiTemplateDataRows *ngIf="!isMobile">
<ng-container matColumnDef="index">
<th mat-header-cell *matHeaderCellDef>#</th>
<td mat-cell *matCellDef="let i = dataIndex">{{ i + 1 }}</td>
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">{{ i + 1 }}</td>
</ng-container>

<ng-container matColumnDef="type">
<th mat-header-cell *matHeaderCellDef>Type</th>
<td mat-cell *matCellDef="let element">
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">
<mat-form-field appearance="outline">
<mat-select
[value]="element.type"
Expand Down Expand Up @@ -258,7 +258,7 @@ <h2>Proposal</h2>

<ng-container matColumnDef="area">
<th mat-header-cell *matHeaderCellDef>Total Floor Area</th>
<td mat-cell *matCellDef="let element">
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">
<mat-form-field appearance="outline">
<input
type="text"
Expand Down Expand Up @@ -291,7 +291,7 @@ <h2>Proposal</h2>

<ng-container matColumnDef="action">
<th mat-header-cell *matHeaderCellDef>Action</th>
<td mat-cell *matCellDef="let element">
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">
<button mat-stroked-button color="accent" (click)="onStructureRemove(element.id)" type="button">
Remove
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,11 @@ section {
margin: rem(10) 0 rem(20) rem(5);
line-height: rem(24);
}

.no-top-border {
border-top-style: hidden;
}

.no-bottom-border {
border-bottom-style: hidden;
}
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,12 @@ <h2>Proposal</h2>
<table mat-table [dataSource]="structuresSource" multiTemplateDataRows *ngIf="!isMobile">
<ng-container matColumnDef="index">
<th mat-header-cell *matHeaderCellDef>#</th>
<td mat-cell *matCellDef="let i = dataIndex">{{ i + 1 }}</td>
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">{{ i + 1 }}</td>
</ng-container>

<ng-container matColumnDef="type">
<th mat-header-cell *matHeaderCellDef>Type</th>
<td mat-cell *matCellDef="let element">
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">
<mat-form-field appearance="outline">
<mat-select
[value]="element.type"
Expand Down Expand Up @@ -260,7 +260,7 @@ <h2>Proposal</h2>

<ng-container matColumnDef="area">
<th mat-header-cell *matHeaderCellDef>Total Floor Area</th>
<td mat-cell *matCellDef="let element">
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">
<mat-form-field appearance="outline">
<input
type="text"
Expand Down Expand Up @@ -293,7 +293,7 @@ <h2>Proposal</h2>

<ng-container matColumnDef="action">
<th mat-header-cell *matHeaderCellDef>Action</th>
<td mat-cell *matCellDef="let element">
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">
<button mat-stroked-button color="accent" (click)="onStructureRemove(element.id)" type="button">
Remove
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,11 @@ section {
margin: rem(10) 0 rem(20) rem(5);
line-height: rem(24);
}

.no-top-border {
border-top-style: hidden;
}

.no-bottom-border {
border-bottom-style: hidden;
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ <h2>Additional Proposal Information</h2>
<table mat-table [dataSource]="structuresSource" multiTemplateDataRows *ngIf="!isMobile">
<ng-container matColumnDef="index">
<th mat-header-cell *matHeaderCellDef>#</th>
<td mat-cell *matCellDef="let i = dataIndex">{{ i + 1 }}</td>
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">{{ i + 1 }}</td>
</ng-container>

<ng-container matColumnDef="type">
<th mat-header-cell *matHeaderCellDef>Type</th>
<td mat-cell *matCellDef="let element">
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">
<mat-form-field appearance="outline">
<mat-select
[value]="element.type"
Expand Down Expand Up @@ -118,7 +118,7 @@ <h2>Additional Proposal Information</h2>

<ng-container matColumnDef="area">
<th mat-header-cell *matHeaderCellDef>Total Floor Area</th>
<td mat-cell *matCellDef="let element">
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">
<mat-form-field appearance="outline">
<input
type="text"
Expand Down Expand Up @@ -151,7 +151,7 @@ <h2>Additional Proposal Information</h2>

<ng-container matColumnDef="action">
<th mat-header-cell *matHeaderCellDef>Action</th>
<td mat-cell *matCellDef="let element">
<td mat-cell *matCellDef="let i = dataIndex; let element" [ngClass]="{ 'no-bottom-border': isWarning(i, element) }">
<button mat-stroked-button color="accent" (click)="onStructureRemove(element.id)" type="button">
Remove
</button>
Expand All @@ -162,7 +162,7 @@ <h2>Additional Proposal Information</h2>
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>

<ng-container matColumnDef="msgWarning">
<td colspan="7" mat-cell *matCellDef>
<td colspan="7" mat-cell *matCellDef class="no-top-border">
<div class="residential-warning">
<div class="residential-warning-text">
The proposed residential structure and its total floor area must be allowed under the ALC Act and/or ALR Use Regulation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,11 @@
margin: rem(10) 0 rem(20) rem(5);
line-height: rem(24);
}

.no-top-border {
border-top-style: hidden;
}

.no-bottom-border {
border-bottom-style: hidden;
}

0 comments on commit 0f54acd

Please sign in to comment.