Rename PickEventType to PickEventTypeType for type of events

This commit is contained in:
Tchama 2019-05-02 12:11:40 +02:00
parent ee8f303d25
commit 8a6e7396ca
4 changed files with 8 additions and 6 deletions

View File

@ -22,7 +22,7 @@
namespace Chill\EventBundle\Form;
use Chill\EventBundle\Form\Type\PickEventType;
use Chill\EventBundle\Form\Type\PickEventTypeType;
use Chill\MainBundle\Templating\TranslatableStringHelper;
use Chill\MainBundle\Entity\User;
use Chill\MainBundle\Entity\Center;
@ -110,7 +110,9 @@ class EventType extends AbstractType
);
},
))
->add('type', PickEventType::class)
->add('type', PickEventTypeType::class, array(
'placeholder' => ''
))
->add('moderator', UserPickerType::class, array(
'center' => $options['center'],
'role' => $options['role'],

View File

@ -6,7 +6,7 @@ use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Chill\MainBundle\Form\Type\TranslatableStringFormType;
use Chill\EventBundle\Form\Type\PickEventType;
use Chill\EventBundle\Form\Type\PickEventTypeType;
class StatusType extends AbstractType
{
@ -19,7 +19,7 @@ class StatusType extends AbstractType
$builder
->add('name', TranslatableStringFormType::class)
->add('active')
->add('type', PickEventType::class)
->add('type', PickEventTypeType::class)
;
}

View File

@ -34,7 +34,7 @@ use Chill\EventBundle\Entity\EventType;
*
* @author Champs-Libres Coop
*/
class PickEventType extends AbstractType
class PickEventTypeType extends AbstractType
{
/**
* @var TranslatableStringHelper

View File

@ -1,6 +1,6 @@
services:
chill.event.form.type.pick_event_type:
class: Chill\EventBundle\Form\Type\PickEventType
class: Chill\EventBundle\Form\Type\PickEventTypeType
arguments:
- "@chill.main.helper.translatable_string"
tags: