mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
minor changes
This commit is contained in:
@@ -120,8 +120,9 @@ class PickEventType extends AbstractType
|
||||
$resolver->setDefaults(array(
|
||||
'class' => Event::class,
|
||||
'choice_label' => function(Event $e) {
|
||||
return $e->getDate()->format('d-m-Y'). ' ' .$e->getName();
|
||||
// TODO ajouter si possible le type de l'événement !
|
||||
return $e->getDate()->format('d/m/Y, H:i') . ' → ' .
|
||||
// $e->getType()->getName()['fr'] . ': ' . // display the type of event
|
||||
$e->getName();
|
||||
},
|
||||
'placeholder' => 'Pick an event',
|
||||
'attr' => array('class' => 'select2 '),
|
||||
@@ -133,6 +134,7 @@ class PickEventType extends AbstractType
|
||||
return new EventChoiceLoader($this->eventRepository, $centers);
|
||||
}
|
||||
));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user