private comment added to activity

This commit is contained in:
2022-04-25 14:43:44 +02:00
parent 83dd8f810c
commit 1f2638626c
9 changed files with 431 additions and 5 deletions

View File

@@ -20,6 +20,7 @@ use Chill\MainBundle\Entity\User;
use Chill\MainBundle\Form\Type\ChillCollectionType;
use Chill\MainBundle\Form\Type\ChillDateType;
use Chill\MainBundle\Form\Type\CommentType;
use Chill\MainBundle\Form\Type\PrivateCommentType;
use Chill\MainBundle\Form\Type\ScopePickerType;
use Chill\MainBundle\Form\Type\UserPickerType;
use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
@@ -251,6 +252,11 @@ class ActivityType extends AbstractType
]);
}
$builder->add('privateComment', PrivateCommentType::class, [
'label' => 'activity.private comment',
'required' => false
]);
if ($activityType->isVisible('persons')) {
$builder->add('persons', HiddenType::class);
$builder->get('persons')