deblan.tv/vendor/trinity/src/Trinity/Bundle/ContactBundle/Form/Type/ContactFilterType.php

55 lines
883 B
PHP
Raw Normal View History

2015-03-02 21:57:49 +01:00
<?php
namespace Trinity\Bundle\ContactBundle\Form\Type;
use Propel\PropelBundle\Form\BaseAbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class ContactFilterType extends BaseAbstractType
{
protected $options = array(
'data_class' => 'Trinity\Bundle\ContactBundle\Model\Contact',
'name' => 'contact',
'csrf_protection' => false,
);
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add(
'name',
'text',
array(
2015-05-04 19:34:46 +02:00
'required' => false,
2015-03-02 21:57:49 +01:00
)
);
$builder->add(
'firm',
'text',
array(
2015-05-04 19:34:46 +02:00
'required' => false,
2015-03-02 21:57:49 +01:00
)
);
$builder->add(
'phone',
'text',
array(
2015-05-04 19:34:46 +02:00
'required' => false,
2015-03-02 21:57:49 +01:00
)
);
$builder->add(
'email',
'email',
array(
2015-05-04 19:34:46 +02:00
'required' => false,
2015-03-02 21:57:49 +01:00
)
);
}
}