N°8771 - Add Symfony form component to iTop core

- IO debug
This commit is contained in:
Benjamin Dalsass
2025-10-28 15:33:28 +01:00
parent 5d335b39d2
commit 6952bfa978
25 changed files with 397 additions and 226 deletions

View File

@@ -7,7 +7,7 @@
namespace Combodo\iTop\Forms\Block\Base;
use Combodo\iTop\Forms\Block\AbstractFormBlock;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Combodo\iTop\Forms\Block\FormType\ChoiceFormType;
/**
* Form block for choices.
@@ -18,16 +18,13 @@ class ChoiceFormBlock extends AbstractFormBlock
/** @inheritdoc */
public function GetFormType(): string
{
return ChoiceType::class;
return ChoiceFormType::class;
}
/** @inheritdoc */
public function InitOptions(): array
{
return [
// debug purpose
'required' => false,
'placeholder' => 'Select an element...',
];
}
}