New screen to find duplicate person manually

Signed-off-by: Mathieu Jaumotte <mathieu.jaumotte@champs-libres.coop>
This commit is contained in:
2021-03-21 14:19:31 +01:00
parent c34b992437
commit 3bcb5fb3dd
8 changed files with 167 additions and 11 deletions

View File

@@ -0,0 +1,40 @@
<?php
namespace Chill\PersonBundle\Form;
use Chill\PersonBundle\Form\Type\PickPersonType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
class PersonFindManuallyDuplicateType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('person', PickPersonType::class, [
'label' => 'Find duplicate',
'mapped' => false,
])
->add('direction', ChoiceType::class, [
'choices' => [
'Starting' => 'starting',
'Arrival' => 'arrival',
],
])
;
}
/**
* @return string
*/
public function getBlockPrefix()
{
return 'chill_personbundle_person_find_manually_duplicate';
}
}