From cd330c290d911cbdae32c8940c9d7a5dff855a4f Mon Sep 17 00:00:00 2001
From: AleksanderSklorz <115619721+AleksanderSklorz@users.noreply.github.com>
Date: Tue, 28 Oct 2025 08:33:01 +0100
Subject: [PATCH] [ACS-10290] sr personal files my profile page input fields
have no associated label (#4871)
* [ACS-10290] Fix association job title field with label
* [ACS-10290] Fixed association between fields and labels on profile page
---
.../view-profile/view-profile.component.html | 101 ++++++++++++++----
.../view-profile/view-profile.component.scss | 2 +
2 files changed, 85 insertions(+), 18 deletions(-)
diff --git a/projects/aca-content/src/lib/components/view-profile/view-profile.component.html b/projects/aca-content/src/lib/components/view-profile/view-profile.component.html
index 21dffa64e..6519e7ddc 100644
--- a/projects/aca-content/src/lib/components/view-profile/view-profile.component.html
+++ b/projects/aca-content/src/lib/components/view-profile/view-profile.component.html
@@ -76,25 +76,47 @@
-
{{'APP.EDIT_PROFILE.JOB_TITLE' | translate}}
+
@if (generalSectionButtonsToggle) {
{{personDetails?.jobTitle}}
} @else {
-
+
}
-
{{'APP.EDIT_PROFILE.LOCATION' | translate}}
+
@if (generalSectionButtonsToggle) {
{{personDetails?.location}}
} @else {
-
+
}
-
{{'APP.EDIT_PROFILE.TELEPHONE' | translate}}
+
@if (generalSectionButtonsToggle) {
{{personDetails?.telephone}}
} @else {
@@ -104,7 +126,8 @@
value=""
formControlName="telephone"
class="app-profile-general-dropdown-input-details app-selected"
- aria-describedby="app-view-profile-phone-error-message">
+ aria-describedby="app-view-profile-phone-error-message"
+ id="app-view-profile-telephone">
}
@if (profileForm.controls['telephone'].errors) {
@@ -114,7 +137,11 @@
-
{{'APP.EDIT_PROFILE.MOBILE' | translate}}
+
@if (generalSectionButtonsToggle) {
{{personDetails?.mobile}}
} @else {
@@ -123,7 +150,8 @@
value=""
formControlName="mobile"
class="app-profile-general-dropdown-input-details app-selected"
- aria-describedby="app-view-profile-mobile-error-message">
+ aria-describedby="app-view-profile-mobile-error-message"
+ id="app-view-profile-mobile">
}
@if (profileForm.controls['mobile'].errors) {
@@ -180,34 +208,65 @@
-
{{'APP.EDIT_PROFILE.NAME' | translate}}
+
@if (contactSectionButtonsToggle) {
{{personDetails?.company?.organization}}
} @else {
-
+
}
-
{{'APP.EDIT_PROFILE.ADDRESS' | translate}}
+
@if (contactSectionButtonsToggle) {
{{personDetails?.company?.address1}}
} @else {
-
+
}
-
{{'APP.EDIT_PROFILE.POSTCODE' | translate}}
+
@if (contactSectionButtonsToggle) {
{{personDetails?.company?.postcode}}
} @else {
-
+
}
-
{{'APP.EDIT_PROFILE.TELEPHONE' | translate}}
+
@if (contactSectionButtonsToggle) {
{{personDetails?.company?.telephone}}
} @else {
@@ -216,7 +275,8 @@
value=""
formControlName="companyTelephone"
class="app-profile-general-dropdown-input-details app-selected"
- aria-describedby="app-view-profile-company-phone-error-message">
+ aria-describedby="app-view-profile-company-phone-error-message"
+ id="app-view-profile-company-telephone">
}
@if (profileForm.controls['companyTelephone'].errors) {
@@ -226,7 +286,11 @@
-
{{'APP.EDIT_PROFILE.EMAIL' | translate}}
+
@if (contactSectionButtonsToggle) {
{{personDetails?.company?.email}}
} @else {
@@ -235,7 +299,8 @@
value=""
formControlName="companyEmail"
class="app-profile-general-dropdown-input-details app-selected"
- aria-describedby="app-view-profile-company-email-error-message">
+ aria-describedby="app-view-profile-company-email-error-message"
+ id="app-view-profile-company-email">
}
@if (profileForm.controls['companyEmail'].errors) {
diff --git a/projects/aca-content/src/lib/components/view-profile/view-profile.component.scss b/projects/aca-content/src/lib/components/view-profile/view-profile.component.scss
index 7d2f86050..53d703154 100644
--- a/projects/aca-content/src/lib/components/view-profile/view-profile.component.scss
+++ b/projects/aca-content/src/lib/components/view-profile/view-profile.component.scss
@@ -107,6 +107,8 @@ app-view-profile {
width: 20%;
font-weight: 400;
letter-spacing: 0.5px;
+ margin-top: 1.33em;
+ margin-bottom: 1.33em;
}
.app-profile-general-dropdown-details {