diff --git a/webapp/src/Form/Type/ContestType.php b/webapp/src/Form/Type/ContestType.php index cfb1508cdd..bcf1769bcc 100644 --- a/webapp/src/Form/Type/ContestType.php +++ b/webapp/src/Form/Type/ContestType.php @@ -5,6 +5,7 @@ use App\Entity\Contest; use App\Entity\ContestProblem; use App\Entity\Language; +use App\Entity\ScoreboardType; use App\Entity\Team; use App\Entity\TeamCategory; use App\Service\DOMJudgeService; @@ -76,6 +77,14 @@ public function buildForm(FormBuilderInterface $builder, array $options): void 'required' => false, 'help' => 'Time when the contest and scoreboard are hidden again. Usually a few hours/days after the contest ends.', ]); + $builder->add('scoreboardType', ChoiceType::class, [ + 'label' => 'Scoreboard type', + 'choices' => [ + 'pass-fail' => ScoreboardType::PASS_FAIL, + 'scoring' => ScoreboardType::SCORING, + ], + 'help' => 'The type of scoreboard to use for this contest.', + ]); $builder->add('allowSubmit', ChoiceType::class, [ 'expanded' => true, 'label' => 'Allow submit', diff --git a/webapp/templates/jury/partials/contest_form.html.twig b/webapp/templates/jury/partials/contest_form.html.twig index 9581ebdb7a..866504b750 100644 --- a/webapp/templates/jury/partials/contest_form.html.twig +++ b/webapp/templates/jury/partials/contest_form.html.twig @@ -15,6 +15,7 @@ {{ form_row(form.endtimeString) }} {{ form_row(form.unfreezetimeString) }} {{ form_row(form.deactivatetimeString) }} + {{ form_row(form.scoreboardType) }} {{ form_row(form.allowSubmit) }} {{ form_row(form.processBalloons) }} {{ form_row(form.runtimeAsScoreTiebreaker) }}