diff --git a/Controller/ReportController.php b/Controller/ReportController.php index 52093da85..caf8eaf47 100644 --- a/Controller/ReportController.php +++ b/Controller/ReportController.php @@ -86,6 +86,8 @@ class ReportController extends Controller $em = $this->getDoctrine()->getManager(); + $person = $em->getRepository('ChillPersonBundle:Person')->find($person_id); + $cFGroups = $em->getRepository('ChillCustomFieldsBundle:CustomFieldsGroup') ->findByEntity('Chill\ReportBundle\Entity\Report'); @@ -106,7 +108,8 @@ class ReportController extends Controller ->getForm(); return $this->render('ChillReportBundle:Report:select_report_type.html.twig', array( - 'form' => $form->createView() + 'form' => $form->createView(), + 'person' => $person )); } diff --git a/Resources/views/Report/select_report_type.html.twig b/Resources/views/Report/select_report_type.html.twig index 1ba18644f..068bd966c 100644 --- a/Resources/views/Report/select_report_type.html.twig +++ b/Resources/views/Report/select_report_type.html.twig @@ -1,6 +1,8 @@ -{% extends "ChillMainBundle::layout.html.twig" %} +{% extends "ChillPersonBundle::layout.html.twig" %} -{% block content %} +{% set activeRouteKey = 'report_select_type' %} + +{% block personcontent %} {{ form_start(form) }} {{ form_row(form) }}