mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-05 07:00:14 +02:00
18a6090366
* Add Penalty Seconds on tests * Refactors and start of candidate answer relation * Add breadcrumbs and UI consistency updates across backoffice templates * Add breadcrumbs and UI consistency updates across backoffice templates * Add Dutch translations for email verification and security messages * Rector * Refactor for code consistency and type safety assertions across repositories and entities * Refactor candidate-related logic to optimize queries, improve template separation, and add "Answer Mapping" functionality. * Cleanup * Update Symfony * Add coderabbit config * Fixes from coderabbit
40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tvdt\Form;
|
|
|
|
use Symfony\Component\Form\AbstractType;
|
|
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
|
use Symfony\Component\Form\FormBuilderInterface;
|
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
|
use Tvdt\Entity\SeasonSettings;
|
|
|
|
/** @extends AbstractType<SeasonSettings> */
|
|
class SettingsForm extends AbstractType
|
|
{
|
|
public function buildForm(FormBuilderInterface $builder, array $options): void
|
|
{
|
|
$builder
|
|
->add('showNumbers', options: [
|
|
'label' => 'Show Numbers',
|
|
'label_attr' => ['class' => 'checkbox-switch'],
|
|
'attr' => ['role' => 'switch', 'switch' => null]])
|
|
->add('confirmAnswers', options: [
|
|
'label' => 'Confirm Answers',
|
|
'label_attr' => ['class' => 'checkbox-switch'],
|
|
'attr' => ['role' => 'switch', 'switch' => null]])
|
|
->add('save', SubmitType::class, [
|
|
'label' => 'Save',
|
|
])
|
|
;
|
|
}
|
|
|
|
public function configureOptions(OptionsResolver $resolver): void
|
|
{
|
|
$resolver->setDefaults([
|
|
'data_class' => SeasonSettings::class,
|
|
]);
|
|
}
|
|
}
|