trinity-cms-bundles/src/Trinity/Bundle/UserBundle/Form/Type/UserLogBatchType.php

36 lines
826 B
PHP
Raw Normal View History

2015-03-03 18:51:20 +01:00
<?php
namespace Trinity\Bundle\UserBundle\Form\Type;
use Symfony\Component\Form\FormBuilderInterface;
use Trinity\Bundle\AdminBundle\Form\Type\BatchType as BaseBatchType;
class UserLogBatchType extends BaseBatchType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add(
2015-03-05 17:51:23 +01:00
'objects',
'choice',
array(
'required' => true,
'multiple' => true,
'expanded' => true,
)
);
2015-03-03 18:51:20 +01:00
2015-03-05 17:51:23 +01:00
$builder->add(
'action',
'choice',
array(
'required' => true,
'choices' => array(
self::BATCH_REMOVE => 'Remove',
),
'multiple' => false,
)
);
2015-03-03 18:51:20 +01:00
}
}