Skip to content

Amine #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .idea/hrconnect-symfony.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 72 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"doctrine/persistence": "^3.1",
"phpdocumentor/reflection-docblock": "^5.6",
"phpstan/phpdoc-parser": "^2.1",
"smalot/pdfparser": "^2.12",
"symfony/asset": "6.4.*",
"symfony/asset-mapper": "6.4.*",
"symfony/console": "6.4.*",
Expand Down
57 changes: 54 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions config/packages/services.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
parameters:
cv_directory: '%kernel.project_dir%/public/uploads/cv'

services:
# default configuration for services in *this* file
_defaults:
autowire: true # Automatically injects dependencies in your services.
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.

# makes classes in src/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
App\:
resource: '../../src/'
exclude:
- '../../src/DependencyInjection/'
- '../../src/Entity/'
- '../../src/Kernel.php'
2 changes: 2 additions & 0 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters:
cv_directory: '%kernel.project_dir%/public/uploads/cv'
lettre_motivation_directory: '%kernel.project_dir%/public/uploads/lettre_motivation'

services:
# default configuration for services in *this* file
Expand Down
37 changes: 37 additions & 0 deletions db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1
<<<<<<< HEAD
-- Généré le : lun. 14 avr. 2025 à 20:52
=======
-- Généré le : lun. 07 avr. 2025 à 11:53
>>>>>>> main
-- Version du serveur : 10.4.32-MariaDB
-- Version de PHP : 8.2.12

Expand Down Expand Up @@ -213,8 +217,12 @@ INSERT INTO `formations` (`id`, `formateur_id`, `title`, `image`, `description`,
(41, 2, 'Test formation payante', 'https://i.ibb.co/Zzqw2Dk3/59d345242af9.png', 'Test formation payante', 0, 'Esprit bloc I,J,K, Cebalat, Tunisia', 36.9010594, 10.190243, 1, 1, '2025-03-05 07:53:48', '2025-03-06 06:53:48', 9.99),
(47, 2, 'formation php', 'https://i.ibb.co/wFCSSvrh/d150e2216999.png', 'php', 0, 'Esprit School of Business, Cebalat, Tunisia', 36.89923520000001, 10.189445, 1, 1, '2025-03-06 09:02:49', '2025-03-06 09:02:49', 12),
(48, 2, 'tesssst', 'https://i.ibb.co/wFCSSvrh/d150e2216999.png', 'jdj', 0, 'Esprit School of Business, Cebalat, Tunisia', 36.89923520000001, 10.189445, 1, 1, '2025-03-06 09:17:19', NULL, 10),
<<<<<<< HEAD
(49, 2, 'eyyey&yz', 'https://i.ibb.co/DfZDzwss/9ad51a8f934a.png', 'zyzyzy', 0, 'Bardo, Tunisia', 36.80840260000001, 10.1283163, 1, 1, '2025-03-06 09:21:19', NULL, 0);
=======
(49, 2, 'eyyey&yz', 'https://i.ibb.co/DfZDzwss/9ad51a8f934a.png', 'zyzyzy', 0, 'Bardo, Tunisia', 36.80840260000001, 10.1283163, 1, 1, '2025-03-06 09:21:19', NULL, 0),
(51, 2, 'aa', 'aa', 'aaa', 1, '1', 1, 1, 0, 0, '2025-04-07 00:00:00', '2025-04-07 00:00:00', 5);
>>>>>>> main

-- --------------------------------------------------------

Expand All @@ -232,8 +240,12 @@ CREATE TABLE `formation_participation` (
--

INSERT INTO `formation_participation` (`formation_id`, `employe_id`) VALUES
<<<<<<< HEAD
(31, 18);
=======
(31, 18),
(51, 3);
>>>>>>> main

-- --------------------------------------------------------

Expand Down Expand Up @@ -315,11 +327,20 @@ CREATE TABLE `quiz` (
--

INSERT INTO `quiz` (`id`, `formation_id`, `question`, `reponse1`, `reponse2`, `reponse3`, `num_reponse_correct`) VALUES
<<<<<<< HEAD
(16, 31, 'Quelle classe est utilisée pour créer une fenêtre en JavaFX !?', 'JFrame', 'Stage', 'Window', 2),
(17, 31, 'Quel est le langage utilisé pour styliser une interface JavaFX ?', 'CSS', 'XML', 'JavaScript', 1),
(18, 31, 'Quelle méthode est utilisée pour lancer une application JavaFX ?', 'launch', 'start', 'run', 1),
(23, 31, 'aabc', '1', '2', '3', 1),
(24, 31, 'hello', '5', '5', '5', 1),
(25, 31, 'question', 'rep', 'rep2', 'rep3', 3);
=======
(16, 31, 'Quelle classe est utilisée pour créer une fenêtre en JavaFX ?', 'JFrame', 'Stage', 'Window', 2),
(17, 31, 'Quel est le langage utilisé pour styliser une interface JavaFX ?', 'CSS', 'XML', 'JavaScript', 1),
(18, 31, 'Quelle méthode est utilisée pour lancer une application JavaFX ?', 'launch', 'start', 'run', 1),
(19, 31, 'Quel conteneur est utilisé pour organiser les éléments en colonne dans JavaFX ?', 'VBox ', 'HBox', 'GridPane', 1),
(20, 31, 'Quel événement est utilisé pour détecter un clic sur un bouton JavaFX ?', 'setOnAction', 'setOnClick', 'setOnPress', 1);
>>>>>>> main

-- --------------------------------------------------------

Expand All @@ -340,9 +361,13 @@ CREATE TABLE `quiz_reponses` (
INSERT INTO `quiz_reponses` (`employe_id`, `quiz_id`, `num_reponse`) VALUES
(18, 16, 2),
(18, 17, 1),
<<<<<<< HEAD
(18, 18, 2);
=======
(18, 18, 2),
(18, 19, 2),
(18, 20, 1);
>>>>>>> main

-- --------------------------------------------------------

Expand Down Expand Up @@ -607,7 +632,11 @@ ALTER TABLE `candidature`
-- AUTO_INCREMENT pour la table `demande_conge`
--
ALTER TABLE `demande_conge`
<<<<<<< HEAD
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
=======
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
>>>>>>> main

--
-- AUTO_INCREMENT pour la table `employe`
Expand All @@ -625,7 +654,11 @@ ALTER TABLE `formateurs`
-- AUTO_INCREMENT pour la table `formations`
--
ALTER TABLE `formations`
<<<<<<< HEAD
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=60;
=======
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=52;
>>>>>>> main

--
-- AUTO_INCREMENT pour la table `hr`
Expand All @@ -643,7 +676,11 @@ ALTER TABLE `offre_emploi`
-- AUTO_INCREMENT pour la table `quiz`
--
ALTER TABLE `quiz`
<<<<<<< HEAD
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
=======
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
>>>>>>> main

--
-- AUTO_INCREMENT pour la table `stagaires`
Expand Down
31 changes: 31 additions & 0 deletions migrations/Version20250407130941.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?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 Version20250407130941 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 messenger_messages CHANGE delivered_at delivered_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\'');
}

public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE messenger_messages CHANGE delivered_at delivered_at DATETIME DEFAULT \'NULL\' COMMENT \'(DC2Type:datetime_immutable)\'');
}
}
Binary file added public/uploads/cv/TD-AN-2425-67f417148925d.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions src/Controller/BackOfficeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
final class BackOfficeController extends AbstractController
{
#[Route('/back-office', name: 'app_back_office')]
#[Route('/back-office', name: 'back.index')]
public function index(): Response
{
return $this->render('back_office/index.html.twig', [
Expand Down
Loading