|
|
|
|
|
|
|
|
use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
|
|
use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
|
|
use Symfony\Component\Form\Extension\Core\Type\DateType; |
|
|
use Symfony\Component\Form\Extension\Core\Type\DateType; |
|
|
use Symfony\Component\Form\Extension\Core\Type\HiddenType; |
|
|
use Symfony\Component\Form\Extension\Core\Type\HiddenType; |
|
|
|
|
|
use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
|
use Symfony\Component\Form\Extension\Core\Type\TextType; |
|
|
use Symfony\Component\Form\Extension\Core\Type\TextType; |
|
|
use Doctrine\ORM\EntityManagerInterface; |
|
|
use Doctrine\ORM\EntityManagerInterface; |
|
|
use Symfony\Component\Form\AbstractType; |
|
|
use Symfony\Component\Form\AbstractType; |
|
|
|
|
|
|
|
|
'label' => $merchantConfig->getLabel(), |
|
|
'label' => $merchantConfig->getLabel(), |
|
|
]); |
|
|
]); |
|
|
} |
|
|
} |
|
|
|
|
|
elseif($merchantConfig->getFieldType() == 'textarea') { |
|
|
|
|
|
$form->add('value', TextareaType::class, [ |
|
|
|
|
|
'label' => $merchantConfig->getLabel(), |
|
|
|
|
|
]); |
|
|
|
|
|
} |
|
|
else { |
|
|
else { |
|
|
if($merchantConfig->getOption()) { |
|
|
if($merchantConfig->getOption()) { |
|
|
$form->add('value', TextType::class, [ |
|
|
$form->add('value', TextType::class, [ |