allow to restrict usage of global activities for projects (#3437)

This commit is contained in:
Kevin Papst
2022-07-23 01:17:24 +02:00
committed by GitHub
parent 8d695d03df
commit ed7f89cfe1
12 changed files with 140 additions and 11 deletions

View File

@@ -13,6 +13,7 @@ use App\Entity\Customer;
use App\Entity\Project;
use App\Form\Type\CustomerType;
use App\Form\Type\DateTimePickerType;
use App\Form\Type\YesNoType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
@@ -95,7 +96,11 @@ class ProjectEditForm extends AbstractType
'placeholder' => (null === $id && null === $customer) ? '' : false,
'customers' => $customer,
'query_builder_for_user' => true,
]);
])
->add('globalActivities', YesNoType::class, [
'label' => 'label.globalActivities',
])
;
$this->addCommonFields($builder, $options);
}