mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
Creation of a report enable
This commit is contained in:
@@ -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
|
@@ -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" }
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{% extends '::base.html.twig' %}
|
||||
{% extends "ChillMainBundle::layout.html.twig" %}
|
||||
|
||||
{% block body -%}
|
||||
{% block content %}
|
||||
<h1>Report creation</h1>
|
||||
|
||||
{{ form(form) }}
|
||||
|
@@ -1,7 +1,6 @@
|
||||
{% extends "ChillMainBundle::layout.html.twig" %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% block content %}
|
||||
|
||||
{{ form_start(form) }}
|
||||
{{ form_row(form) }}
|
||||
|
@@ -11,7 +11,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Userr</th>
|
||||
<td>{{ entity.userr }}</td>
|
||||
<td>{{ entity.user }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Person</th>
|
||||
|
Reference in New Issue
Block a user