namespace App\Container\Site; | namespace App\Container\Site; | ||||
use App\Factory\Site\BlockFactory; | use App\Factory\Site\BlockFactory; | ||||
use App\Repository\CollectifData\CollectifDataRepositoryQuery; | |||||
use App\Repository\CollectifData\CollectifDataStore; | |||||
use App\Repository\Site\BlockRepositoryQuery; | |||||
use App\Repository\Site\BlockStore; | |||||
class BlockContainer | class BlockContainer | ||||
{ | { | ||||
protected BlockFactory $factory; | protected BlockFactory $factory; | ||||
protected CollectifDataRepositoryQuery $repositoryQuery; | |||||
protected CollectifDataStore $store; | |||||
protected BlockRepositoryQuery $repositoryQuery; | |||||
protected BlockStore $store; | |||||
public function __construct( | public function __construct( | ||||
BlockFactory $factory, | |||||
CollectifDataRepositoryQuery $repositoryQuery, | |||||
CollectifDataStore $store | |||||
BlockFactory $factory, | |||||
BlockRepositoryQuery $repositoryQuery, | |||||
BlockStore $store | |||||
) { | ) { | ||||
$this->factory = $factory; | $this->factory = $factory; | ||||
$this->repositoryQuery = $repositoryQuery; | $this->repositoryQuery = $repositoryQuery; | ||||
return $this->factory; | return $this->factory; | ||||
} | } | ||||
public function getRepositoryQuery(): CollectifDataRepositoryQuery | |||||
public function getRepositoryQuery(): BlockRepositoryQuery | |||||
{ | { | ||||
return $this->repositoryQuery; | return $this->repositoryQuery; | ||||
} | } | ||||
public function getStore(): CollectifDataStore | |||||
public function getStore(): BlockStore | |||||
{ | { | ||||
return $this->store; | return $this->store; | ||||
} | } |
} | } | ||||
$fields[] = TextField::new('devAlias'); | $fields[] = TextField::new('devAlias'); | ||||
$fields[] = TextField::new('title'); | $fields[] = TextField::new('title'); | ||||
$fields[] = CKEditorField::new('description'); | |||||
$fields[] = CKEditorField::new('description')->hideOnIndex(); | |||||
$fields[] = StatusField::new('status'); | $fields[] = StatusField::new('status'); | ||||
return $fields; | return $fields; |
'revolt', | 'revolt', | ||||
'projectInspiring', | 'projectInspiring', | ||||
'projectBoost', | 'projectBoost', | ||||
'status', | |||||
]; | ]; | ||||
} | } | ||||
} | } |
namespace App\Factory\CollectifData; | namespace App\Factory\CollectifData; | ||||
use App\Entity\CollectifData; | |||||
use App\Entity\CollectifData\CollectifData; | |||||
class CollectifDataFactory | class CollectifDataFactory | ||||
{ | { |
namespace App\Form; | namespace App\Form; | ||||
use App\Entity\Territory; | |||||
use App\Entity\Thematic; | |||||
use App\Entity\Territory\Territory; | |||||
use App\Entity\Thematic\Thematic; | |||||
use Lc\PietroBundle\Model\AbstractData; | |||||
use Symfony\Component\Form\Extension\Core\Type\HiddenType; | use Symfony\Component\Form\Extension\Core\Type\HiddenType; | ||||
use Symfony\Component\Form\Extension\Core\Type\TextType; | use Symfony\Component\Form\Extension\Core\Type\TextType; | ||||
use Symfony\Bridge\Doctrine\Form\Type\EntityType; | use Symfony\Bridge\Doctrine\Form\Type\EntityType; | ||||
'expanded' => true, | 'expanded' => true, | ||||
'multiple' => true, | 'multiple' => true, | ||||
'choices' => [ | 'choices' => [ | ||||
\Lc\PietroBundle\Model\AbstractData::getCategory() | |||||
AbstractData::getCategory() | |||||
] | ] | ||||
]) | ]) | ||||
->add('thematic', EntityType::class, [ | ->add('thematic', EntityType::class, [ |
<a class="link-carto link-slide" href="{{ path('app_carto_interactive') }}" | <a class="link-carto link-slide" href="{{ path('app_carto_interactive') }}" | ||||
title="Découvrir la cartographie">Découvrir la cartographie</a> | title="Découvrir la cartographie">Découvrir la cartographie</a> | ||||
<div> | <div> | ||||
<a class="link-concert" href="" title="Participer à la concertation">Participer à la | |||||
<a class="link-concert" href="{{ path('app_contribuate') }}" title="Participer à la concertation">Participer à la | |||||
concertation</a> | concertation</a> | ||||
</div> | </div> | ||||
</div> | </div> |