diff --git a/src/Bundle/ChillJobBundle/src/Controller/CSReportController.php b/src/Bundle/ChillJobBundle/src/Controller/CSReportController.php
index e6a3c4517..fcb2304da 100644
--- a/src/Bundle/ChillJobBundle/src/Controller/CSReportController.php
+++ b/src/Bundle/ChillJobBundle/src/Controller/CSReportController.php
@@ -45,18 +45,18 @@ class CSReportController extends AbstractController
$kinds = [];
- if ($this->isGranted(CSConnectesVoter::REPORT_CV, $person)) {
+// if ($this->isGranted(CSConnectesVoter::REPORT_CV, $person)) {
$kinds['cvs'] = CV::class;
- }
+// }
- if ($this->isGranted(CSConnectesVoter::REPORT_NEW, $person)) {
+// if ($this->isGranted(CSConnectesVoter::REPORT_NEW, $person)) {
$kinds = \array_merge($kinds, [
'cvs' => CV::class,
'freins' => Frein::class,
'immersions' => Immersion::class,
'projet_professionnels' => ProjetProfessionnel::class,
]);
- }
+// }
foreach ($kinds as $key => $className) {
$ordering = match ($key) {
diff --git a/src/Bundle/ChillJobBundle/src/DependencyInjection/ChillJobExtension.php b/src/Bundle/ChillJobBundle/src/DependencyInjection/ChillJobExtension.php
index beadae074..94c0ce998 100644
--- a/src/Bundle/ChillJobBundle/src/DependencyInjection/ChillJobExtension.php
+++ b/src/Bundle/ChillJobBundle/src/DependencyInjection/ChillJobExtension.php
@@ -11,9 +11,17 @@ declare(strict_types=1);
namespace Chill\JobBundle\DependencyInjection;
+use Chill\JobBundle\Controller\CSCrudReportController;
use Chill\JobBundle\Controller\CSPersonController;
use Chill\JobBundle\Entity\CSPerson;
-use Chill\JobBundle\Form\CSPersonPersonalSituationType;
+use Chill\JobBundle\Entity\CV;
+use Chill\JobBundle\Entity\Frein;
+use Chill\JobBundle\Entity\Immersion;
+use Chill\JobBundle\Entity\ProjetProfessionnel;
+use Chill\JobBundle\Form\CVType;
+use Chill\JobBundle\Form\FreinType;
+use Chill\JobBundle\Form\ImmersionType;
+use Chill\JobBundle\Form\ProjetProfessionnelType;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
@@ -61,21 +69,98 @@ class ChillJobExtension extends Extension implements PrependExtensionInterface
'name' => 'job',
'base_role' => 'ROLE_USER',
'base_path' => '/person/job/',
- /* 'form_class' => CSPersonPersonalSituationType::class,
+ ],
+ [
+ 'class' => CV::class,
+ 'controller' => CSCrudReportController::class,
+ 'name' => 'cscv',
+ 'base_role' => 'ROLE_USER',
+ 'base_path' => '/person/report/cv',
+ 'form_class' => CVType::class,
'actions' => [
'index' => [
'role' => 'ROLE_USER',
- 'template' => '@ChillPerson/CRUD/index.html.twig',
+ 'template' => '@ChillJob/CV/index.html.twig',
],
'new' => [
'role' => 'ROLE_USER',
- 'template' => '@ChillPerson/CRUD/new.html.twig',
+ 'template' => '@ChillJob/CV/new.html.twig',
],
'edit' => [
'role' => 'ROLE_USER',
- 'template' => '@ChillPerson/CRUD/edit.html.twig',
+ 'template' => '@ChillJob/CV/edit.html.twig',
],
- ],*/
+ ],
+ ],
+ [
+ 'class' => ProjetProfessionnel::class,
+ 'controller' => CSCrudReportController::class,
+ 'name' => 'projet_prof',
+ 'base_role' => 'ROLE_USER',
+ 'base_path' => '/person/report/projet-professionnel',
+ 'form_class' => ProjetProfessionnelType::class,
+ 'actions' => [
+ 'view' => [
+ 'role' => 'ROLE_USER',
+ 'template' => '@ChillJob/ProjetProfessionnel/view.html.twig',
+ ],
+ 'new' => [
+ 'role' => 'ROLE_USER',
+ 'template' => '@ChillJob/ProjetProfessionnel/new.html.twig',
+ ],
+ 'edit' => [
+ 'role' => 'ROLE_USER',
+ 'template' => '@ChillJob/ProjetProfessionnel/edit.html.twig',
+ ],
+ ],
+ ],
+ [
+ 'class' => Frein::class,
+ 'controller' => CSCrudReportController::class,
+ 'name' => 'csfrein',
+ 'base_role' => 'ROLE_USER',
+ 'base_path' => '/person/report/frein',
+ 'form_class' => FreinType::class,
+ 'actions' => [
+ 'view' => [
+ 'role' => 'ROLE_USER',
+ 'template' => '@ChillJob/Frein/view.html.twig',
+ ],
+ 'new' => [
+ 'role' => 'ROLE_USER',
+ 'template' => '@ChillJob/Frein/new.html.twig',
+ ],
+ 'edit' => [
+ 'role' => 'ROLE_USER',
+ 'template' => '@ChillJob/Frein/edit.html.twig',
+ ],
+ ],
+ ],
+ [
+ 'class' => Immersion::class,
+ 'controller' => CSCrudReportController::class,
+ 'name' => 'immersion',
+ 'base_role' => 'ROLE_USER',
+ 'base_path' => '/person/report/immersion',
+ 'form_class' => ImmersionType::class,
+ 'actions' => [
+ 'view' => [
+ 'role' => 'ROLE_USER',
+ 'template' => '@ChillJob/Immersion/view.html.twig',
+ ],
+ 'new' => [
+ 'role' => 'ROLE_USER',
+ 'template' => '@ChillJob/Immersion/new.html.twig',
+ ],
+ 'bilan' => [
+ 'role' => 'ROLE_USER',
+ 'template' => '@ChillJob/Immersion/edit-bilan.html.twig',
+ ],
+ 'edit' => [
+ 'role' => 'ROLE_USER',
+ 'template' => '@ChillJob/Immersion/edit.html.twig',
+ ],
+ ],
],
],
]);
diff --git a/src/Bundle/ChillJobBundle/src/Form/CSPersonDispositifsType.php b/src/Bundle/ChillJobBundle/src/Form/CSPersonDispositifsType.php
index 66066e8a2..b30a07153 100644
--- a/src/Bundle/ChillJobBundle/src/Form/CSPersonDispositifsType.php
+++ b/src/Bundle/ChillJobBundle/src/Form/CSPersonDispositifsType.php
@@ -92,9 +92,7 @@ class CSPersonDispositifsType extends AbstractType
])
->add('prescripteur', PickThirdpartyDynamicType::class, [
'required' => false,
-// 'types' => ['prescripteur'],
'label' => 'Prescripteur',
-// 'center' => $options['center'],
])
->add('dispositifsNotes', TextareaType::class, [
'required' => false,
diff --git a/src/Bundle/ChillJobBundle/src/Form/CSPersonPersonalSituationType.php b/src/Bundle/ChillJobBundle/src/Form/CSPersonPersonalSituationType.php
index 9fcb39f91..ef2e8ef59 100644
--- a/src/Bundle/ChillJobBundle/src/Form/CSPersonPersonalSituationType.php
+++ b/src/Bundle/ChillJobBundle/src/Form/CSPersonPersonalSituationType.php
@@ -149,8 +149,6 @@ class CSPersonPersonalSituationType extends AbstractType
'choice_label' => fn ($k) => 'handicap_recommandation.'.$k,
])
->add('handicapAccompagnement', PickThirdpartyDynamicType::class, [
-// 'center' => $options['center'],
-// 'types' => ['prescripteur'],
'required' => false,
'multiple' => false,
])
diff --git a/src/Bundle/ChillJobBundle/src/Form/ImmersionType.php b/src/Bundle/ChillJobBundle/src/Form/ImmersionType.php
index 833143deb..e9414902c 100644
--- a/src/Bundle/ChillJobBundle/src/Form/ImmersionType.php
+++ b/src/Bundle/ChillJobBundle/src/Form/ImmersionType.php
@@ -11,6 +11,7 @@ declare(strict_types=1);
namespace Chill\JobBundle\Form;
+use Chill\MainBundle\Form\Type\PickAddressType;
use Chill\ThirdPartyBundle\Form\Type\PickThirdpartyDynamicType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
@@ -22,7 +23,6 @@ use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Chill\MainBundle\Form\Type\DateIntervalType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Chill\JobBundle\Entity\Immersion;
-use Chill\MainBundle\Form\Type\AddressType;
class ImmersionType extends AbstractType
{
@@ -31,8 +31,6 @@ class ImmersionType extends AbstractType
if ('immersion' === $options['step']) {
$builder
->add('entreprise', PickThirdpartyDynamicType::class, [
- 'center' => $options['center'],
- 'types' => ['entreprise'],
'label' => "Identité de l'entreprise",
'required' => true,
'multiple' => false,
@@ -65,11 +63,9 @@ class ImmersionType extends AbstractType
'label' => 'Email de la structure',
'required' => false,
])
- ->add('structureAccAddress', AddressType::class, [
+ ->add('structureAccAddress', PickAddressType::class, [
'label' => 'Addresse de la structure d\'accompagnement',
'required' => false,
- 'has_valid_from' => false,
- 'null_if_empty' => true,
])
->add('posteTitle', TextType::class, [
'label' => 'Intitulé du poste',
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/CSPerson/dispositifs_edit.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/CSPerson/dispositifs_edit.html.twig
index 5fe59d910..5e0c53d87 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/CSPerson/dispositifs_edit.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/CSPerson/dispositifs_edit.html.twig
@@ -6,7 +6,7 @@
{% block title 'Dispositifs de ' ~ entity.person.firstName ~ ' ' ~ entity.person.lastName %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillPerson/CRUD/_edit_content.html.twig' %}
{% block crud_content_header %}
Dispositifs
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/CSPerson/personal_situation_edit.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/CSPerson/personal_situation_edit.html.twig
index 771153d0c..5b4982ede 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/CSPerson/personal_situation_edit.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/CSPerson/personal_situation_edit.html.twig
@@ -2,7 +2,7 @@
{% block title 'Situation personnelle de ' ~ entity.person.firstName ~ ' ' ~ entity.person.lastName %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillPerson/CRUD/_edit_content.html.twig' %}
{% block crud_content_header %}
Situation personnelle
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/CV/edit.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/CV/edit.html.twig
index b0d11ec8c..9d674137f 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/CV/edit.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/CV/edit.html.twig
@@ -1,4 +1,4 @@
-{% extends '@ChillPerson/layout.html.twig' %}
+{% extends "@ChillPerson/Person/layout.html.twig" %}
{% set person = entity.person %}
{% set activeRouteKey = '' %}
@@ -24,7 +24,7 @@
{% endblock %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillPerson/CRUD/_edit_content.html.twig' %}
{% block crud_content_form_rows %}
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/CV/new.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/CV/new.html.twig
index 8d3b970e3..fc285b50f 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/CV/new.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/CV/new.html.twig
@@ -1,4 +1,4 @@
-{% extends '@ChillPerson/layout.html.twig' %}
+{% extends "@ChillPerson/Person/layout.html.twig" %}
{% set person = entity.person %}
{% set activeRouteKey = '' %}
@@ -24,7 +24,7 @@
{% endblock %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillMain/CRUD/_new_content.html.twig' %}
{% block crud_content_header %}
{{ ('crud.'~crud_name~'.title_new')|trans({'%person%': person|chill_entity_render_string }) }}
@@ -48,7 +48,7 @@
{% block content_form_actions_back %}
-
+
{{ 'Cancel'|trans }}
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/CV/view.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/CV/view.html.twig
index 89655a425..ec938933a 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/CV/view.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/CV/view.html.twig
@@ -1,6 +1,6 @@
{% extends '@ChillPerson/CRUD/view.html.twig' %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillPerson/CRUD/_view_content.html.twig' %}
{% block crud_content_header %}
{{ ('crud.' ~ crud_name ~ '.title_view')|trans({'%person%': person|chill_entity_render_string }) }}
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/Frein/edit.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/Frein/edit.html.twig
index 296ea7d56..1b685203a 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/Frein/edit.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/Frein/edit.html.twig
@@ -1,4 +1,4 @@
-{% extends '@ChillPerson/layout.html.twig' %}
+{% extends "@ChillPerson/Person/layout.html.twig" %}
{% set person = entity.person %}
{% set activeRouteKey = '' %}
@@ -7,7 +7,7 @@
{% include('@ChillMain/CRUD/_edit_title.html.twig') %}
{% endblock title %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillPerson/CRUD/_edit_content.html.twig' %}
{% block content_form_actions_back %}
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/Frein/new.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/Frein/new.html.twig
index 415f1f610..bdf6d462e 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/Frein/new.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/Frein/new.html.twig
@@ -1,4 +1,4 @@
-{% extends '@ChillPerson/layout.html.twig' %}
+{% extends "@ChillPerson/Person/layout.html.twig" %}
{% set person = entity.person %}
{% set activeRouteKey = '' %}
@@ -7,7 +7,7 @@
{% embed('@ChillPerson/CRUD/_new_title.html.twig') %}{% endembed %}
{% endblock %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillMain/CRUD/_new_content.html.twig' %}
{% block crud_content_header %}
{{ ('crud.'~crud_name~'.title_new')|trans({'%person%': person|chill_entity_render_string }) }}
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/Frein/view.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/Frein/view.html.twig
index a93f9dbf6..39ef73b64 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/Frein/view.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/Frein/view.html.twig
@@ -1,6 +1,6 @@
{% extends '@ChillPerson/CRUD/view.html.twig' %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillPerson/CRUD/_view_content.html.twig' %}
{% block crud_content_header %}
{{ ('crud.' ~ crud_name ~ '.title_view')|trans({'%person%': person|chill_entity_render_string }) }}
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/edit-bilan.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/edit-bilan.html.twig
index b5449a158..f6b27109c 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/edit-bilan.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/edit-bilan.html.twig
@@ -1,4 +1,4 @@
-{% extends '@ChillPerson/layout.html.twig' %}
+{% extends "@ChillPerson/Person/layout.html.twig" %}
{% set person = entity.person %}
{% set activeRouteKey = '' %}
@@ -7,7 +7,7 @@
Bilan d'immersion
{% endblock title %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillPerson/CRUD/_edit_content.html.twig' %}
{% block crud_content_header %}
Bilan d'immersion
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/edit.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/edit.html.twig
index 8fad837dd..8a383ac82 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/edit.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/edit.html.twig
@@ -1,4 +1,4 @@
-{% extends '@ChillPerson/layout.html.twig' %}
+{% extends "@ChillPerson/Person/layout.html.twig" %}
{% set person = entity.person %}
{% set activeRouteKey = '' %}
@@ -7,7 +7,7 @@
{% include('@ChillMain/CRUD/_edit_title.html.twig') %}
{% endblock title %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillPerson/CRUD/_edit_content.html.twig' %}
{% block content_form_actions_back %}
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/new.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/new.html.twig
index 20da94044..4410bf1db 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/new.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/new.html.twig
@@ -1,4 +1,4 @@
-{% extends '@ChillPerson/layout.html.twig' %}
+{% extends "@ChillPerson/Person/layout.html.twig" %}
{% set person = entity.person %}
{% set activeRouteKey = '' %}
@@ -7,7 +7,7 @@
{% embed('@ChillPerson/CRUD/_new_title.html.twig') %}{% endembed %}
{% endblock %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillMain/CRUD/_new_content.html.twig' %}
{% block crud_content_header %}
{{ ('crud.'~crud_name~'.title_new')|trans({'%person%': person|chill_entity_render_string }) }}
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/view.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/view.html.twig
index 26d4c2efc..c01568df4 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/view.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/Immersion/view.html.twig
@@ -1,6 +1,6 @@
{% extends '@ChillPerson/CRUD/view.html.twig' %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillPerson/CRUD/_view_content.html.twig' %}
{% block crud_content_header %}
{{ ('crud.' ~ crud_name ~ '.title_view')|trans({'%person%': person|chill_entity_render_string }) }}
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/ProjetProfessionnel/edit.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/ProjetProfessionnel/edit.html.twig
index 2a25f9186..462807322 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/ProjetProfessionnel/edit.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/ProjetProfessionnel/edit.html.twig
@@ -1,4 +1,4 @@
-{% extends '@ChillPerson/layout.html.twig' %}
+{% extends "@ChillPerson/Person/layout.html.twig" %}
{% set person = entity.person %}
{% set activeRouteKey = '' %}
@@ -7,7 +7,7 @@
{% include('@ChillMain/CRUD/_edit_title.html.twig') %}
{% endblock title %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillPerson/CRUD/_edit_content.html.twig' %}
{% block crud_content_header %}
{{ ('crud.'~crud_name~'.title_edit')|trans({'%person%': person|chill_entity_render_string }) }}
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/ProjetProfessionnel/new.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/ProjetProfessionnel/new.html.twig
index 9ccc87bdb..d67f8a218 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/ProjetProfessionnel/new.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/ProjetProfessionnel/new.html.twig
@@ -1,4 +1,4 @@
-{% extends '@ChillPerson/layout.html.twig' %}
+{% extends "@ChillPerson/Person/layout.html.twig" %}
{% set person = entity.person %}
{% set activeRouteKey = '' %}
@@ -7,7 +7,7 @@
{% embed('@ChillPerson/CRUD/_new_title.html.twig') %}{% endembed %}
{% endblock %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillMain/CRUD/_new_content.html.twig' %}
{% block crud_content_header %}
{{ ('crud.'~crud_name~'.title_new')|trans({'%person%': person|chill_entity_render_string }) }}
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/ProjetProfessionnel/view.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/ProjetProfessionnel/view.html.twig
index fa3a28329..6f5cb22c0 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/ProjetProfessionnel/view.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/ProjetProfessionnel/view.html.twig
@@ -1,6 +1,6 @@
{% extends '@ChillPerson/CRUD/view.html.twig' %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillPerson/CRUD/_view_content.html.twig' %}
{% block crud_content_header %}
{{ ('crud.' ~ crud_name ~ '.title_view')|trans({'%person%': person|chill_entity_render_string }) }}
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/Report/delete.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/Report/delete.html.twig
index 5b09e3622..6f1013d0c 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/Report/delete.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/Report/delete.html.twig
@@ -3,7 +3,7 @@
{% set person = entity.person %}
{% set activeRouteKey = '' %}
-{% block personcontent %}
+{% block content %}
{% embed '@ChillMain/CRUD/_delete_content.html.twig' %}
{% block content_form_actions_back %}
diff --git a/src/Bundle/ChillJobBundle/src/Resources/views/Report/index.html.twig b/src/Bundle/ChillJobBundle/src/Resources/views/Report/index.html.twig
index b8fe5105b..f9762c445 100644
--- a/src/Bundle/ChillJobBundle/src/Resources/views/Report/index.html.twig
+++ b/src/Bundle/ChillJobBundle/src/Resources/views/Report/index.html.twig
@@ -46,7 +46,7 @@
-
-
+
Nouveau CV
@@ -108,7 +108,7 @@
-
-
+
Nouveau rapport "frein"
@@ -166,7 +166,7 @@
-
-
+
Nouvelle immersion
@@ -242,7 +242,7 @@
-
-
+
Nouveau projet professionnel
diff --git a/src/Bundle/ChillJobBundle/src/migrations/Version20240424095147.php b/src/Bundle/ChillJobBundle/src/migrations/Version20240424095147.php
index 78f100e43..4b75d8e1b 100644
--- a/src/Bundle/ChillJobBundle/src/migrations/Version20240424095147.php
+++ b/src/Bundle/ChillJobBundle/src/migrations/Version20240424095147.php
@@ -24,7 +24,6 @@ final class Version20240424095147 extends AbstractMigration
public function up(Schema $schema): void
{
$this->addSql('CREATE SCHEMA chill_csconnectes');
- $this->addSql('DROP SEQUENCE chill_person_accompanying_period_work_eval_doc_id_seq CASCADE');
$this->addSql('CREATE SEQUENCE chill_csconnectes.cv_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE chill_csconnectes.cv_experience_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE SEQUENCE chill_csconnectes.cv_formation_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
@@ -107,7 +106,6 @@ final class Version20240424095147 extends AbstractMigration
public function down(Schema $schema): void
{
- $this->addSql('CREATE SCHEMA public');
$this->addSql('DROP SEQUENCE chill_csconnectes.cv_id_seq CASCADE');
$this->addSql('DROP SEQUENCE chill_csconnectes.cv_experience_id_seq CASCADE');
$this->addSql('DROP SEQUENCE chill_csconnectes.cv_formation_id_seq CASCADE');
@@ -155,5 +153,6 @@ final class Version20240424095147 extends AbstractMigration
$this->addSql('DROP TABLE chill_csconnectes.projetprofessionnel_valide');
$this->addSql('DROP TABLE chill_csconnectes.rome_appellation');
$this->addSql('DROP TABLE chill_csconnectes.rome_metier');
+ $this->addSql('DROP SCHEMA chill_csconnectes');
}
}