Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions webapp/src/Form/Type/ContestType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions webapp/templates/jury/partials/contest_form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
Expand Down
Loading