diff --git a/frontend/src/lang/fr.json b/frontend/src/lang/fr.json index 54bdee72414e8556a5189524d1dafa7f97b4eda4..b0a40ba3a239d40211fa7586f27e591e85ae31f2 100644 --- a/frontend/src/lang/fr.json +++ b/frontend/src/lang/fr.json @@ -253,7 +253,8 @@ "start": "Continue", "study": "Étude", "study.note": "Nom de l'étude à laquelle vous participez", - "study.placeholder": "Nom de l'étude" + "study.placeholder": "Nom de l'étude", + "testText": "Vous allez passer un test de vocabulaire. Cliquez sur le bouton suivent pour commencer." }, "timeslots": { "cesttime": "Heure CET (Bruxelles)", @@ -394,7 +395,8 @@ "title": "Résultat moyen: ", "loading": "Calcul en cours...", "error": "Erreur lors du calcul du score" - } + }, + "backToHomePage": "Retour à la page d'accueil" }, "tests": { "taskTests": "Tests de langue", diff --git a/frontend/src/routes/register/[[studyId]]/+page.svelte b/frontend/src/routes/register/[[studyId]]/+page.svelte index e02d78a283ab82e221226e4caf3ce557afaccf6d..b1c4344cc3e2e9034e78c0ac522a42a6c36ffe05 100644 --- a/frontend/src/routes/register/[[studyId]]/+page.svelte +++ b/frontend/src/routes/register/[[studyId]]/+page.svelte @@ -596,12 +596,13 @@ </div> {:else if current_step == 7} <div class="text-center"> + <p>{$t('register.testText')}</p> <a class="button mt-4 w-full" href="/studies/{study?.id || user?.studies_id[0]}"> {$t('register.continueButton')} </a> - <button class="button mt-4 w-full" onclick={() => (document.location.href = '/')}> - {$t('register.startFastButton')} - </button> + <!-- <button class="button mt-4 w-full" onclick={() => (document.location.href = '/')}> --> + <!-- {$t('register.startFastButton')} --> + <!-- </button> --> </div> {:else if current_step == 8}{:else if current_step == 9} <div class="text-center"> diff --git a/frontend/src/routes/studies/[[id]]/+page.svelte b/frontend/src/routes/studies/[[id]]/+page.svelte index 358954930a8a5e2eebebdc4906cf7e764e181d88..3bf196147168d49eb831195492a7fa7fcca6e556 100644 --- a/frontend/src/routes/studies/[[id]]/+page.svelte +++ b/frontend/src/routes/studies/[[id]]/+page.svelte @@ -161,16 +161,16 @@ </div> {/if} {/key} + <!-- {:else if current_step == study.tests.length + 2} --> + <!-- <div class="flex flex-col h-full"> --> + <!-- <EndQuestions study_id={study.id} {rid} onFinish={() => current_step++} /> --> + <!-- </div> --> {:else if current_step == study.tests.length + 2} - <div class="flex flex-col h-full"> - <EndQuestions study_id={study.id} {rid} onFinish={() => current_step++} /> - </div> - {:else if current_step == study.tests.length + 3} <div class="flex flex-col h-full"> <div class="flex-grow text-center mt-16"> <span>{$t('studies.complete')}</span> - <div class="mt-4"> + <div class="my-4"> {$t('studies.score.title')} {#await getTestEntriesScoreAPI(fetch, rid)} {$t('studies.score.loading')} @@ -182,6 +182,9 @@ {/if} {/await} </div> + + <!-- TODO: Only if registration was required --> + <a class="btn btn-primary" href="/">{$t('studies.backToHomePage')}</a> </div> <dl class="text-sm">