Skip to content

Commit

Permalink
Merge pull request #1708 from bcgov/feature/ALCS-1925
Browse files Browse the repository at this point in the history
No Data -> Not Applicable for Owner/Transferee Organization Fields
  • Loading branch information
dhaselhan authored May 27, 2024
2 parents 7a8e965 + c49e852 commit 4ead5bb
Show file tree
Hide file tree
Showing 32 changed files with 45 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
}

.no-data-text {
text-align: center;
color: colors.$grey;
padding-top: 12px;

.error {
justify-content: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ <h5>Government Parcel Contact</h5>
</div>
<div [attr.data-testid]="'parcel-' + (parcelInd + 1) + '-owner-organization'">
{{ owner.organizationName }}
<app-no-data *ngIf="!owner.organizationName"></app-no-data>
<div class="no-data" *ngIf="!owner.organizationName">
<div *ngIf="owner.type.code === 'INDV'" class="no-data-text">Not Applicable</div>
<div *ngIf="owner.type.code !== 'INDV'" class="no-data-text">No Data</div>
</div>
</div>
<div [attr.data-testid]="'parcel-' + (parcelInd + 1) + '-owner-phone-number'">
{{ owner.phoneNumber }}
Expand All @@ -130,7 +133,10 @@ <h5>Government Parcel Contact</h5>
<a *ngIf="owner.corporateSummary" (click)="openFile(owner.corporateSummary)">
{{ owner.corporateSummary.fileName }}
</a>
<app-no-data *ngIf="!owner.corporateSummary"></app-no-data>
<div class="no-data" *ngIf="!owner.corporateSummary">
<div *ngIf="owner.type.code === 'INDV'" class="no-data-text">Not Applicable</div>
<div *ngIf="owner.type.code !== 'INDV'" class="no-data-text">No Data</div>
</div>
</div>
</ng-container>
<app-no-data *ngIf="parcel.owners.length === 0"></app-no-data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h3>Transferee(s)</h3>
<div>{{ transferee.displayName }}</div>
<div>
{{ transferee.organizationName }}
<app-no-data *ngIf="!transferee.organizationName"></app-no-data>
<div *ngIf="!transferee.organizationName" class="no-data-text">Not Applicable</div>
</div>
<div>
<span *ngIf="transferee.phoneNumber">{{ transferee.phoneNumber | mask: '(000) 000-0000' }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@
}

.no-data-text {
text-align: center;
color: colors.$grey;
padding-top: 12px;

.error {
justify-content: center;
}
}

.table-wrapper {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

.no-data-text {
text-align: center;
color: colors.$grey;
color: colors.$grey-dark;
padding-top: rem(12);

.error {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h5>Government Parcel Contact</h5>
</div>
<div [attr.data-testid]="'parcel-' + (parcelInd + 1) + '-owner-organization'">
<span *ngIf="owner.organizationName"></span>{{ owner.organizationName }}
<app-no-data [showRequired]="false" *ngIf="!owner.organizationName"></app-no-data>
<div *ngIf="!owner.organizationName" class="no-data-text">Not Applicable</div>
</div>
<div [attr.data-testid]="'parcel-' + (parcelInd + 1) + '-owner-phone-number'">
{{ owner.phoneNumber ?? '' | mask: '(000) 000-0000' }}
Expand All @@ -166,8 +166,8 @@ <h5>Government Parcel Contact</h5>
</div>
<div [attr.data-testid]="'parcel-' + (parcelInd + 1) + '-owner-corporate-summary'">
<a *ngIf="owner.corporateSummary" (click)="onOpenFile(owner.corporateSummary)">{{
owner.corporateSummary.fileName
}}</a>
owner.corporateSummary.fileName
}}</a>
<div class="no-data" *ngIf="!owner.corporateSummary">
<div class="no-data-text">Not Applicable</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@
font-weight: 600;
}

.no-data-text {
text-align: center;
color: colors.$grey;
padding-top: rem(12);

.error {
justify-content: center;
}
}

.custom-mat-expansion-panel-header {
height: fit-content;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,21 @@ <h5>Government Parcel Contact</h5>
<div>{{ owner.displayName }}</div>
<div>
<span *ngIf="owner.organizationName"></span>{{ owner.organizationName }}
<app-no-data [showRequired]="false" *ngIf="!owner.organizationName"></app-no-data>
<div class="no-data" *ngIf="!owner.organizationName">
<div *ngIf="owner.type.code === 'INDV'" class="no-data-text">Not Applicable</div>
<div *ngIf="owner.type.code !== 'INDV'" class="no-data-text">No Data</div>
</div>
</div>
<div>{{ owner.phoneNumber ?? '' | mask : '(000) 000-0000' }}</div>
<div>{{ owner.email }}</div>
<div>
<a *ngIf="owner.corporateSummary" (click)="onOpenFile(owner.corporateSummary)">{{
owner.corporateSummary.fileName
}}</a>
<app-no-data [showRequired]="false" *ngIf="!owner.corporateSummary"></app-no-data>
owner.corporateSummary.fileName
}}</a>
<div class="no-data" *ngIf="!owner.corporateSummary">
<div *ngIf="owner.type.code === 'INDV'" class="no-data-text">Not Applicable</div>
<div *ngIf="owner.type.code !== 'INDV'" class="no-data-text">No Data</div>
</div>
</div>
</ng-container>
<div class="full-width">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@use '../../../../../styles/functions' as *;
@use '../../../../../styles/colors';

.parcel-header {
display: flex;
Expand Down Expand Up @@ -41,3 +42,7 @@
.crown-land {
text-transform: capitalize;
}

.no-data-text {
color: colors.$grey-dark;
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ <h4>All Transferees</h4>
<span *ngIf="element.organizationName">
{{ element.organizationName }}
</span>
<span class="no-data" *ngIf="!element.organizationName"> No Data </span>
<span class="no-data-text" *ngIf="!element.organizationName"> Not Applicable </span>
</td>
</ng-container>

<ng-container matColumnDef="phone">
<th mat-header-cell *matHeaderCellDef>Phone</th>
<td mat-cell *matCellDef="let element">
{{ element.phoneNumber | mask : '(000) 000-0000' }}
{{ element.phoneNumber | mask: '(000) 000-0000' }}
</td>
</ng-container>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
padding: rem(8);
}

.no-data-text {
color: colors.$grey-dark;
}

.actions-cell {
button:not(:last-child) {
margin-right: rem(12) !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h3>2. Identify Transferee(s)</h3>
<div>{{ transferee.displayName }}</div>
<div>
{{ transferee.organizationName }}
<app-no-data *ngIf="!transferee.organizationName" [showRequired]="false"></app-no-data>
<div *ngIf="!transferee.organizationName" class="no-data-text">Not Applicable</div>
</div>
<div>
<span *ngIf="transferee.phoneNumber">{{ transferee.phoneNumber | mask : '(000) 000-0000' }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@
}

.no-data-text {
text-align: center;
color: colors.$grey;
padding-top: rem(12);

.error {
justify-content: center;
}
color: colors.$grey-dark;
}

.custom-mat-expansion-panel-header {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h5>Government Parcel Contact</h5>
<div>{{ owner.displayName }}</div>
<div>
<span *ngIf="owner.organizationName"></span>{{ owner.organizationName }}
<app-no-data [showRequired]="false" *ngIf="!owner.organizationName"></app-no-data>
<div *ngIf="!owner.organizationName" class="no-data-text">Not Applicable</div>
</div>
</ng-container>
<div class="full-width">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@

.no-data-text {
text-align: center;
color: colors.$grey;
padding-top: rem(12);
color: colors.$grey-dark;

.error {
justify-content: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h5>Government Parcel Contact</h5>
<div>{{ owner.displayName }}</div>
<div>
<span *ngIf="owner.organizationName"></span>{{ owner.organizationName }}
<app-no-data [showRequired]="false" *ngIf="!owner.organizationName"></app-no-data>
<div *ngIf="!owner.organizationName" class="no-data-text">Not Applicable</div>
</div>
</ng-container>
<div class="full-width">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@

.no-data-text {
text-align: center;
color: colors.$grey;
padding-top: rem(12);
color: colors.$grey-dark;

.error {
justify-content: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
</ng-container>

<td mat-cell *matCellDef="let element">
<app-no-data [showRequired]="false" *ngIf="!element.organizationName"></app-no-data>
<div class="no-data" *ngIf="!element.organizationName">
<div class="no-data-text">Not Applicable</div>
</div>
<span>{{ element.organizationName }}</span>
</td>
</ng-container>
Expand All @@ -39,8 +41,8 @@
<td mat-cell *matCellDef="let element">
<div *ngIf="element.ownershipTypeCode !== PARCEL_OWNERSHIP_TYPES.CROWN">
<a *ngIf="element.corporateSummary" (click)="onOpenFile(element.corporateSummary)">{{
element.corporateSummary.fileName
}}</a>
element.corporateSummary.fileName
}}</a>
<div class="no-data" *ngIf="!element.corporateSummary">
<div class="no-data-text">Not Applicable</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
}
}

.no-data-text {
text-align: center;
color: colors.$grey-dark;
padding-top: rem(12);
}

.no-data-text {
color: colors.$grey-dark;
text-align: left;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified services/templates/pdf/submissions/excl-submission-template.docx
Binary file not shown.
Binary file modified services/templates/pdf/submissions/incl-submission-template.docx
Binary file not shown.
Binary file modified services/templates/pdf/submissions/naru-submission-template.docx
Binary file not shown.
Binary file modified services/templates/pdf/submissions/nfu-submission-template.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified services/templates/pdf/submissions/roso-submission-template.docx
Binary file not shown.
Binary file modified services/templates/pdf/submissions/subd-submission-template.docx
Binary file not shown.
Binary file modified services/templates/pdf/submissions/tur-submission-template.docx
Binary file not shown.

0 comments on commit 4ead5bb

Please sign in to comment.