public function selectReportTypeAction($person_id, Request $request)
    {
        $em = $this->getDoctrine()->getManager();
        
        $person = $em->getRepository('ChillPersonBundle:Person')
                ->find($person_id);
        
        if ($person === NULL) {
            throw $this->createNotFoundException('Person not found!');
        }
        
        $this->denyAccessUnlessGranted('CHILL_PERSON_SEE', $person, 'access denied for person view');
        // check access on report creation for a dummy report
        $this->denyAccessUnlessGranted('CHILL_REPORT_CREATE', 
                (new Report())->setPerson($person), 'access denied for report creation');
        
        
        $cFGroupId = $request->query->get('cFGroup');

        if($cFGroupId) {
            return $this->redirect(
                $this->generateUrl('report_new',
                    array('person_id' => $person_id, 'cf_group_id' => $cFGroupId)));
        }

        $cFGroups = $em->getRepository('ChillCustomFieldsBundle:CustomFieldsGroup')
            ->findByEntity('Chill\ReportBundle\Entity\Report');

        if(count($cFGroups) === 1 ){
            return $this->redirect(
                $this->generateUrl('report_new', 
                    array('person_id' => $person_id, 'cf_group_id' => $cFGroups[0]->getId())));
        }

        $cFGroupsChoice = array();

        foreach ($cFGroups as $cFGroup) {
            $cFGroupsChoice[$cFGroup->getId()] = $cFGroup->getName($request->getLocale());
        }

        $form = $this->get('form.factory')
            ->createNamedBuilder(null, 'form', null, array(
                'method' => 'GET',
                'csrf_protection' => false
            ))
            ->add('cFGroup', 'choice', array(
                'choices' => $cFGroupsChoice
            ))
            ->getForm();

        $person = $em->getRepository('ChillPersonBundle:Person')->find($person_id);

        return $this->render('ChillReportBundle:Report:select_report_type.html.twig', array(
            'form'     => $form->createView(),
            'person'   => $person
        ));
    }