mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
cleaning previous
This commit is contained in:
parent
999d4e2038
commit
087270829e
@ -35,7 +35,6 @@ class UserCurrentLocationType extends AbstractType
|
||||
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
//dump($options);
|
||||
$builder
|
||||
->add('currentLocation', EntityType::class, [
|
||||
'class' => Location::class,
|
||||
|
@ -11,10 +11,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters;
|
||||
|
||||
//use Chill\MainBundle\Entity\Location;
|
||||
use Chill\MainBundle\Export\FilterInterface;
|
||||
use Chill\MainBundle\Form\UserCurrentLocationType;
|
||||
//use Chill\MainBundle\Repository\LocationRepository;
|
||||
use Chill\MainBundle\Templating\TranslatableStringHelper;
|
||||
use Chill\PersonBundle\Export\Declarations;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
@ -22,15 +20,12 @@ use Symfony\Component\Form\FormBuilderInterface;
|
||||
|
||||
class AdministrativeLocationFilter implements FilterInterface
|
||||
{
|
||||
//private LocationRepository $locationRepository;
|
||||
|
||||
private TranslatableStringHelper $translatableStringHelper;
|
||||
|
||||
public function __construct(
|
||||
//LocationRepository $locationRepository,
|
||||
TranslatableStringHelper $translatableStringHelper
|
||||
) {
|
||||
//$this->locationRepository = $locationRepository;
|
||||
$this->translatableStringHelper = $translatableStringHelper;
|
||||
}
|
||||
|
||||
@ -55,16 +50,6 @@ class AdministrativeLocationFilter implements FilterInterface
|
||||
public function buildForm(FormBuilderInterface $builder)
|
||||
{
|
||||
|
||||
//$builder->add('accepted_locations', EntityType::class, [
|
||||
// 'class' => Location::class,
|
||||
// 'choices' => $this->locationRepository->findByPublicLocations(),
|
||||
// 'choice_label' => function (Location $l) {
|
||||
// return $l->getName() . ' (' . $this->translatableStringHelper->localize($l->getLocationType()->getTitle()) . ')';
|
||||
// },
|
||||
// 'multiple' => true,
|
||||
// 'expanded' => true,
|
||||
//]);
|
||||
|
||||
$builder->add('accepted_locations', UserCurrentLocationType::class, [
|
||||
'label' => 'Accepted locations',
|
||||
'label_attr' => [
|
||||
|
Loading…
x
Reference in New Issue
Block a user