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

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

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

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

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

'revolt', 'revolt',
'projectInspiring', 'projectInspiring',
'projectBoost', 'projectBoost',
'status',
]; ];
} }
} }

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



namespace App\Factory\CollectifData; namespace App\Factory\CollectifData;


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


class CollectifDataFactory class CollectifDataFactory
{ {

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



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

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

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

Loading…
Cancel
Save