Linking report <> person

This commit is contained in:
Marc Ducobu
2014-11-09 19:19:28 +01:00
parent 0fe3962968
commit 3834e16a7b
3 changed files with 55 additions and 0 deletions

View File

@@ -1,3 +1,12 @@
report_select_type:
pattern: /person/{person_id}/report/create
defaults: { _controller: "ChillReportBundle:Report:selectReportType" }
options:
menus:
person:
order: 100
label: Add a report
cl_custom_fields_report:
resource: "@ChillReportBundle/Resources/config/routing/report.yml"
prefix: /report

View File

@@ -0,0 +1,13 @@
{% extends "ChillMainBundle::layout.html.twig" %}
{% block content %}
{{ form_start(form) }}
{{ form_row(form) }}
<button type="submit">
Create a new report
</button>
{{ form_end(form) }}
{% endblock %}