Creation of a report enable

This commit is contained in:
Marc Ducobu
2014-11-09 20:24:23 +01:00
parent c4f50d54d7
commit 302286c558
7 changed files with 65 additions and 59 deletions

View File

@@ -1,5 +1,5 @@
report_select_type:
pattern: /person/{person_id}/report/create
pattern: /person/{person_id}/report/select/type/for/creation
defaults: { _controller: "ChillReportBundle:Report:selectReportType" }
options:
menus:
@@ -7,6 +7,19 @@ report_select_type:
order: 100
label: Add a report
report_new:
path: /person/{person_id}/report/cfgroup/{cf_group_id}/new
defaults: { _controller: "ChillReportBundle:Report:new" }
report_create:
path: /person/{person_id}/report/cfgroup/{cf_group_id}/create
defaults: { _controller: "ChillReportBundle:Report:create" }
requirements: { _method: post }
report_show:
path: report/{id}/show
defaults: { _controller: "ChillReportBundle:Report:show" }
cl_custom_fields_report:
resource: "@ChillReportBundle/Resources/config/routing/report.yml"
prefix: /report

View File

@@ -6,15 +6,6 @@ report_show:
path: /{id}/show
defaults: { _controller: "ChillReportBundle:Report:show" }
report_new:
path: /new
defaults: { _controller: "ChillReportBundle:Report:new" }
report_create:
path: /create
defaults: { _controller: "ChillReportBundle:Report:create" }
requirements: { _method: post }
report_edit:
path: /{id}/edit
defaults: { _controller: "ChillReportBundle:Report:edit" }

View File

@@ -1,6 +1,6 @@
{% extends '::base.html.twig' %}
{% extends "ChillMainBundle::layout.html.twig" %}
{% block body -%}
{% block content %}
<h1>Report creation</h1>
{{ form(form) }}

View File

@@ -1,7 +1,6 @@
{% extends "ChillMainBundle::layout.html.twig" %}
{% block content %}
{% block content %}
{{ form_start(form) }}
{{ form_row(form) }}

View File

@@ -11,7 +11,7 @@
</tr>
<tr>
<th>Userr</th>
<td>{{ entity.userr }}</td>
<td>{{ entity.user }}</td>
</tr>
<tr>
<th>Person</th>