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; namespace Chill\EventBundle\Form;
use Chill\EventBundle\Form\Type\PickEventType; use Chill\EventBundle\Form\Type\PickEventTypeType;
use Chill\MainBundle\Templating\TranslatableStringHelper; use Chill\MainBundle\Templating\TranslatableStringHelper;
use Chill\MainBundle\Entity\User; use Chill\MainBundle\Entity\User;
use Chill\MainBundle\Entity\Center; 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( ->add('moderator', UserPickerType::class, array(
'center' => $options['center'], 'center' => $options['center'],
'role' => $options['role'], 'role' => $options['role'],

View File

@ -6,7 +6,7 @@ use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Chill\MainBundle\Form\Type\TranslatableStringFormType; use Chill\MainBundle\Form\Type\TranslatableStringFormType;
use Chill\EventBundle\Form\Type\PickEventType; use Chill\EventBundle\Form\Type\PickEventTypeType;
class StatusType extends AbstractType class StatusType extends AbstractType
{ {
@ -19,7 +19,7 @@ class StatusType extends AbstractType
$builder $builder
->add('name', TranslatableStringFormType::class) ->add('name', TranslatableStringFormType::class)
->add('active') ->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 * @author Champs-Libres Coop
*/ */
class PickEventType extends AbstractType class PickEventTypeType extends AbstractType
{ {
/** /**
* @var TranslatableStringHelper * @var TranslatableStringHelper

View File

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