mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 05:44:58 +00:00
sf4, fix errors with report bundle, adapt new config yaml directory
This commit is contained in:
@@ -1,51 +0,0 @@
|
||||
report_select_type:
|
||||
path: /{_locale}/person/{person_id}/report/select/type/for/creation
|
||||
defaults: { _controller: "ChillReportBundle:Report:selectReportType" }
|
||||
options:
|
||||
menus:
|
||||
person:
|
||||
order: 100
|
||||
label: Add a report
|
||||
report_new:
|
||||
path: /{_locale}/person/{person_id}/report/cfgroup/{cf_group_id}/new
|
||||
defaults: { _controller: "ChillReportBundle:Report:new" }
|
||||
|
||||
report_create:
|
||||
path: /{_locale}/person/{person_id}/report/cfgroup/{cf_group_id}/create
|
||||
defaults: { _controller: "ChillReportBundle:Report:create" }
|
||||
methods: [POST]
|
||||
|
||||
report_list:
|
||||
path: /{_locale}/person/{person_id}/report/list
|
||||
defaults: { _controller: "ChillReportBundle:Report:list" }
|
||||
options:
|
||||
menus:
|
||||
person:
|
||||
order: 101
|
||||
label: Report list
|
||||
report_view:
|
||||
path: /{_locale}/person/{person_id}/report/{report_id}/view
|
||||
defaults: { _controller: "ChillReportBundle:Report:view" }
|
||||
|
||||
report_edit:
|
||||
path: /{_locale}/person/{person_id}/report/{report_id}/edit
|
||||
defaults: { _controller: "ChillReportBundle:Report:edit" }
|
||||
|
||||
report_update:
|
||||
path: /{_locale}/person/{person_id}/report/{report_id}/update
|
||||
defaults: { _controller: "ChillReportBundle:Report:update" }
|
||||
methods: [POST, PUT]
|
||||
|
||||
report_export_list:
|
||||
path: /{_locale}/export/report/cfgroup/{cf_group_id}
|
||||
defaults: { _controller: "ChillReportBundle:Report:export" }
|
||||
|
||||
|
||||
report_export_select_type:
|
||||
path: /{_locale}/export/report/select/type
|
||||
defaults: {_controller: "ChillReportBundle:Report:selectReportTypeForExport" }
|
||||
options:
|
||||
menus:
|
||||
export:
|
||||
order: 100
|
||||
label: Export reports
|
@@ -1,46 +0,0 @@
|
||||
services:
|
||||
# chill_report.example:
|
||||
# class: Chill\ReportBundle\Example
|
||||
# arguments: [@service_id, "plain_value", %parameter%]
|
||||
services:
|
||||
|
||||
chill.report.search:
|
||||
class: Chill\ReportBundle\Search\ReportSearch
|
||||
arguments:
|
||||
- '@doctrine.orm.entity_manager'
|
||||
- '@chill.main.security.authorization.helper'
|
||||
- '@security.token_storage'
|
||||
calls:
|
||||
- [setContainer, ["@service_container"]]
|
||||
tags:
|
||||
- { name: chill.search, alias: 'report' }
|
||||
|
||||
chill.report.timeline:
|
||||
class: Chill\ReportBundle\Timeline\TimelineReportProvider
|
||||
arguments:
|
||||
- '@doctrine.orm.entity_manager'
|
||||
- '@chill.main.security.authorization.helper'
|
||||
- '@security.token_storage'
|
||||
- '@chill.custom_field.helper'
|
||||
- '%chill_custom_fields.show_empty_values%'
|
||||
tags:
|
||||
- { name: chill.timeline, context: 'person' }
|
||||
|
||||
chill.report.security.authorization.report_voter:
|
||||
class: Chill\ReportBundle\Security\Authorization\ReportVoter
|
||||
arguments:
|
||||
- "@chill.main.security.authorization.helper"
|
||||
tags:
|
||||
- { name: security.voter }
|
||||
- { name: chill.role }
|
||||
|
||||
chill.report.form.report_type:
|
||||
class: Chill\ReportBundle\Form\ReportType
|
||||
arguments:
|
||||
- "@chill.main.security.authorization.helper"
|
||||
- "@security.token_storage"
|
||||
- "@chill.main.helper.translatable_string"
|
||||
- "@doctrine.orm.entity_manager"
|
||||
tags:
|
||||
- { name: form.type, alias: chill_reportbundle_report }
|
||||
|
@@ -1,6 +0,0 @@
|
||||
services:
|
||||
Chill\ReportBundle\Controller\ReportController:
|
||||
arguments:
|
||||
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
|
||||
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
|
||||
tags: ['controller.service_arguments']
|
@@ -1,13 +0,0 @@
|
||||
services:
|
||||
Chill\ReportBundle\Export\Export\ReportListProvider:
|
||||
arguments:
|
||||
$em: '@Doctrine\ORM\EntityManagerInterface'
|
||||
$translatableStringHelper: '@Chill\MainBundle\Templating\TranslatableStringHelper'
|
||||
$translator: '@Symfony\Component\Translation\TranslatorInterface'
|
||||
$customFieldProvider: '@Chill\CustomFieldsBundle\Service\CustomFieldProvider'
|
||||
tags:
|
||||
- { name: chill.export_elements_provider, prefix: 'report' }
|
||||
|
||||
Chill\ReportBundle\Export\Filter\ReportDateFilter:
|
||||
tags:
|
||||
- { name: chill.export_filter, alias: 'report_date' }
|
@@ -1,4 +0,0 @@
|
||||
services:
|
||||
Chill\ReportBundle\DataFixtures\ORM\:
|
||||
resource: ../../../DataFixtures/ORM
|
||||
tags: [ 'doctrine.fixture.orm' ]
|
@@ -1,5 +0,0 @@
|
||||
Chill\ReportBundle\Entity\Report:
|
||||
properties:
|
||||
date:
|
||||
- NotNull: ~
|
||||
- Date: ~
|
@@ -14,7 +14,6 @@ Date: Date
|
||||
User: Utilisateur
|
||||
'Report type': 'Type de rapport'
|
||||
'View the report': "Voir le rapport"
|
||||
'Update the report': "Mettre à jour le rapport"
|
||||
Report data: Données du rapport
|
||||
'Report view : %name%': 'Rapport : %name%'
|
||||
Report: Rapport
|
||||
@@ -38,7 +37,7 @@ No report registered for this person.: Aucun rapport pour cette personne.
|
||||
'%total% reports matching the search "%pattern%"': '{0} Aucun rapport ne correspond à la recherche "%pattern%" | {1} Un rapport correspond à la recherche "%pattern%" | ]1,Inf]%total% rapports correspondent à la recherche "%pattern%"'
|
||||
|
||||
#timeline
|
||||
'%user% has filled a %report_label% report': %user% a ajouté un rapport '%report_label%'
|
||||
'%user% has filled a %report_label% report': "%user% a ajouté un rapport '%report_label%'"
|
||||
|
||||
#roles
|
||||
CHILL_REPORT_UPDATE: Modifier les rapports
|
||||
|
@@ -14,7 +14,6 @@ Date: Datum
|
||||
User: Gebruiker
|
||||
'Report type': 'Soort of verslag'
|
||||
'View the report': "Bekijk de consultatiegegevens"
|
||||
'Update the report': "Update van de consultatiegegevens"
|
||||
|
||||
#Flash messages
|
||||
'Success : report created!': "De consultatiegegevens zijn correct ingevuld!"
|
||||
@@ -29,4 +28,4 @@ User: Gebruiker
|
||||
'You are going to leave a page with unsubmitted data. Are you sure you want to leave ?': 'U bent aan te vertrekken een pagina die veranderdt datas behoudt. Bent u er zeker van dat u wil vertrekken ?'
|
||||
|
||||
#timeline
|
||||
'%user% has filled a %report_label% report on %date%': %user% heeft een rapport '%report_label%' toegevoegd om %date%
|
||||
'%user% has filled a %report_label% report on %date%': "%user% heeft een rapport '%report_label%' toegevoegd om %date%"
|
||||
|
Reference in New Issue
Block a user