Skip to content

Commit

Permalink
add links for registration
Browse files Browse the repository at this point in the history
  • Loading branch information
vikibrezinova committed Nov 11, 2023
1 parent 965be71 commit bb2ef71
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/pages/strom/akcie/[[...params]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,21 @@ const StaticPage: NextPage<CompetitionPageProps> = ({competition, is_rules}) =>
<p>Odkedy? {competition.upcoming_or_current_event.start} </p>
)}
{competition.upcoming_or_current_event.end && <p>Dokedy? {competition.upcoming_or_current_event.end}</p>}
{competition.upcoming_or_current_event.unspecifiedpublication_set?.length > 0 && (
<p>Pozvánka: {competition.upcoming_or_current_event.unspecifiedpublication_set[0].name} </p>
{competition.upcoming_or_current_event.publication_set.length > 0 && (
<p>
<Link
href={`/api/competition/publication/${competition.upcoming_or_current_event.publication_set[0].id}/download/`}
>
Pozvánka
</Link>
</p>
)}
{competition.upcoming_or_current_event.registration_link && (
<div>
<p>
Registračný formulár: {competition.upcoming_or_current_event.registration_link.start} -
Registrácia prebieha do:
{competition.upcoming_or_current_event.registration_link.end}
{competition.upcoming_or_current_event.registration_link.url}
<Link href={competition.upcoming_or_current_event.registration_link.url}>Registračný formulár</Link>
</p>

<p>{competition.upcoming_or_current_event.registration_link.additional_info}</p>
Expand Down

0 comments on commit bb2ef71

Please sign in to comment.