mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-12 20:06:13 +00:00
minor changes to activity for amli
This commit is contained in:
parent
08bf5f9922
commit
03fb75edc8
@ -29,6 +29,7 @@ use Chill\MainBundle\Entity\HasCenterInterface;
|
||||
use Chill\MainBundle\Entity\HasScopeInterface;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Chill\MainBundle\Validator\Constraints\Entity\UserCircleConsistency;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
/**
|
||||
* Activity
|
||||
@ -72,6 +73,8 @@ class Activity implements HasCenterInterface, HasScopeInterface
|
||||
|
||||
/**
|
||||
* @var \Doctrine\Common\Collections\Collection
|
||||
*
|
||||
* @Assert\Count(min=1, minMessage="Add at least one reason")
|
||||
*/
|
||||
private $reasons;
|
||||
|
||||
|
@ -99,11 +99,11 @@ class ActivityType extends AbstractType
|
||||
))
|
||||
->add('attendee', ChoiceType::class, array(
|
||||
'expanded' => true,
|
||||
'required' => false,
|
||||
'required' => true,
|
||||
'choices_as_values' => true,
|
||||
'choices' => array(
|
||||
'present' => true,
|
||||
'not present' => false
|
||||
'yes' => true,
|
||||
'no' => false
|
||||
)
|
||||
))
|
||||
->add('user', UserPickerType::class, [
|
||||
|
@ -1,2 +1,3 @@
|
||||
The reasons's level should not be empty: Le niveau du sujet ne peut pas être vide
|
||||
At least one reason must be choosen: Au moins un sujet doit être choisi
|
||||
Add at least one reason: L'activité doit comporter au moins un sujet
|
||||
|
Loading…
x
Reference in New Issue
Block a user