mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
add a new moderator field on events
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace Chill\EventBundle\Form;
|
||||
|
||||
use Chill\MainBundle\Form\Type\ChillDateTimeType;
|
||||
use Chill\PersonBundle\Entity\Person;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
||||
@@ -104,6 +105,11 @@ class EventType extends AbstractType
|
||||
},
|
||||
))
|
||||
->add('type', PickEventType::class)
|
||||
->add('moderator', EntityType::class, array(
|
||||
'class' => Person::class,
|
||||
'required' => false,
|
||||
'placeholder' => ''
|
||||
))
|
||||
;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user