From a1d18eebc4f66922b21febf73734a5f65059a804 Mon Sep 17 00:00:00 2001 From: Pyry Koivisto Date: Tue, 31 Dec 2024 13:42:35 +0200 Subject: [PATCH] VKT(Frontend): Improve ClerkEnrollmentContactRequestPage layout [deploy] --- .../vkt/public/i18n/fi-FI/examiner.json | 6 +- .../ClerkEnrollmentContactRequestPage.tsx | 92 ++++++++++--------- .../pages/_examiner-contact-request-page.scss | 15 +++ frontend/packages/vkt/src/styles/styles.scss | 3 +- 4 files changed, 68 insertions(+), 48 deletions(-) create mode 100644 frontend/packages/vkt/src/styles/pages/_examiner-contact-request-page.scss diff --git a/frontend/packages/vkt/public/i18n/fi-FI/examiner.json b/frontend/packages/vkt/public/i18n/fi-FI/examiner.json index 6b8f09ffb..90027fad2 100644 --- a/frontend/packages/vkt/public/i18n/fi-FI/examiner.json +++ b/frontend/packages/vkt/public/i18n/fi-FI/examiner.json @@ -23,12 +23,12 @@ "email": "Sähköpostiosoite", "examination": "Tutkinto", "phoneNumber": "Puhelinnumero", - "partialExams": "Osakokeet, jotka haluan suorittaa", - "previousExams": "Osallistunut aiempiin tutkintoihin?", + "partialExams": "Osakokeet, jotka haluaa suorittaa", + "previousExams": "Osallistunut aiempiin tutkintoihin", "createEnrollment": "Luo ilmoittautuminen", "contactDetails": "Yhteydenoton tiedot", "message": "Viesti", - "wantFullExam": "Haluan suorittaa koko tutkinnon?", + "wantFullExam": "Haluaa suorittaa koko tutkinnon", "deleteAreYouSure": "Haluatko varmasti poistaa yhteydenoton?", "deleteDescription": "Toimintoa ei voi peruuttaa!", "deleteContactRequest": "Poista yhteydenotto", diff --git a/frontend/packages/vkt/src/pages/ClerkEnrollmentContactRequestPage.tsx b/frontend/packages/vkt/src/pages/ClerkEnrollmentContactRequestPage.tsx index 2db19f82a..e95b82978 100644 --- a/frontend/packages/vkt/src/pages/ClerkEnrollmentContactRequestPage.tsx +++ b/frontend/packages/vkt/src/pages/ClerkEnrollmentContactRequestPage.tsx @@ -198,12 +198,12 @@ export const ClerkEnrollmentContactRequestPage: FC = () => { }; return ( - +
@@ -214,54 +214,58 @@ export const ClerkEnrollmentContactRequestPage: FC = () => { -

{t('contactFields')}

-
-
-

{t('lastName')}

- {enrollment.lastName} -
-
-

{t('firstName')}

- {enrollment.firstName} -
-
-

{t('email')}

- {enrollment.email} -
-
-

{t('phoneNumber')}

- {enrollment.phoneNumber} +
+

{t('contactFields')}

+
+
+

{t('lastName')}:

+ {enrollment.lastName} +
+
+

{t('firstName')}:

+ {enrollment.firstName} +
+
+

{t('email')}:

+ {enrollment.email} +
+
+

{t('phoneNumber')}:

+ {enrollment.phoneNumber} +
-

{t('contactDetails')}

-

{t('wantFullExam')}

- - {enrollment.isFullExam - ? translateCommon('yes') - : translateCommon('no')} - -
- {!enrollment.isFullExam && ( -
-

{t('partialExams')}

- {enrollment.partialExamSelection} +

{t('contactDetails')}

+
+

{t('wantFullExam')}:

+ + {enrollment.isFullExam + ? translateCommon('yes') + : translateCommon('no')} + +
+ {!enrollment.isFullExam && ( +
+

{t('partialExams')}:

+ {enrollment.partialExamSelection} +
+ )} +
+

{t('previousExams')}:

+ + {enrollment.hasPreviousEnrollment + ? translateCommon('yes') + : translateCommon('no')} + +
+
+

{t('message')}:

+ {enrollment.message}
- )} -
-

{t('previousExams')}

- - {enrollment.hasPreviousEnrollment - ? translateCommon('yes') - : translateCommon('no')} - -
-
-

{t('message')}

- {enrollment.message}
diff --git a/frontend/packages/vkt/src/styles/pages/_examiner-contact-request-page.scss b/frontend/packages/vkt/src/styles/pages/_examiner-contact-request-page.scss new file mode 100644 index 000000000..589e6ae1e --- /dev/null +++ b/frontend/packages/vkt/src/styles/pages/_examiner-contact-request-page.scss @@ -0,0 +1,15 @@ +.examiner-contact-request-page { + flex: 1; + + & &__grid-container { + display: block; + + &__heading { + margin: 2rem 0 1rem 1rem; + } + } + + & &__paper { + padding: 3rem; + } +} diff --git a/frontend/packages/vkt/src/styles/styles.scss b/frontend/packages/vkt/src/styles/styles.scss index 513cc39af..ed1f10f52 100644 --- a/frontend/packages/vkt/src/styles/styles.scss +++ b/frontend/packages/vkt/src/styles/styles.scss @@ -25,8 +25,9 @@ @import 'pages/clerk-enrollment-overview-page'; @import 'pages/clerk-exam-event-overview-page'; @import 'pages/clerk-homepage'; -@import 'pages/examiner-exam-event-page'; @import 'pages/examiner-details-page'; +@import 'pages/examiner-contact-request-page'; +@import 'pages/examiner-exam-event-page'; @import 'pages/examiner-homepage'; @import 'pages/logout-success-page'; @import 'pages/not-found-page';