select_report_type : person template

This commit is contained in:
Marc Ducobu 2014-11-10 12:34:54 +01:00
parent 6a5f24a898
commit 88e8b55317
2 changed files with 8 additions and 3 deletions

View File

@ -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
));
}

View File

@ -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) }}