mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +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;
|
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'],
|
||||||
|
@ -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)
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user