mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
rdv: others pages: edit, list
This commit is contained in:
@@ -17,6 +17,7 @@ use Chill\MainBundle\Form\Type\CommentType;
|
||||
use Chill\CalendarBundle\Entity\Calendar;
|
||||
use Chill\CalendarBundle\Entity\CancelReason;
|
||||
use Chill\CalendarBundle\Entity\Invite;
|
||||
use Chill\MainBundle\Entity\User;
|
||||
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
||||
use Chill\PersonBundle\Entity\Person;
|
||||
use Chill\ThirdPartyBundle\Entity\ThirdParty;
|
||||
@@ -43,6 +44,14 @@ class CalendarType extends AbstractType
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder
|
||||
->add('mainUser', EntityType::class, array(
|
||||
'required' => true,
|
||||
'class' => User::class,
|
||||
'choice_label' => function (User $entity) {
|
||||
return $entity->getUsernameCanonical();
|
||||
},
|
||||
// TODO 'empty_data' =>
|
||||
))
|
||||
->add('comment', CommentType::class, array(
|
||||
'required' => false
|
||||
))
|
||||
|
Reference in New Issue
Block a user