diff --git a/alcs-frontend/src/app/features/application/applicant-info/application-details/naru-details/naru-details.component.html b/alcs-frontend/src/app/features/application/applicant-info/application-details/naru-details/naru-details.component.html index 70b9dc1b91..24cd9b7a18 100644 --- a/alcs-frontend/src/app/features/application/applicant-info/application-details/naru-details/naru-details.component.html +++ b/alcs-frontend/src/app/features/application/applicant-info/application-details/naru-details/naru-details.component.html @@ -113,9 +113,7 @@ -
- {{ i + 1 }} -
+
#{{ i + 1 }}
{{ existingResidence.floorArea }} m2
@@ -130,9 +128,7 @@
Total Floor Area
Description
-
- {{ i + 1 }} -
+
#{{ i + 1 }}
{{ proposedResidence.floorArea }} m2
diff --git a/portal-frontend/src/app/features/applications/application-details/naru-details/naru-details.component.html b/portal-frontend/src/app/features/applications/application-details/naru-details/naru-details.component.html index 0ec5fa11cf..4f8423663c 100644 --- a/portal-frontend/src/app/features/applications/application-details/naru-details/naru-details.component.html +++ b/portal-frontend/src/app/features/applications/application-details/naru-details/naru-details.component.html @@ -151,9 +151,7 @@
-
- {{ i + 1 }} -
+
#{{ i + 1 }}
{{ existingResidence.floorArea }} m2
@@ -168,8 +166,13 @@
@@ -187,9 +190,7 @@
-
- {{ i + 1 }} -
+
#{{ i + 1 }}
{{ proposedResidence.floorArea }} m2
@@ -204,8 +205,13 @@
diff --git a/portal-frontend/src/app/features/applications/edit-submission/proposal/naru-proposal/naru-proposal.component.html b/portal-frontend/src/app/features/applications/edit-submission/proposal/naru-proposal/naru-proposal.component.html index fa94eb7893..75376d9dbf 100644 --- a/portal-frontend/src/app/features/applications/edit-submission/proposal/naru-proposal/naru-proposal.component.html +++ b/portal-frontend/src/app/features/applications/edit-submission/proposal/naru-proposal/naru-proposal.component.html @@ -455,7 +455,7 @@

Proposal

- + @@ -527,7 +527,7 @@

Proposal

Existing Residence{{ i + 1 }}#{{ i + 1 }}
- + diff --git a/portal-frontend/src/app/features/public/application/submission/naru-details/naru-details.component.html b/portal-frontend/src/app/features/public/application/submission/naru-details/naru-details.component.html index fc54d54ae4..1485d14e1f 100644 --- a/portal-frontend/src/app/features/public/application/submission/naru-details/naru-details.component.html +++ b/portal-frontend/src/app/features/public/application/submission/naru-details/naru-details.component.html @@ -127,7 +127,7 @@ -
+
Existing Residence
Total Floor Area
Description
@@ -137,32 +137,68 @@
-
- {{ i + 1 }} -
+
#{{ i + 1 }}
{{ existingResidence.floorArea }} m2
{{ existingResidence.description }}
+ +
Total Floor Area of Existing Residence(s) - If Applicable
+ +
+ +
+
+ + +
-
+
Proposed Residence
Total Floor Area
Description
-
- {{ i + 1 }} -
+
#{{ i + 1 }}
{{ proposedResidence.floorArea }} m2
{{ proposedResidence.description }}
+ +
Total Floor Area of Proposed Residence(s)
+ +
+ +
+
+ + +
Proposal Map / Site Plan
diff --git a/portal-frontend/src/app/features/public/application/submission/naru-details/naru-details.component.ts b/portal-frontend/src/app/features/public/application/submission/naru-details/naru-details.component.ts index 29231ca6fb..f614191fba 100644 --- a/portal-frontend/src/app/features/public/application/submission/naru-details/naru-details.component.ts +++ b/portal-frontend/src/app/features/public/application/submission/naru-details/naru-details.component.ts @@ -1,10 +1,11 @@ -import { Component, Input } from '@angular/core'; +import { Component, HostListener, Input } from '@angular/core'; import { Router } from '@angular/router'; import { PublicApplicationSubmissionDto } from '../../../../../services/public/public-application.dto'; import { PublicDocumentDto } from '../../../../../services/public/public.dto'; import { PublicService } from '../../../../../services/public/public.service'; import { DOCUMENT_TYPE } from '../../../../../shared/dto/document.dto'; import { openFileInline } from '../../../../../shared/utils/file'; +import { MOBILE_BREAKPOINT } from '../../../../../shared/utils/breakpoints'; @Component({ selector: 'app-naru-details[applicationSubmission]', @@ -15,6 +16,8 @@ export class NaruDetailsComponent { proposalMap: PublicDocumentDto[] = []; buildingPlans: PublicDocumentDto[] = []; + isMobile = window.innerWidth <= MOBILE_BREAKPOINT; + @Input() applicationSubmission!: PublicApplicationSubmissionDto; @Input() set applicationDocuments(documents: PublicDocumentDto[]) { this.proposalMap = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.PROPOSAL_MAP); @@ -32,4 +35,9 @@ export class NaruDetailsComponent { openFileInline(res.url, file.fileName); } } + + @HostListener('window:resize', ['$event']) + onWindowResize() { + this.isMobile = window.innerWidth <= MOBILE_BREAKPOINT; + } }
Proposed Residence{{ i + 1 }}#{{ i + 1 }}