@@ -3,19 +3,19 @@ | |||
namespace App\Container\Site; | |||
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 | |||
{ | |||
protected BlockFactory $factory; | |||
protected CollectifDataRepositoryQuery $repositoryQuery; | |||
protected CollectifDataStore $store; | |||
protected BlockRepositoryQuery $repositoryQuery; | |||
protected BlockStore $store; | |||
public function __construct( | |||
BlockFactory $factory, | |||
CollectifDataRepositoryQuery $repositoryQuery, | |||
CollectifDataStore $store | |||
BlockFactory $factory, | |||
BlockRepositoryQuery $repositoryQuery, | |||
BlockStore $store | |||
) { | |||
$this->factory = $factory; | |||
$this->repositoryQuery = $repositoryQuery; | |||
@@ -27,12 +27,12 @@ class BlockContainer | |||
return $this->factory; | |||
} | |||
public function getRepositoryQuery(): CollectifDataRepositoryQuery | |||
public function getRepositoryQuery(): BlockRepositoryQuery | |||
{ | |||
return $this->repositoryQuery; | |||
} | |||
public function getStore(): CollectifDataStore | |||
public function getStore(): BlockStore | |||
{ | |||
return $this->store; | |||
} |
@@ -28,7 +28,7 @@ class PageCrudController extends AbstractCrudController | |||
} | |||
$fields[] = TextField::new('devAlias'); | |||
$fields[] = TextField::new('title'); | |||
$fields[] = CKEditorField::new('description'); | |||
$fields[] = CKEditorField::new('description')->hideOnIndex(); | |||
$fields[] = StatusField::new('status'); | |||
return $fields; |
@@ -26,6 +26,7 @@ class IndividualDataFieldDefinition extends PietroIndividualDataFieldDefinition | |||
'revolt', | |||
'projectInspiring', | |||
'projectBoost', | |||
'status', | |||
]; | |||
} | |||
} |
@@ -2,7 +2,7 @@ | |||
namespace App\Factory\CollectifData; | |||
use App\Entity\CollectifData; | |||
use App\Entity\CollectifData\CollectifData; | |||
class CollectifDataFactory | |||
{ |
@@ -2,8 +2,9 @@ | |||
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\TextType; | |||
use Symfony\Bridge\Doctrine\Form\Type\EntityType; | |||
@@ -37,7 +38,7 @@ class SearchListForm extends AbstractType | |||
'expanded' => true, | |||
'multiple' => true, | |||
'choices' => [ | |||
\Lc\PietroBundle\Model\AbstractData::getCategory() | |||
AbstractData::getCategory() | |||
] | |||
]) | |||
->add('thematic', EntityType::class, [ |
@@ -39,7 +39,7 @@ | |||
<a class="link-carto link-slide" href="{{ path('app_carto_interactive') }}" | |||
title="Découvrir la cartographie">Découvrir la cartographie</a> | |||
<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> | |||
</div> | |||
</div> |