Skip to content

Commit

Permalink
💄 Link to registration in signup
Browse files Browse the repository at this point in the history
  • Loading branch information
jonastahl authored and FungOliver committed Oct 20, 2024
1 parent 1563b23 commit d609e8c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@
{{ t("ViewCompetition.registration_over") }}
</p>
<template v-else>
<div
class="mb-2 w-12 flex flex-row justify-content-between align-items-center"
>
<span>
{{ t("ViewCompetition.warning_register_before_signup") }}
</span>
<Button
:label="t('general.register')"
@click="router.push({ name: 'Player registration' })"
/>
</div>
<divider />
<ViewSignUpForm />
</template>

Expand All @@ -39,6 +51,8 @@ import ViewTable from "@/components/views/competition/signup/ViewTable.vue"
import ViewSignUpForm from "@/components/views/competition/signup/ViewSignUpForm.vue"
import { Competition } from "@/interfaces/competition"
import { useI18n } from "vue-i18n"
import { router } from "@/main"
import Button from "primevue/button"
const { t } = useI18n()
Expand Down
3 changes: 2 additions & 1 deletion src/main/webui/src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@
"playerB": "Spieler B",
"prepare": "Turnier vorbereiten",
"selectPlayer": "Wähle einen Spieler aus",
"searchPlayer": "Suche nach Spielern..."
"searchPlayer": "Suche nach Spielern...",
"warning_register_before_signup": "Spieler müssen vor der Anmeldung registriert werden"
},
"Player": {
"too_many_results": "Die Eingabe ist nicht eindeutig",
Expand Down
3 changes: 2 additions & 1 deletion src/main/webui/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@
"playerB": "Player B",
"prepare": "Prepare tournament",
"selectPlayer": "Select a player",
"searchPlayer": "Search for players..."
"searchPlayer": "Search for players...",
"warning_register_before_signup": "Players need to be registered before signup"
},
"Player": {
"too_many_results": "Result ist not unique enough",
Expand Down

0 comments on commit d609e8c

Please sign in to comment.