mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 17:48:43 +02:00
N°8772 - Form dependencies manager implementation - WIP
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Combodo\iTop\Forms\Block\DataModel;
|
||||
|
||||
use Combodo\iTop\Forms\Block\Base\ChoiceFormBlock;
|
||||
use Combodo\iTop\Forms\Block\FormInput;
|
||||
|
||||
class AttributeValueChoiceFormBlock extends ChoiceFormBlock
|
||||
{
|
||||
|
||||
public const INPUT_CLASS_NAME = 'class_name';
|
||||
public const INPUT_ATTRIBUTE = 'attribute';
|
||||
|
||||
public function __construct(string $sName, array $aOptions = [])
|
||||
{
|
||||
$aOptions['multiple'] = true;
|
||||
parent::__construct($sName, $aOptions);
|
||||
}
|
||||
|
||||
public function InitInputs(): void
|
||||
{
|
||||
$this->AddInput(new FormInput(self::INPUT_CLASS_NAME, 'string'));
|
||||
$this->AddInput(new FormInput(self::INPUT_ATTRIBUTE, 'string'));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user