mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
Rename PickEventType to PickEventTypeType for type of events
This commit is contained in:
parent
ee8f303d25
commit
8a6e7396ca
@ -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'],
|
||||
|
@ -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)
|
||||
;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ use Chill\EventBundle\Entity\EventType;
|
||||
*
|
||||
* @author Champs-Libres Coop
|
||||
*/
|
||||
class PickEventType extends AbstractType
|
||||
class PickEventTypeType extends AbstractType
|
||||
{
|
||||
/**
|
||||
* @var TranslatableStringHelper
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user