mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
select_report_type : person template
This commit is contained in:
parent
6a5f24a898
commit
88e8b55317
@ -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
|
||||
));
|
||||
}
|
||||
|
||||
|
@ -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) }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user