From 477914f96796d60faaeda1bbf0ee04a4b9875ff0 Mon Sep 17 00:00:00 2001 From: nilov Date: Fri, 22 Jan 2016 18:30:16 +0600 Subject: [PATCH] Update bs_static_row --- Form/Type/FormStaticControlRawType.php | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/Form/Type/FormStaticControlRawType.php b/Form/Type/FormStaticControlRawType.php index 1b6178f..e4f67f6 100644 --- a/Form/Type/FormStaticControlRawType.php +++ b/Form/Type/FormStaticControlRawType.php @@ -2,15 +2,35 @@ namespace Glavweb\CoreBundle\Form\Type; -use Braincrafted\Bundle\BootstrapBundle\Form\Type\FormStaticControlType; use Symfony\Component\Form\AbstractType; +use Symfony\Component\OptionsResolver\OptionsResolverInterface; /** * Class FormStaticControlRawType * @package GlavwebCoreBundle\Form\Type */ -class FormStaticControlRawType extends FormStaticControlType +class FormStaticControlRawType extends AbstractType { + /** + * {@inheritdoc} + */ + public function setDefaultOptions(OptionsResolverInterface $resolver) + { + $resolver->setDefaults(array( + 'mapped' => false, + 'required' => false, + 'disabled' => true, + )); + } + + /** + * {@inheritdoc} + */ + public function getParent() + { + return 'text'; + } + /** * {@inheritdoc} */