mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
reinstate exports
This commit is contained in:
parent
526882a5b6
commit
684f28291a
@ -284,7 +284,7 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal
|
|||||||
'choices' => $choices,
|
'choices' => $choices,
|
||||||
'data' => $choices,
|
'data' => $choices,
|
||||||
// les checkbox cochés !!
|
// les checkbox cochés !!
|
||||||
'choices_as_values' => true,
|
// 'choices_as_values' => true,
|
||||||
'label' => 'Fields to include in export',
|
'label' => 'Fields to include in export',
|
||||||
'choice_label' => fn ($key) => str_replace('__', '.', (string) $key),
|
'choice_label' => fn ($key) => str_replace('__', '.', (string) $key),
|
||||||
'choice_attr' => function ($val) {
|
'choice_attr' => function ($val) {
|
||||||
|
@ -92,7 +92,7 @@ class ListCV implements ListInterface, ExportElementValidatedInterface
|
|||||||
->add('fields', ChoiceType::class, [
|
->add('fields', ChoiceType::class, [
|
||||||
'multiple' => true,
|
'multiple' => true,
|
||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'choices_as_values' => true,
|
// 'choices_as_values' => true,
|
||||||
'label' => 'Fields to include in export',
|
'label' => 'Fields to include in export',
|
||||||
'choices' => array_combine($this->getFields(), $this->getFields()),
|
'choices' => array_combine($this->getFields(), $this->getFields()),
|
||||||
'data' => array_combine($this->getFields(), $this->getFields()),
|
'data' => array_combine($this->getFields(), $this->getFields()),
|
||||||
|
@ -105,7 +105,7 @@ class ListFrein implements ListInterface, ExportElementValidatedInterface
|
|||||||
->add('fields', ChoiceType::class, [
|
->add('fields', ChoiceType::class, [
|
||||||
'multiple' => true,
|
'multiple' => true,
|
||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'choices_as_values' => true,
|
// 'choices_as_values' => true,
|
||||||
'label' => 'Fields to include in export',
|
'label' => 'Fields to include in export',
|
||||||
'choices' => array_combine($this->getFields(), $this->getFields()),
|
'choices' => array_combine($this->getFields(), $this->getFields()),
|
||||||
'data' => array_combine($this->getFields(), $this->getFields()),
|
'data' => array_combine($this->getFields(), $this->getFields()),
|
||||||
@ -187,7 +187,7 @@ class ListFrein implements ListInterface, ExportElementValidatedInterface
|
|||||||
public function initiateQuery(array $requiredModifiers, array $acl, array $data = [])
|
public function initiateQuery(array $requiredModifiers, array $acl, array $data = [])
|
||||||
{
|
{
|
||||||
return $this->entityManager->createQueryBuilder()
|
return $this->entityManager->createQueryBuilder()
|
||||||
->from('ChillPersonBundle:Person', 'person');
|
->from(Person::class, 'person');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -110,7 +110,7 @@ class ListProjetProfessionnel implements ListInterface, ExportElementValidatedIn
|
|||||||
->add('fields', ChoiceType::class, [
|
->add('fields', ChoiceType::class, [
|
||||||
'multiple' => true,
|
'multiple' => true,
|
||||||
'expanded' => true,
|
'expanded' => true,
|
||||||
'choices_as_values' => true,
|
// 'choices_as_values' => true,
|
||||||
'label' => 'Fields to include in export',
|
'label' => 'Fields to include in export',
|
||||||
'choice_label' => fn ($key) => str_replace('__', '.', (string) $key),
|
'choice_label' => fn ($key) => str_replace('__', '.', (string) $key),
|
||||||
'choices' => array_combine($this->getFields(), $this->getFields()),
|
'choices' => array_combine($this->getFields(), $this->getFields()),
|
||||||
|
@ -1,28 +1,20 @@
|
|||||||
services:
|
services:
|
||||||
|
_defaults:
|
||||||
|
autowire: true
|
||||||
|
autoconfigure: true
|
||||||
|
|
||||||
Chill\JobBundle\Export\ListCSPerson:
|
Chill\JobBundle\Export\ListCSPerson:
|
||||||
arguments:
|
|
||||||
$em: '@doctrine.orm.entity_manager'
|
|
||||||
$translator: "@translator"
|
|
||||||
$translatableStringHelper: "@chill.main.helper.translatable_string"
|
|
||||||
$customFieldProvider: "@chill.custom_field.provider"
|
|
||||||
tags:
|
tags:
|
||||||
- { name: chill.export, alias: list_CSPerson }
|
- { name: chill.export, alias: list_CSPerson }
|
||||||
|
|
||||||
Chill\JobBundle\Export\ListCV:
|
Chill\JobBundle\Export\ListCV:
|
||||||
arguments:
|
|
||||||
$em: '@doctrine.orm.entity_manager'
|
|
||||||
tags:
|
tags:
|
||||||
- { name: chill.export, alias: list_CV }
|
- { name: chill.export, alias: list_CV }
|
||||||
|
|
||||||
Chill\JobBundle\Export\ListFrein:
|
Chill\JobBundle\Export\ListFrein:
|
||||||
arguments:
|
|
||||||
$em: '@doctrine.orm.entity_manager'
|
|
||||||
tags:
|
tags:
|
||||||
- { name: chill.export, alias: list_Frein }
|
- { name: chill.export, alias: list_Frein }
|
||||||
|
|
||||||
Chill\JobBundle\Export\ListProjetProfessionnel:
|
Chill\JobBundle\Export\ListProjetProfessionnel:
|
||||||
arguments:
|
|
||||||
$em: '@doctrine.orm.entity_manager'
|
|
||||||
tags:
|
tags:
|
||||||
- { name: chill.export, alias: list_ProjetProfessionnel }
|
- { name: chill.export, alias: list_ProjetProfessionnel }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user