|
|
@@ -7,6 +7,7 @@ use Lc\ShopBundle\Context\MerchantConfigInterface; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
|
|
|
use Symfony\Component\Form\Extension\Core\Type\DateType; |
|
|
|
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 Doctrine\ORM\EntityManagerInterface; |
|
|
|
use Symfony\Component\Form\AbstractType; |
|
|
@@ -55,6 +56,11 @@ class MerchantConfigType extends AbstractType |
|
|
|
'label' => $merchantConfig->getLabel(), |
|
|
|
]); |
|
|
|
} |
|
|
|
elseif($merchantConfig->getFieldType() == 'textarea') { |
|
|
|
$form->add('value', TextareaType::class, [ |
|
|
|
'label' => $merchantConfig->getLabel(), |
|
|
|
]); |
|
|
|
} |
|
|
|
else { |
|
|
|
if($merchantConfig->getOption()) { |
|
|
|
$form->add('value', TextType::class, [ |