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

36 lines
826 B
PHP

<?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(
'objects',
'choice',
array(
'required' => true,
'multiple' => true,
'expanded' => true,
)
);
$builder->add(
'action',
'choice',
array(
'required' => true,
'choices' => array(
self::BATCH_REMOVE => 'Remove',
),
'multiple' => false,
)
);
}
}