45 lines
966 B
PHP
45 lines
966 B
PHP
<?php
|
||
|
||
namespace Trinity\Bundle\UserBundle\Form\Type;
|
||
|
||
use Propel\PropelBundle\Form\BaseAbstractType;
|
||
use Symfony\Component\Form\FormBuilderInterface;
|
||
|
||
class UserLogType extends BaseAbstractType
|
||
{
|
||
protected $options = array(
|
||
'data_class' => 'FOS\UserBundle\Propel\UserLog',
|
||
'name' => 'userlog',
|
||
);
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||
{
|
||
$builder->add(
|
||
'user',
|
||
'model',
|
||
array(
|
||
'required' => false,
|
||
'class' => '\FOS\UserBundle\Propel\User'
|
||
)
|
||
);
|
||
|
||
$builder->add(
|
||
'message',
|
||
'textarea'
|
||
);
|
||
|
||
$builder->add(
|
||
'createdAtToString',
|
||
'text',
|
||
array(
|
||
'attr' => array(
|
||
'class' => 'datetimepicker',
|
||
),
|
||
)
|
||
);
|
||
}
|
||
}
|