Skip to content

Commit e0d02c6

Browse files
nickygerritsenvmcj
authored andcommitted
Add missing table header labels for contest problems and judgehosts. Fixes #1966.
(cherry picked from commit d02a07e)
1 parent 30a7d29 commit e0d02c6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

webapp/src/Form/Type/ContestProblemType.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,18 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
3030
$builder->add('shortname', TextType::class, [
3131
'label' => 'Short name',
3232
]);
33-
$builder->add('points', IntegerType::class);
33+
$builder->add('points', IntegerType::class,[
34+
'label' => 'Points',
35+
]);
3436
$builder->add('allowSubmit', ChoiceType::class, [
37+
'label' => 'Allow submit',
3538
'choices' => [
3639
'Yes' => true,
3740
'No' => false,
3841
],
3942
]);
4043
$builder->add('allowJudge', ChoiceType::class, [
44+
'label' => 'Allow judge',
4145
'choices' => [
4246
'Yes' => true,
4347
'No' => false,

webapp/src/Form/Type/JudgehostType.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@ class JudgehostType extends AbstractType
1414
public function buildForm(FormBuilderInterface $builder, array $options): void
1515
{
1616
$builder->add('hostname', TextType::class, [
17+
'label' => 'Hostname',
1718
'attr' => ['readonly' => true],
1819
]);
1920
$builder->add('enabled', ChoiceType::class, [
21+
'label' => 'Enabled',
2022
'choices' => [
2123
'yes' => true,
2224
'no' => false,
2325
],
2426
]);
2527
$builder->add('hidden', ChoiceType::class, [
28+
'label' => 'Hidden',
2629
'choices' => [
2730
'yes' => true,
2831
'no' => false,

0 commit comments

Comments
 (0)