Skip to content

Commit

Permalink
Update bs_static_row
Browse files Browse the repository at this point in the history
  • Loading branch information
nilov committed Jan 22, 2016
1 parent 6ae3b6a commit 477914f
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions Form/Type/FormStaticControlRawType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand Down

0 comments on commit 477914f

Please sign in to comment.