Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
958070bd54 | |||
0861ed2112 | |||
120906c0c5 | |||
911f3a24cc | |||
0a85c0854b | |||
30f58aca76 |
@ -5,6 +5,7 @@
|
|||||||
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
|
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
|
||||||
parameters:
|
parameters:
|
||||||
app.jwtsecret : '%env(JWT_SECRET)%'
|
app.jwtsecret : '%env(JWT_SECRET)%'
|
||||||
|
cv_directory: '%kernel.project_dir%/public/cv'
|
||||||
services:
|
services:
|
||||||
# default configuration for services in *this* file
|
# default configuration for services in *this* file
|
||||||
_defaults:
|
_defaults:
|
||||||
|
@ -1,38 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace DoctrineMigrations;
|
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Auto-generated Migration: Please modify to your needs!
|
|
||||||
*/
|
|
||||||
final class Version20241121141451 extends AbstractMigration
|
|
||||||
{
|
|
||||||
public function getDescription(): string
|
|
||||||
{
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
public function up(Schema $schema): void
|
|
||||||
{
|
|
||||||
// this up() migration is auto-generated, please modify it to your needs
|
|
||||||
$this->addSql('DROP SEQUENCE status_id_seq CASCADE');
|
|
||||||
$this->addSql('DROP TABLE status');
|
|
||||||
$this->addSql('ALTER TABLE userapp ADD is_verified BOOLEAN NOT NULL');
|
|
||||||
$this->addSql('ALTER TABLE userapp ALTER roles SET NOT NULL');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function down(Schema $schema): void
|
|
||||||
{
|
|
||||||
// this down() migration is auto-generated, please modify it to your needs
|
|
||||||
$this->addSql('CREATE SCHEMA public');
|
|
||||||
$this->addSql('CREATE SEQUENCE status_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
|
|
||||||
$this->addSql('CREATE TABLE status (id INT NOT NULL, label VARCHAR(255) NOT NULL, PRIMARY KEY(id))');
|
|
||||||
$this->addSql('ALTER TABLE userApp DROP is_verified');
|
|
||||||
$this->addSql('ALTER TABLE userApp ALTER roles DROP NOT NULL');
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,40 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace DoctrineMigrations;
|
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Auto-generated Migration: Please modify to your needs!
|
|
||||||
*/
|
|
||||||
final class Version20241121141722 extends AbstractMigration
|
|
||||||
{
|
|
||||||
public function getDescription(): string
|
|
||||||
{
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
public function up(Schema $schema): void
|
|
||||||
{
|
|
||||||
// this up() migration is auto-generated, please modify it to your needs
|
|
||||||
$this->addSql('ALTER TABLE userapp ALTER first_name DROP NOT NULL');
|
|
||||||
$this->addSql('ALTER TABLE userapp ALTER last_name DROP NOT NULL');
|
|
||||||
$this->addSql('ALTER TABLE userapp ALTER tel DROP NOT NULL');
|
|
||||||
$this->addSql('ALTER TABLE userapp ALTER address DROP NOT NULL');
|
|
||||||
$this->addSql('ALTER TABLE userapp ALTER mail DROP NOT NULL');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function down(Schema $schema): void
|
|
||||||
{
|
|
||||||
// this down() migration is auto-generated, please modify it to your needs
|
|
||||||
$this->addSql('CREATE SCHEMA public');
|
|
||||||
$this->addSql('ALTER TABLE userApp ALTER first_name SET NOT NULL');
|
|
||||||
$this->addSql('ALTER TABLE userApp ALTER last_name SET NOT NULL');
|
|
||||||
$this->addSql('ALTER TABLE userApp ALTER tel SET NOT NULL');
|
|
||||||
$this->addSql('ALTER TABLE userApp ALTER address SET NOT NULL');
|
|
||||||
$this->addSql('ALTER TABLE userApp ALTER mail SET NOT NULL');
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,31 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace DoctrineMigrations;
|
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Auto-generated Migration: Please modify to your needs!
|
|
||||||
*/
|
|
||||||
final class Version20241121141818 extends AbstractMigration
|
|
||||||
{
|
|
||||||
public function getDescription(): string
|
|
||||||
{
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
public function up(Schema $schema): void
|
|
||||||
{
|
|
||||||
// this up() migration is auto-generated, please modify it to your needs
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public function down(Schema $schema): void
|
|
||||||
{
|
|
||||||
// this down() migration is auto-generated, please modify it to your needs
|
|
||||||
$this->addSql('CREATE SCHEMA public');
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,32 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace DoctrineMigrations;
|
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Auto-generated Migration: Please modify to your needs!
|
|
||||||
*/
|
|
||||||
final class Version20241121141912 extends AbstractMigration
|
|
||||||
{
|
|
||||||
public function getDescription(): string
|
|
||||||
{
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
public function up(Schema $schema): void
|
|
||||||
{
|
|
||||||
// this up() migration is auto-generated, please modify it to your needs
|
|
||||||
$this->addSql('ALTER TABLE userapp ALTER is_verified DROP NOT NULL');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function down(Schema $schema): void
|
|
||||||
{
|
|
||||||
// this down() migration is auto-generated, please modify it to your needs
|
|
||||||
$this->addSql('CREATE SCHEMA public');
|
|
||||||
$this->addSql('ALTER TABLE userApp ALTER is_verified SET NOT NULL');
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,34 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace DoctrineMigrations;
|
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Auto-generated Migration: Please modify to your needs!
|
|
||||||
*/
|
|
||||||
final class Version20241121142119 extends AbstractMigration
|
|
||||||
{
|
|
||||||
public function getDescription(): string
|
|
||||||
{
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
public function up(Schema $schema): void
|
|
||||||
{
|
|
||||||
// this up() migration is auto-generated, please modify it to your needs
|
|
||||||
$this->addSql('ALTER TABLE intern ALTER cover_letter DROP NOT NULL');
|
|
||||||
$this->addSql('ALTER TABLE intern ALTER resume DROP NOT NULL');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function down(Schema $schema): void
|
|
||||||
{
|
|
||||||
// this down() migration is auto-generated, please modify it to your needs
|
|
||||||
$this->addSql('CREATE SCHEMA public');
|
|
||||||
$this->addSql('ALTER TABLE intern ALTER cover_letter SET NOT NULL');
|
|
||||||
$this->addSql('ALTER TABLE intern ALTER resume SET NOT NULL');
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,32 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace DoctrineMigrations;
|
|
||||||
|
|
||||||
use Doctrine\DBAL\Schema\Schema;
|
|
||||||
use Doctrine\Migrations\AbstractMigration;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Auto-generated Migration: Please modify to your needs!
|
|
||||||
*/
|
|
||||||
final class Version20241121145353 extends AbstractMigration
|
|
||||||
{
|
|
||||||
public function getDescription(): string
|
|
||||||
{
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
|
|
||||||
public function up(Schema $schema): void
|
|
||||||
{
|
|
||||||
// this up() migration is auto-generated, please modify it to your needs
|
|
||||||
$this->addSql('ALTER TABLE employee ALTER company_id DROP NOT NULL');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function down(Schema $schema): void
|
|
||||||
{
|
|
||||||
// this down() migration is auto-generated, please modify it to your needs
|
|
||||||
$this->addSql('CREATE SCHEMA public');
|
|
||||||
$this->addSql('ALTER TABLE employee ALTER company_id SET NOT NULL');
|
|
||||||
}
|
|
||||||
}
|
|
@ -10,7 +10,7 @@ use Doctrine\Migrations\AbstractMigration;
|
|||||||
/**
|
/**
|
||||||
* Auto-generated Migration: Please modify to your needs!
|
* Auto-generated Migration: Please modify to your needs!
|
||||||
*/
|
*/
|
||||||
final class Version20241121142432 extends AbstractMigration
|
final class Version20250408091726 extends AbstractMigration
|
||||||
{
|
{
|
||||||
public function getDescription(): string
|
public function getDescription(): string
|
||||||
{
|
{
|
||||||
@ -20,12 +20,25 @@ final class Version20241121142432 extends AbstractMigration
|
|||||||
public function up(Schema $schema): void
|
public function up(Schema $schema): void
|
||||||
{
|
{
|
||||||
// this up() migration is auto-generated, please modify it to your needs
|
// this up() migration is auto-generated, please modify it to your needs
|
||||||
|
$this->addSql(<<<'SQL'
|
||||||
|
ALTER TABLE intern ADD resume_name TEXT DEFAULT NULL
|
||||||
|
SQL);
|
||||||
|
$this->addSql(<<<'SQL'
|
||||||
|
ALTER TABLE intern ALTER resume TYPE TEXT
|
||||||
|
SQL);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function down(Schema $schema): void
|
public function down(Schema $schema): void
|
||||||
{
|
{
|
||||||
// this down() migration is auto-generated, please modify it to your needs
|
// this down() migration is auto-generated, please modify it to your needs
|
||||||
$this->addSql('CREATE SCHEMA public');
|
$this->addSql(<<<'SQL'
|
||||||
|
CREATE SCHEMA public
|
||||||
|
SQL);
|
||||||
|
$this->addSql(<<<'SQL'
|
||||||
|
ALTER TABLE intern DROP resume_name
|
||||||
|
SQL);
|
||||||
|
$this->addSql(<<<'SQL'
|
||||||
|
ALTER TABLE intern ALTER resume TYPE VARCHAR(255)
|
||||||
|
SQL);
|
||||||
}
|
}
|
||||||
}
|
}
|
BIN
public/cv/26_08-04-2025_11117657.pdf
Normal file
BIN
public/cv/26_08-04-2025_11117657.pdf
Normal file
Binary file not shown.
BIN
public/cv/26_08-04-2025_78723504.pdf
Normal file
BIN
public/cv/26_08-04-2025_78723504.pdf
Normal file
Binary file not shown.
@ -13,9 +13,12 @@ use App\Form\InternType;
|
|||||||
use App\Repository\InternRepository;
|
use App\Repository\InternRepository;
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||||
|
use Symfony\Component\DependencyInjection\Attribute\Autowire;
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\FileType;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\Routing\Attribute\Route;
|
use Symfony\Component\Routing\Attribute\Route;
|
||||||
|
use Symfony\Component\Validator\Constraints\File;
|
||||||
|
|
||||||
#[Route('/intern')]
|
#[Route('/intern')]
|
||||||
final class InternController extends AbstractController
|
final class InternController extends AbstractController
|
||||||
@ -54,6 +57,63 @@ final class InternController extends AbstractController
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[Route('/{id}/resume', name: 'app_intern_resume', methods: ['GET', 'POST'])]
|
||||||
|
public function addResume(Request $request, Intern $intern, EntityManagerInterface $entityManager, #[Autowire('%cv_directory%')] string $cvDirectory): Response
|
||||||
|
{
|
||||||
|
// Création d'un formulaire spécifique pour le CV plutôt que d'utiliser InternType entier
|
||||||
|
$form = $this->createFormBuilder($intern)
|
||||||
|
->add('resume', FileType::class, [
|
||||||
|
'label' => 'CV : ',
|
||||||
|
'mapped' => false, // Ne pas lier directement à l'entité
|
||||||
|
'constraints' => [
|
||||||
|
new File([
|
||||||
|
'maxSize' => '1024k',
|
||||||
|
'mimeTypes' => [
|
||||||
|
'application/pdf',
|
||||||
|
'application/x-pdf',
|
||||||
|
],
|
||||||
|
'mimeTypesMessage' => 'Merci de bien vouloir envoyer un fichier PDF valide.',
|
||||||
|
])
|
||||||
|
],
|
||||||
|
])
|
||||||
|
->getForm();
|
||||||
|
|
||||||
|
$form->handleRequest($request);
|
||||||
|
|
||||||
|
if ($form->isSubmitted() && $form->isValid()) {
|
||||||
|
$cvFile = $form->get('resume')->getData();
|
||||||
|
|
||||||
|
if ($cvFile) {
|
||||||
|
// Génération d'un nom de fichier unique
|
||||||
|
$newFilename = $intern->getId().'_'.date("d-m-Y").'_'.random_int(0,99999999).'.pdf';
|
||||||
|
|
||||||
|
// Déplacement vers le répertoire de stockage
|
||||||
|
$cvFile->move(
|
||||||
|
$cvDirectory,
|
||||||
|
$newFilename
|
||||||
|
);
|
||||||
|
|
||||||
|
if($intern->getResume() !== null){
|
||||||
|
unlink($cvDirectory.'/'.$intern->getResume());
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mise à jour de l'entité avec le nom du fichier
|
||||||
|
$intern->setResume($newFilename);
|
||||||
|
$intern->setResumeName($cvFile->getClientOriginalName()); // Conserver le nom original du fichier
|
||||||
|
}
|
||||||
|
|
||||||
|
$entityManager->flush();
|
||||||
|
|
||||||
|
return $this->redirectToRoute('app_profile', [], Response::HTTP_SEE_OTHER);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->render('intern/resume.html.twig', [
|
||||||
|
'intern' => $intern,
|
||||||
|
'form' => $form->createView(),
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#[Route('/{id}', name: 'app_intern_delete', methods: ['POST'])]
|
#[Route('/{id}', name: 'app_intern_delete', methods: ['POST'])]
|
||||||
public function delete(Request $request, Intern $intern, EntityManagerInterface $entityManager): Response
|
public function delete(Request $request, Intern $intern, EntityManagerInterface $entityManager): Response
|
||||||
{
|
{
|
||||||
|
@ -19,8 +19,10 @@ class ProfileController extends AbstractController
|
|||||||
#[Route('/profile', name: 'app_profile')]
|
#[Route('/profile', name: 'app_profile')]
|
||||||
public function profile(EntityManagerInterface $entityManager): Response
|
public function profile(EntityManagerInterface $entityManager): Response
|
||||||
{
|
{
|
||||||
|
// Charger l'utilisateur connecté
|
||||||
$user = $this->getUser();
|
$user = $this->getUser();
|
||||||
|
|
||||||
|
// Vérifiez les rôles si nécessaire
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
throw $this->createAccessDeniedException('Vous devez être connecté pour accéder à cette page.');
|
throw $this->createAccessDeniedException('Vous devez être connecté pour accéder à cette page.');
|
||||||
}
|
}
|
||||||
|
@ -1,57 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Entity;
|
|
||||||
|
|
||||||
use App\Repository\AnnonceRepository;
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: AnnonceRepository::class)]
|
|
||||||
class Annonce
|
|
||||||
{
|
|
||||||
#[ORM\Id]
|
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Titre = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Description = null;
|
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setId(int $id): static
|
|
||||||
{
|
|
||||||
$this->id = $id;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getTitre(): ?string
|
|
||||||
{
|
|
||||||
return $this->Titre;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setTitre(string $Titre): static
|
|
||||||
{
|
|
||||||
$this->Titre = $Titre;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getDescription(): ?string
|
|
||||||
{
|
|
||||||
return $this->Description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setDescription(string $Description): static
|
|
||||||
{
|
|
||||||
$this->Description = $Description;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,42 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Entity;
|
|
||||||
|
|
||||||
use App\Repository\CompetenceRepository;
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: CompetenceRepository::class)]
|
|
||||||
class Competence
|
|
||||||
{
|
|
||||||
#[ORM\Id]
|
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Libelle = null;
|
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setId(int $id): static
|
|
||||||
{
|
|
||||||
$this->id = $id;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getLibelle(): ?string
|
|
||||||
{
|
|
||||||
return $this->Libelle;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setLibelle(string $Libelle): static
|
|
||||||
{
|
|
||||||
$this->Libelle = $Libelle;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,65 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Entity;
|
|
||||||
|
|
||||||
use App\Repository\DemandeurRepository;
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: DemandeurRepository::class)]
|
|
||||||
class Demandeur
|
|
||||||
{
|
|
||||||
#[ORM\Id]
|
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $LM = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $CV = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Mail = null;
|
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getLM(): ?string
|
|
||||||
{
|
|
||||||
return $this->LM;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setLM(string $LM): static
|
|
||||||
{
|
|
||||||
$this->LM = $LM;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getCV(): ?string
|
|
||||||
{
|
|
||||||
return $this->CV;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setCV(string $CV): static
|
|
||||||
{
|
|
||||||
$this->CV = $CV;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getMail(): ?string
|
|
||||||
{
|
|
||||||
return $this->Mail;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setMail(string $Mail): static
|
|
||||||
{
|
|
||||||
$this->Mail = $Mail;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,42 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Entity;
|
|
||||||
|
|
||||||
use App\Repository\DiplomeRepository;
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: DiplomeRepository::class)]
|
|
||||||
class Diplome
|
|
||||||
{
|
|
||||||
#[ORM\Id]
|
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Libelle = null;
|
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setId(int $id): static
|
|
||||||
{
|
|
||||||
$this->id = $id;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getLibelle(): ?string
|
|
||||||
{
|
|
||||||
return $this->Libelle;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setLibelle(string $Libelle): static
|
|
||||||
{
|
|
||||||
$this->Libelle = $Libelle;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,35 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Entity;
|
|
||||||
|
|
||||||
use App\Repository\EmployeRepository;
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: EmployeRepository::class)]
|
|
||||||
class Employe
|
|
||||||
{
|
|
||||||
#[ORM\Id]
|
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Mail = null;
|
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getMail(): ?string
|
|
||||||
{
|
|
||||||
return $this->Mail;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setMail(string $Mail): static
|
|
||||||
{
|
|
||||||
$this->Mail = $Mail;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,87 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Entity;
|
|
||||||
|
|
||||||
use App\Repository\EntrepriseRepository;
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: EntrepriseRepository::class)]
|
|
||||||
class Entreprise
|
|
||||||
{
|
|
||||||
#[ORM\Id]
|
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Nom = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Adresse = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Tel = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Mail = null;
|
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setId(int $id): static
|
|
||||||
{
|
|
||||||
$this->id = $id;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getNom(): ?string
|
|
||||||
{
|
|
||||||
return $this->Nom;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setNom(string $Nom): static
|
|
||||||
{
|
|
||||||
$this->Nom = $Nom;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getAdresse(): ?string
|
|
||||||
{
|
|
||||||
return $this->Adresse;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setAdresse(string $Adresse): static
|
|
||||||
{
|
|
||||||
$this->Adresse = $Adresse;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getTel(): ?string
|
|
||||||
{
|
|
||||||
return $this->Tel;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setTel(string $Tel): static
|
|
||||||
{
|
|
||||||
$this->Tel = $Tel;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getMail(): ?string
|
|
||||||
{
|
|
||||||
return $this->Mail;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setMail(string $Mail): static
|
|
||||||
{
|
|
||||||
$this->Mail = $Mail;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,52 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Entity;
|
|
||||||
|
|
||||||
use App\Entity\UserApp;
|
|
||||||
use App\Entity\Announcement;
|
|
||||||
use App\Repository\FavorisRepository;
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: FavorisRepository::class)]
|
|
||||||
class Favoris
|
|
||||||
{
|
|
||||||
#[ORM\Id]
|
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\ManyToOne(inversedBy: 'favoris')]
|
|
||||||
#[ORM\JoinColumn(nullable: false)]
|
|
||||||
private ?UserApp $user = null;
|
|
||||||
|
|
||||||
#[ORM\ManyToOne(inversedBy: 'favoris')]
|
|
||||||
#[ORM\JoinColumn(nullable: false)]
|
|
||||||
private ?Announcement $announcement = null;
|
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getUser(): ?UserApp
|
|
||||||
{
|
|
||||||
return $this->user;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setUser(?UserApp $user): static
|
|
||||||
{
|
|
||||||
$this->user = $user;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getAnnouncement(): ?Announcement
|
|
||||||
{
|
|
||||||
return $this->announcement;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setAnnouncement(?Announcement $announcement): static
|
|
||||||
{
|
|
||||||
$this->announcement = $announcement;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,36 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Entity;
|
|
||||||
|
|
||||||
use App\Repository\FormulaireRepository;
|
|
||||||
use Doctrine\DBAL\Types\Types;
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: FormulaireRepository::class)]
|
|
||||||
class Formulaire
|
|
||||||
{
|
|
||||||
#[ORM\Id]
|
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(type: Types::DATE_MUTABLE)]
|
|
||||||
private ?\DateTimeInterface $Date = null;
|
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getDate(): ?\DateTimeInterface
|
|
||||||
{
|
|
||||||
return $this->Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setDate(\DateTimeInterface $Date): static
|
|
||||||
{
|
|
||||||
$this->Date = $Date;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
|
@ -12,12 +12,15 @@ use Doctrine\ORM\Mapping as ORM;
|
|||||||
class Intern extends UserApp
|
class Intern extends UserApp
|
||||||
{
|
{
|
||||||
|
|
||||||
#[ORM\Column(type: Types::TEXT,nullable: true)]
|
#[ORM\Column(type: Types::TEXT, length: 255, nullable: true)]
|
||||||
private ?string $coverLetter = null;
|
private ?string $coverLetter = null;
|
||||||
|
|
||||||
#[ORM\Column(length: 255,nullable: true)]
|
#[ORM\Column(type: Types::TEXT, length: 255, nullable: true)]
|
||||||
private ?string $resume = null;
|
private ?string $resume = null;
|
||||||
|
|
||||||
|
#[ORM\Column(type: Types::TEXT, length: 255, nullable: true)]
|
||||||
|
private ?string $resumeName = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Collection<int, InternDegree>
|
* @var Collection<int, InternDegree>
|
||||||
*/
|
*/
|
||||||
@ -74,6 +77,18 @@ class Intern extends UserApp
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getResumeName(): ?string
|
||||||
|
{
|
||||||
|
return $this->resumeName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setResumeName(string $resumeName): static
|
||||||
|
{
|
||||||
|
$this->resumeName = $resumeName;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Collection<int, InternDegree>
|
* @return Collection<int, InternDegree>
|
||||||
*/
|
*/
|
||||||
|
@ -1,36 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Entity;
|
|
||||||
|
|
||||||
use App\Repository\ListeRepository;
|
|
||||||
use Doctrine\DBAL\Types\Types;
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: ListeRepository::class)]
|
|
||||||
class Liste
|
|
||||||
{
|
|
||||||
#[ORM\Id]
|
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(type: Types::DATE_MUTABLE)]
|
|
||||||
private ?\DateTimeInterface $Date = null;
|
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getDate(): ?\DateTimeInterface
|
|
||||||
{
|
|
||||||
return $this->Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setDate(\DateTimeInterface $Date): static
|
|
||||||
{
|
|
||||||
$this->Date = $Date;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,78 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Entity;
|
|
||||||
|
|
||||||
use App\Repository\StatusRepository;
|
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
|
||||||
use Doctrine\Common\Collections\Collection;
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: StatusRepository::class)]
|
|
||||||
class Status
|
|
||||||
{
|
|
||||||
#[ORM\Id]
|
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $label = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var Collection<int, Announcement>
|
|
||||||
*/
|
|
||||||
#[ORM\OneToMany(targetEntity: Announcement::class, mappedBy: 'status')]
|
|
||||||
private Collection $announcements;
|
|
||||||
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
$this->announcements = new ArrayCollection();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getLabel(): ?string
|
|
||||||
{
|
|
||||||
return $this->label;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setLabel(string $label): static
|
|
||||||
{
|
|
||||||
$this->label = $label;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return Collection<int, Announcement>
|
|
||||||
*/
|
|
||||||
public function getAnnouncements(): Collection
|
|
||||||
{
|
|
||||||
return $this->announcements;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function addAnnouncement(Announcement $announcement): static
|
|
||||||
{
|
|
||||||
if (!$this->announcements->contains($announcement)) {
|
|
||||||
$this->announcements->add($announcement);
|
|
||||||
$announcement->setStatus($this);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function removeAnnouncement(Announcement $announcement): static
|
|
||||||
{
|
|
||||||
if ($this->announcements->removeElement($announcement)) {
|
|
||||||
// set the owning side to null (unless already changed)
|
|
||||||
if ($announcement->getStatus() === $this) {
|
|
||||||
$announcement->setStatus(null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,135 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Entity;
|
|
||||||
|
|
||||||
use App\Repository\UtilisateurRepository;
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
|
||||||
use Doctrine\Common\Collections\Collection;
|
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: UtilisateurRepository::class)]
|
|
||||||
class Utilisateur
|
|
||||||
{
|
|
||||||
#[ORM\Id]
|
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Nom = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Prenom = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Tel = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Adresse = null;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Ajout de la relation OneToMany
|
|
||||||
#[ORM\OneToMany(targetEntity: Message::class, mappedBy: 'utilisateur')]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private Collection $messages;
|
|
||||||
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
$this->messages = new ArrayCollection();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setId(int $id): static
|
|
||||||
{
|
|
||||||
$this->id = $id;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getNom(): ?string
|
|
||||||
{
|
|
||||||
return $this->Nom;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setNom(string $Nom): static
|
|
||||||
{
|
|
||||||
$this->Nom = $Nom;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getPrenom(): ?string
|
|
||||||
{
|
|
||||||
return $this->Prenom;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setPrenom(string $Prenom): static
|
|
||||||
{
|
|
||||||
$this->Prenom = $Prenom;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getTel(): ?string
|
|
||||||
{
|
|
||||||
return $this->Tel;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setTel(string $Tel): static
|
|
||||||
{
|
|
||||||
$this->Tel = $Tel;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getAdresse(): ?string
|
|
||||||
{
|
|
||||||
return $this->Adresse;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setAdresse(string $Adresse): static
|
|
||||||
{
|
|
||||||
$this->Adresse = $Adresse;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Getter et setter pour la relation avec Message
|
|
||||||
/**
|
|
||||||
* @return Collection<int, Message>
|
|
||||||
*/
|
|
||||||
public function getMessages(): Collection
|
|
||||||
{
|
|
||||||
return $this->messages;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function addMessage(Message $message): static
|
|
||||||
{
|
|
||||||
if (!$this->messages->contains($message)) {
|
|
||||||
$this->messages[] = $message;
|
|
||||||
$message->setUtilisateur($this);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function removeMessage(Message $message): static
|
|
||||||
{
|
|
||||||
if ($this->messages->removeElement($message)) {
|
|
||||||
if ($message->getUtilisateur() === $this) {
|
|
||||||
$message->setUtilisateur(null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,42 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Entity;
|
|
||||||
|
|
||||||
use App\Repository\VerifieRepository;
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
|
||||||
|
|
||||||
#[ORM\Entity(repositoryClass: VerifieRepository::class)]
|
|
||||||
class Verifie
|
|
||||||
{
|
|
||||||
#[ORM\Id]
|
|
||||||
#[ORM\GeneratedValue]
|
|
||||||
#[ORM\Column]
|
|
||||||
private ?int $id = null;
|
|
||||||
|
|
||||||
#[ORM\Column(length: 255)]
|
|
||||||
private ?string $Libelle = null;
|
|
||||||
|
|
||||||
public function getId(): ?int
|
|
||||||
{
|
|
||||||
return $this->id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setId(int $id): static
|
|
||||||
{
|
|
||||||
$this->id = $id;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getLibelle(): ?string
|
|
||||||
{
|
|
||||||
return $this->Libelle;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setLibelle(string $Libelle): static
|
|
||||||
{
|
|
||||||
$this->Libelle = $Libelle;
|
|
||||||
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
}
|
|
@ -4,8 +4,11 @@ namespace App\Form;
|
|||||||
|
|
||||||
use App\Entity\Intern;
|
use App\Entity\Intern;
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\FileType;
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||||
|
use Symfony\Component\Validator\Constraints\File;
|
||||||
|
|
||||||
class InternType extends AbstractType
|
class InternType extends AbstractType
|
||||||
{
|
{
|
||||||
@ -20,7 +23,9 @@ class InternType extends AbstractType
|
|||||||
->add('tel')
|
->add('tel')
|
||||||
->add('address')
|
->add('address')
|
||||||
->add('mail')
|
->add('mail')
|
||||||
->add('coverLetter')
|
->add('coverLetter', TextareaType::class, [
|
||||||
|
'required' => false,
|
||||||
|
])
|
||||||
->add('resume')
|
->add('resume')
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Repository;
|
|
||||||
|
|
||||||
use App\Entity\Annonce;
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @extends ServiceEntityRepository<Annonce>
|
|
||||||
*/
|
|
||||||
class AnnonceRepository extends ServiceEntityRepository
|
|
||||||
{
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
|
||||||
{
|
|
||||||
parent::__construct($registry, Annonce::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return Annonce[] Returns an array of Annonce objects
|
|
||||||
// */
|
|
||||||
// public function findByExampleField($value): array
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('a')
|
|
||||||
// ->andWhere('a.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->orderBy('a.id', 'ASC')
|
|
||||||
// ->setMaxResults(10)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// public function findOneBySomeField($value): ?Annonce
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('a')
|
|
||||||
// ->andWhere('a.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getOneOrNullResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Repository;
|
|
||||||
|
|
||||||
use App\Entity\Competence;
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @extends ServiceEntityRepository<Competence>
|
|
||||||
*/
|
|
||||||
class CompetenceRepository extends ServiceEntityRepository
|
|
||||||
{
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
|
||||||
{
|
|
||||||
parent::__construct($registry, Competence::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return Competence[] Returns an array of Competence objects
|
|
||||||
// */
|
|
||||||
// public function findByExampleField($value): array
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('c')
|
|
||||||
// ->andWhere('c.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->orderBy('c.id', 'ASC')
|
|
||||||
// ->setMaxResults(10)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// public function findOneBySomeField($value): ?Competence
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('c')
|
|
||||||
// ->andWhere('c.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getOneOrNullResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Repository;
|
|
||||||
|
|
||||||
use App\Entity\Demandeur;
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @extends ServiceEntityRepository<Demandeur>
|
|
||||||
*/
|
|
||||||
class DemandeurRepository extends ServiceEntityRepository
|
|
||||||
{
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
|
||||||
{
|
|
||||||
parent::__construct($registry, Demandeur::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return Demandeur[] Returns an array of Demandeur objects
|
|
||||||
// */
|
|
||||||
// public function findByExampleField($value): array
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('d')
|
|
||||||
// ->andWhere('d.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->orderBy('d.id', 'ASC')
|
|
||||||
// ->setMaxResults(10)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// public function findOneBySomeField($value): ?Demandeur
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('d')
|
|
||||||
// ->andWhere('d.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getOneOrNullResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Repository;
|
|
||||||
|
|
||||||
use App\Entity\Diplome;
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @extends ServiceEntityRepository<Diplome>
|
|
||||||
*/
|
|
||||||
class DiplomeRepository extends ServiceEntityRepository
|
|
||||||
{
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
|
||||||
{
|
|
||||||
parent::__construct($registry, Diplome::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return Diplome[] Returns an array of Diplome objects
|
|
||||||
// */
|
|
||||||
// public function findByExampleField($value): array
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('d')
|
|
||||||
// ->andWhere('d.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->orderBy('d.id', 'ASC')
|
|
||||||
// ->setMaxResults(10)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// public function findOneBySomeField($value): ?Diplome
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('d')
|
|
||||||
// ->andWhere('d.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getOneOrNullResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Repository;
|
|
||||||
|
|
||||||
use App\Entity\Employe;
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @extends ServiceEntityRepository<Employe>
|
|
||||||
*/
|
|
||||||
class EmployeRepository extends ServiceEntityRepository
|
|
||||||
{
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
|
||||||
{
|
|
||||||
parent::__construct($registry, Employe::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return Employe[] Returns an array of Employe objects
|
|
||||||
// */
|
|
||||||
// public function findByExampleField($value): array
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('e')
|
|
||||||
// ->andWhere('e.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->orderBy('e.id', 'ASC')
|
|
||||||
// ->setMaxResults(10)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// public function findOneBySomeField($value): ?Employe
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('e')
|
|
||||||
// ->andWhere('e.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getOneOrNullResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Repository;
|
|
||||||
|
|
||||||
use App\Entity\Entreprise;
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @extends ServiceEntityRepository<Entreprise>
|
|
||||||
*/
|
|
||||||
class EntrepriseRepository extends ServiceEntityRepository
|
|
||||||
{
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
|
||||||
{
|
|
||||||
parent::__construct($registry, Entreprise::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return Entreprise[] Returns an array of Entreprise objects
|
|
||||||
// */
|
|
||||||
// public function findByExampleField($value): array
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('e')
|
|
||||||
// ->andWhere('e.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->orderBy('e.id', 'ASC')
|
|
||||||
// ->setMaxResults(10)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// public function findOneBySomeField($value): ?Entreprise
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('e')
|
|
||||||
// ->andWhere('e.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getOneOrNullResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Repository;
|
|
||||||
|
|
||||||
use App\Entity\Favoris;
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @extends ServiceEntityRepository<Favoris>
|
|
||||||
*/
|
|
||||||
class FavorisRepository extends ServiceEntityRepository
|
|
||||||
{
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
|
||||||
{
|
|
||||||
parent::__construct($registry, Favoris::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return Favoris[] Returns an array of Favoris objects
|
|
||||||
// */
|
|
||||||
// public function findByExampleField($value): array
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('f')
|
|
||||||
// ->andWhere('f.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->orderBy('f.id', 'ASC')
|
|
||||||
// ->setMaxResults(10)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// public function findOneBySomeField($value): ?Favoris
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('f')
|
|
||||||
// ->andWhere('f.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getOneOrNullResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Repository;
|
|
||||||
|
|
||||||
use App\Entity\Formulaire;
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @extends ServiceEntityRepository<Formulaire>
|
|
||||||
*/
|
|
||||||
class FormulaireRepository extends ServiceEntityRepository
|
|
||||||
{
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
|
||||||
{
|
|
||||||
parent::__construct($registry, Formulaire::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return Formulaire[] Returns an array of Formulaire objects
|
|
||||||
// */
|
|
||||||
// public function findByExampleField($value): array
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('f')
|
|
||||||
// ->andWhere('f.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->orderBy('f.id', 'ASC')
|
|
||||||
// ->setMaxResults(10)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// public function findOneBySomeField($value): ?Formulaire
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('f')
|
|
||||||
// ->andWhere('f.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getOneOrNullResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Repository;
|
|
||||||
|
|
||||||
use App\Entity\Liste;
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @extends ServiceEntityRepository<Liste>
|
|
||||||
*/
|
|
||||||
class ListeRepository extends ServiceEntityRepository
|
|
||||||
{
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
|
||||||
{
|
|
||||||
parent::__construct($registry, Liste::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return Liste[] Returns an array of Liste objects
|
|
||||||
// */
|
|
||||||
// public function findByExampleField($value): array
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('l')
|
|
||||||
// ->andWhere('l.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->orderBy('l.id', 'ASC')
|
|
||||||
// ->setMaxResults(10)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// public function findOneBySomeField($value): ?Liste
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('l')
|
|
||||||
// ->andWhere('l.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getOneOrNullResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Repository;
|
|
||||||
|
|
||||||
use App\Entity\Status;
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @extends ServiceEntityRepository<Status>
|
|
||||||
*/
|
|
||||||
class StatusRepository extends ServiceEntityRepository
|
|
||||||
{
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
|
||||||
{
|
|
||||||
parent::__construct($registry, Status::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return Status[] Returns an array of Status objects
|
|
||||||
// */
|
|
||||||
// public function findByExampleField($value): array
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('v')
|
|
||||||
// ->andWhere('v.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->orderBy('v.id', 'ASC')
|
|
||||||
// ->setMaxResults(10)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// public function findOneBySomeField($value): ?Status
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('v')
|
|
||||||
// ->andWhere('v.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getOneOrNullResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Repository;
|
|
||||||
|
|
||||||
use App\Entity\Utilisateur;
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @extends ServiceEntityRepository<Utilisateur>
|
|
||||||
*/
|
|
||||||
class UtilisateurRepository extends ServiceEntityRepository
|
|
||||||
{
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
|
||||||
{
|
|
||||||
parent::__construct($registry, Utilisateur::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return Utilisateur[] Returns an array of Utilisateur objects
|
|
||||||
// */
|
|
||||||
// public function findByExampleField($value): array
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('u')
|
|
||||||
// ->andWhere('u.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->orderBy('u.id', 'ASC')
|
|
||||||
// ->setMaxResults(10)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// public function findOneBySomeField($value): ?Utilisateur
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('u')
|
|
||||||
// ->andWhere('u.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getOneOrNullResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
}
|
|
@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Repository;
|
|
||||||
|
|
||||||
use App\Entity\Verifie;
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @extends ServiceEntityRepository<Verifie>
|
|
||||||
*/
|
|
||||||
class VerifieRepository extends ServiceEntityRepository
|
|
||||||
{
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
|
||||||
{
|
|
||||||
parent::__construct($registry, Verifie::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return Verifie[] Returns an array of Verifie objects
|
|
||||||
// */
|
|
||||||
// public function findByExampleField($value): array
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('v')
|
|
||||||
// ->andWhere('v.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->orderBy('v.id', 'ASC')
|
|
||||||
// ->setMaxResults(10)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// public function findOneBySomeField($value): ?Verifie
|
|
||||||
// {
|
|
||||||
// return $this->createQueryBuilder('v')
|
|
||||||
// ->andWhere('v.exampleField = :val')
|
|
||||||
// ->setParameter('val', $value)
|
|
||||||
// ->getQuery()
|
|
||||||
// ->getOneOrNullResult()
|
|
||||||
// ;
|
|
||||||
// }
|
|
||||||
}
|
|
@ -56,23 +56,11 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if 'ROLE_INTERN' in app.user.roles %}
|
|
||||||
<div class="mt-4">
|
|
||||||
<button type="submit" class="bg-blue-500 hover:bg-blue-600 text-white py-2 px-4 rounded-full">
|
|
||||||
<i class="fas fa-check-circle"></i> Valider la sélection
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if 'ROLE_ADMIN' in app.user.roles %}
|
|
||||||
<!-- Lien pour ajouter un nouveau diplôme -->
|
<!-- Lien pour ajouter un nouveau diplôme -->
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<a href="{{ path('app_degree_new') }}" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4
|
<a href="{{ path('app_degree_new') }}" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full">
|
||||||
rounded-full">
|
|
||||||
<i class="fas fa-plus-circle"></i> Ajouter un nouveau diplôme
|
<i class="fas fa-plus-circle"></i> Ajouter un nouveau diplôme
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,55 +1,25 @@
|
|||||||
{% extends 'base.html.twig' %}
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
{% block title %}Liste des FAQs{% endblock %}
|
{% block title %}FAQ{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="container mx-auto p-6">
|
<div class="container mx-auto p-6">
|
||||||
<h1 class="text-3xl font-bold mb-4">Liste des FAQs</h1>
|
<h1 class="text-3xl font-bold mb-4">FAQ</h1>
|
||||||
|
|
||||||
<div class="overflow-x-auto bg-white shadow-lg rounded-lg">
|
<div class="flex flex-col gap-4">
|
||||||
<table class="min-w-full table-auto">
|
|
||||||
<thead>
|
|
||||||
<tr class="bg-gray-800 text-white">
|
|
||||||
<th class="px-4 py-2 text-left">Question</th>
|
|
||||||
<th class="px-4 py-2 text-left">Réponse</th>
|
|
||||||
<th class="px-4 py-2 text-left">Denrnière modif</th>
|
|
||||||
<th class="px-4 py-2 text-left">Actions</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{% for faq in faqs %}
|
{% for faq in faqs %}
|
||||||
<tr class="border-b">
|
<div>
|
||||||
<td class="px-4 py-2">{{ faq.question }}</td>
|
<h2 class="font-bold text-4xl">Question : {{ faq.question }}</h2>
|
||||||
<td class="px-4 py-2">{{ faq.answer }}</td>
|
<p class="italic text-gray-700">Dernière modification : {{ faq.updateDate|date("d-m-y") }}</p>
|
||||||
<td class="px-4 py-2">{{ faq.updateDate|date("d-m-y") }}</td>
|
<p class="text-2xl ml-10">Réponse : {{ faq.answer }}</p>
|
||||||
<td class="px-4 py-2">
|
</div>
|
||||||
<a href="{{ path('app_faq_show', {'id': faq.id}) }}" class="text-teal-500 hover:text-teal-700 mr-3">
|
<hr class="border-black"/>
|
||||||
<i class="fas fa-eye"></i> Voir
|
{% endfor %}
|
||||||
</a>
|
|
||||||
|
|
||||||
<a href="{{ path('app_faq_edit', {'id': faq.id}) }}" class="text-yellow-500 hover:text-yellow-700 mr-3">
|
|
||||||
<i class="fas fa-edit"></i> Modifier
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<form method="post" action="{{ path('app_faq_delete', {'id': faq.id}) }}" style="display:inline;">
|
|
||||||
<input type="hidden" name="_method" value="DELETE">
|
|
||||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ faq.id) }}">
|
|
||||||
<button type="submit" class="text-red-500 hover:text-red-700">
|
|
||||||
<i class="fas fa-trash-alt"></i> Supprimer
|
|
||||||
</button>
|
|
||||||
</form>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<a href="{{ path('app_faq_new') }}" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full">
|
<a href="{{ path('app_faq_new') }}" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full">
|
||||||
<i class="fas fa-plus-circle"></i> Ajouter une FAQ
|
<i class="fas fa-plus-circle"></i> Ajouter une FAQ / Poser une question
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
23
templates/intern/resume.html.twig
Normal file
23
templates/intern/resume.html.twig
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}Resume{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
<div class="container mx-auto p-6">
|
||||||
|
<h1 class="text-4xl font-semibold text-gray-800 mb-6">Ajouter / Modifier le CV</h1>
|
||||||
|
|
||||||
|
<div class="bg-white shadow-md rounded-lg p-6">
|
||||||
|
{{ form_start(form, {'attr': {'enctype': 'multipart/form-data'}}) }}
|
||||||
|
|
||||||
|
<div class="mt-6">
|
||||||
|
{{ form_widget(form) }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button type="submit" class="bg-teal-500 hover:bg-teal-600 text-white px-6 py-3 rounded-lg mt-4">
|
||||||
|
Enregistrer
|
||||||
|
</button>
|
||||||
|
|
||||||
|
{{ form_end(form) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
@ -2,11 +2,30 @@
|
|||||||
<h2 class="text-xl font-semibold mb-4">Bonjour {{ app.user.nickname }}</h2>
|
<h2 class="text-xl font-semibold mb-4">Bonjour {{ app.user.nickname }}</h2>
|
||||||
<p class="text-gray-700">Vous êtes à la recherche d'un stage.</p>
|
<p class="text-gray-700">Vous êtes à la recherche d'un stage.</p>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
<div class="flex justify-around">
|
||||||
|
<div class="flex flex-col gap-5">
|
||||||
<p class="text-gray-600">Nom : {{ app.user.firstName }}</p>
|
<p class="text-gray-600">Nom : {{ app.user.firstName }}</p>
|
||||||
<p class="text-gray-600">Prénom : {{ app.user.lastName }}</p>
|
<p class="text-gray-600">Prénom : {{ app.user.lastName }}</p>
|
||||||
<p class="text-gray-600">Adresse : {{ app.user.address }}</p>
|
<p class="text-gray-600">Adresse : {{ app.user.address }}</p>
|
||||||
<p class="text-gray-600">Téléphone : {{ app.user.tel }}</p>
|
<p class="text-gray-600">Téléphone : {{ app.user.tel }}</p>
|
||||||
<p class="text-gray-600">Email : {{ app.user.mail }}</p>
|
<p class="text-gray-600">Email : {{ app.user.mail }}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% if app.user.resume != "" %}
|
||||||
|
<div>
|
||||||
|
<iframe height="575px" width="400px" src={{ 'cv/' ~ app.user.resume }}></iframe>
|
||||||
|
{% if app.user.resumeName != "" %}
|
||||||
|
<p class="text-gray-600 italic">Nom du fichier : {{ app.user.resumeName }}</p>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<a class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full"
|
||||||
|
href="{{ path('app_intern_resume',{id: app.user.id}) }}"> Ajouter / Modifier le CV
|
||||||
|
</a>
|
||||||
|
|
||||||
<h3 class="text-lg font-semibold mt-6">Vos diplômes :</h3>
|
<h3 class="text-lg font-semibold mt-6">Vos diplômes :</h3>
|
||||||
<ul class="list-disc list-inside text-gray-800">
|
<ul class="list-disc list-inside text-gray-800">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user