From 9ea3cdc03c767948a93ddf57951ec3146ce1d4a6 Mon Sep 17 00:00:00 2001 From: Mohamed-Hacene Date: Thu, 3 Oct 2024 12:33:35 +0200 Subject: [PATCH] feat: improve layout --- frontend/messages/en.json | 5 +++-- .../components/Forms/ModelForm/EntityAssessmentForm.svelte | 3 ++- .../(internal)/entity-assessments/[id=uuid]/+page.svelte | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 7be636d6b..8a047525b 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -739,7 +739,7 @@ "createUserHelpText": "Create or link a third party user to the representative based on the email", "nameDuplicate": "Name already exists", "noAnswer": "No answer", - "entityAssessmentAuthorHelpText": "The representative who is responsible for questionnaire completion", + "entityAssessmentRepresentativesHelpText": "The third party users who are responsible for questionnaire completion", "sendQuestionnaire": "Send questionnaire", "sureToSendMail": "Are you sure you want to send the mail?", "mailSuccessfullySent": "The mail has been successfully sent", @@ -755,5 +755,6 @@ "theFollowingControlsWillBeAddedColon": "The following controls will be added:", "ShowAllNodesMessage": "Show all", "ShowOnlyAssessable": "Only assessable", - "NoPreviewMessage": "No preview available." + "NoPreviewMessage": "No preview available.", + "entityAssessmentEvidenceHelpText": "An external questionnaire" } diff --git a/frontend/src/lib/components/Forms/ModelForm/EntityAssessmentForm.svelte b/frontend/src/lib/components/Forms/ModelForm/EntityAssessmentForm.svelte index c49383b70..dc8ed0042 100644 --- a/frontend/src/lib/components/Forms/ModelForm/EntityAssessmentForm.svelte +++ b/frontend/src/lib/components/Forms/ModelForm/EntityAssessmentForm.svelte @@ -153,7 +153,7 @@ multiple options={getOptions({ objects: model.foreignKeys['representatives'], label: 'email' })} field="representatives" - helpText={m.entityAssessmentAuthorHelpText()} + helpText={m.entityAssessmentRepresentativesHelpText()} cacheLock={cacheLocks['representatives']} bind:cachedValue={formDataCache['representatives']} label={m.representatives()} @@ -187,6 +187,7 @@ cacheLock={cacheLocks['evidence']} bind:cachedValue={formDataCache['evidence']} label={m.evidence()} + helpText={m.entityAssessmentEvidenceHelpText()} />