From 2fc610ba46c407d15cb9c20d332122854e770c00 Mon Sep 17 00:00:00 2001 From: SanttuA Date: Thu, 7 Dec 2023 12:58:14 +0200 Subject: [PATCH] Added asterisk meaning to reservation info page --- app/i18n/messages/en.json | 1 + app/i18n/messages/fi.json | 1 + app/i18n/messages/sv.json | 1 + .../reservation-information/ReservationInformation.js | 3 +++ .../reservation-information/ReservationInformation.spec.js | 1 + 5 files changed, 7 insertions(+) diff --git a/app/i18n/messages/en.json b/app/i18n/messages/en.json index a7c19d5ef..4b2363254 100644 --- a/app/i18n/messages/en.json +++ b/app/i18n/messages/en.json @@ -102,6 +102,7 @@ "common.save": "Save", "common.saving": "Saving...", "common.select": "Select", + "common.starFieldsAreRequired": "The fields marked with an asterisk (*) are mandatory.", "common.taxesTotal": "Total taxes", "common.taxlessTotal": "Tax-free total", "common.total": "total", diff --git a/app/i18n/messages/fi.json b/app/i18n/messages/fi.json index acc9f5b63..1c741ff7c 100644 --- a/app/i18n/messages/fi.json +++ b/app/i18n/messages/fi.json @@ -102,6 +102,7 @@ "common.save": "Tallenna", "common.saving": "Tallennetaan...", "common.select": "Valitse", + "common.starFieldsAreRequired": "Tähdellä (*) merkityt tiedot ovat pakollisia.", "common.taxesTotal": "Verot yhteensä", "common.taxlessTotal": "Veroton yhteensä", "common.total": "yhteensä", diff --git a/app/i18n/messages/sv.json b/app/i18n/messages/sv.json index b60561f88..1c06b9c7f 100644 --- a/app/i18n/messages/sv.json +++ b/app/i18n/messages/sv.json @@ -102,6 +102,7 @@ "common.save": "Spara", "common.saving": "Sparas...", "common.select": "Välj", + "common.starFieldsAreRequired": "Uppgifterna markerade med en asterisk (*) är obligatoriska.", "common.taxesTotal": "Totala skatter", "common.taxlessTotal": "Skattefritt totalt", "common.total": "totalt", diff --git a/app/pages/reservation/reservation-information/ReservationInformation.js b/app/pages/reservation/reservation-information/ReservationInformation.js index a5e993900..e4605c980 100644 --- a/app/pages/reservation/reservation-information/ReservationInformation.js +++ b/app/pages/reservation/reservation-information/ReservationInformation.js @@ -186,6 +186,9 @@ class ReservationInformation extends Component {

{t('ConfirmReservationModal.formInfo')}

)} + {!resource.needManualConfirmation && ( +

{t('common.starFieldsAreRequired')}

+ )} ); } diff --git a/app/pages/reservation/reservation-information/ReservationInformation.spec.js b/app/pages/reservation/reservation-information/ReservationInformation.spec.js index 69c34fdb9..9b573cdc1 100644 --- a/app/pages/reservation/reservation-information/ReservationInformation.spec.js +++ b/app/pages/reservation/reservation-information/ReservationInformation.spec.js @@ -65,6 +65,7 @@ describe('pages/reservation/reservation-information/ReservationInformation', () const infoTexts = getWrapper({ resource }).find('.app-ReservationInformation__info-texts'); expect(infoTexts).toHaveLength(1); expect(infoTexts.text()).toContain('common.contactPurposeHelp'); + expect(infoTexts.text()).toContain('common.starFieldsAreRequired'); }); test('renders an ReservationInformationForm element', () => {