Browse Source

correctif bug

develop
Charly 3 years ago
parent
commit
941afba59f
6 changed files with 17 additions and 15 deletions
  1. +9
    -9
      src/Container/Site/BlockContainer.php
  2. +1
    -1
      src/Controller/Admin/PageCrudController.php
  3. +1
    -0
      src/Definition/Field/IndividualData/IndividualDataFieldDefinition.php
  4. +1
    -1
      src/Factory/CollectifData/CollectifDataFactory.php
  5. +4
    -3
      src/Form/SearchListForm.php
  6. +1
    -1
      templates/frontend/home.html.twig

+ 9
- 9
src/Container/Site/BlockContainer.php View File

@@ -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;
}

+ 1
- 1
src/Controller/Admin/PageCrudController.php View File

@@ -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;

+ 1
- 0
src/Definition/Field/IndividualData/IndividualDataFieldDefinition.php View File

@@ -26,6 +26,7 @@ class IndividualDataFieldDefinition extends PietroIndividualDataFieldDefinition
'revolt',
'projectInspiring',
'projectBoost',
'status',
];
}
}

+ 1
- 1
src/Factory/CollectifData/CollectifDataFactory.php View File

@@ -2,7 +2,7 @@

namespace App\Factory\CollectifData;

use App\Entity\CollectifData;
use App\Entity\CollectifData\CollectifData;

class CollectifDataFactory
{

+ 4
- 3
src/Form/SearchListForm.php View File

@@ -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, [

+ 1
- 1
templates/frontend/home.html.twig View File

@@ -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>

Loading…
Cancel
Save