mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 22:04:23 +00:00
fix new events page depreciations
This commit is contained in:
parent
49aeb075a4
commit
9f168a3a3c
@ -68,7 +68,7 @@ class EventController extends Controller
|
||||
'method' => 'POST'
|
||||
));
|
||||
|
||||
$form->add('submit', 'submit', array('label' => 'Create'));
|
||||
$form->add('submit', SubmitType::class, array('label' => 'Create'));
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
namespace Chill\EventBundle\Form;
|
||||
|
||||
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;
|
||||
@ -68,10 +69,7 @@ class EventType extends AbstractType
|
||||
|
||||
$builder
|
||||
->add('name')
|
||||
->add(
|
||||
'date',
|
||||
'date',
|
||||
array(
|
||||
->add('date', DateType::class, array(
|
||||
'required' => true,
|
||||
'widget' => 'single_text',
|
||||
'format' => 'dd-MM-yyyy'
|
||||
|
Loading…
x
Reference in New Issue
Block a user