Skip to content

Commit

Permalink
#470: Change calendar input label and add tooltip info icon for more …
Browse files Browse the repository at this point in the history
…information about the input.
  • Loading branch information
benitsch committed Jun 28, 2024
1 parent f9b1dab commit 5b203b9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/components/TimelineList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,11 @@ Licensed under the Elastic License 2.0. */
</div>
<div class="mb-3 flex gap-5">
<div>
{{ $t('timeline.labels.relativeDate') }}:
<span>{{ $t('timeline.labels.relativeDate') }}:</span>
<span
v-tooltip.bottom="$t('tooltips.timeline.relativeDateInfo')"
class="pi pi-info-circle color-primary mx-1"
></span>
<Calendar
v-model="filterRelativeStartDate"
:min-date="new Date(studyStore.study.plannedStart as string)"
Expand Down
5 changes: 4 additions & 1 deletion src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@

"timeline": {
"labels": {
"relativeDate": "Relatives Datum des Studienbeginns",
"relativeDate": "Registrierungsdatum",
"studyStart": "Studienstart",
"studyEnd": "Studienende",
"plannedStart": "Geplanter Start",
Expand Down Expand Up @@ -1055,6 +1055,9 @@
"copyStudyUrl": "Studie teilen",
"showStudy": "Klicken Sie auf die Zeile, um auf die Studiendetails zu kommen.",
"goToStudy": "Studie öffnen"
},
"timeline": {
"relativeDateInfo": "Damit wird der Zeitpunkt simuliert, an dem ein Teilnehmer in die Studie eintritt."
}
},

Expand Down
5 changes: 4 additions & 1 deletion src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@

"timeline": {
"labels": {
"relativeDate": "Relative study start date",
"relativeDate": "Enrollment date",
"studyStart": "Study start",
"studyEnd": "Study end",
"plannedStart": "Planned Start",
Expand Down Expand Up @@ -1055,6 +1055,9 @@
"copyStudyUrl": "Share study",
"showStudy": "Click on row to show study details page.",
"goToStudy": "Go to study"
},
"timeline": {
"relativeDateInfo": "This simulates the point in time when a participant enters the study."
}
},

Expand Down

0 comments on commit 5b203b9

Please sign in to comment.