mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
Merge branch 'features/activity-type' into features/activity-form
This commit is contained in:
@@ -22,10 +22,6 @@ class ActivityTypeType extends AbstractType
|
||||
$this->translatableStringHelper = $translatableStringHelper;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FormBuilderInterface $builder
|
||||
* @param array $options
|
||||
*/
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder
|
||||
@@ -46,12 +42,11 @@ class ActivityTypeType extends AbstractType
|
||||
;
|
||||
|
||||
$fields = [
|
||||
'person', 'user', 'date', 'place', 'persons',
|
||||
'thirdparty', 'durationTime', 'attendee',
|
||||
'reasons', 'comment', 'sentReceived', 'document',
|
||||
'persons', 'user', 'date', 'place', 'persons',
|
||||
'thirdParties', 'durationTime', 'attendee',
|
||||
'reasons', 'comment', 'sentReceived', 'documents',
|
||||
'emergency', 'accompanyingPeriod', 'socialData'
|
||||
];
|
||||
|
||||
foreach ($fields as $field) {
|
||||
$builder
|
||||
->add($field.'Visible', ActivityFieldPresence::class)
|
||||
@@ -62,9 +57,6 @@ class ActivityTypeType extends AbstractType
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param OptionsResolverInterface $resolver
|
||||
*/
|
||||
public function configureOptions(OptionsResolver $resolver)
|
||||
{
|
||||
$resolver->setDefaults(array(
|
||||
|
Reference in New Issue
Block a user