mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 10:33:49 +00:00
add time to event dates
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace Chill\EventBundle\Form;
|
||||
|
||||
use Chill\MainBundle\Form\Type\ChillDateTimeType;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\DateType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
||||
use Chill\EventBundle\Form\Type\PickEventType;
|
||||
@@ -69,10 +69,8 @@ class EventType extends AbstractType
|
||||
|
||||
$builder
|
||||
->add('name')
|
||||
->add('date', DateType::class, array(
|
||||
'required' => true,
|
||||
'widget' => 'single_text',
|
||||
'format' => 'dd-MM-yyyy'
|
||||
->add('date', ChillDateTimeType::class, array(
|
||||
'required' => true
|
||||
)
|
||||
)
|
||||
->add('center', EntityType::class, array(
|
||||
|
Reference in New Issue
Block a user