-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from BaptisteBuvron/fix_organisation_front
Fix:
- Loading branch information
Showing
17 changed files
with
226 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ export class CandidatureController { | |
static candidater(req: express.Request, res: express.Response) { | ||
|
||
//TODO Vérifier que l'utilisateur est bien un candidat | ||
let user: User = new User('[email protected]', 'Tillai', 'Soudarsane', '0652645299', new Date('2020-10-10'), false, 'mdp', 'Candidat', "", null); | ||
|
||
let alerts: Alert[] = []; | ||
let numero: number = Number.parseInt(req.params.numero); | ||
|
@@ -26,7 +25,7 @@ export class CandidatureController { | |
let alert = new Alert("danger", "La motivation doit faire plus de 20 caractères."); | ||
alerts.push(alert); | ||
} else { | ||
let user: User = new User('[email protected]', 'Doe', 'John', '123456789', new Date(), true, 'password123', 'Candidat', 'En attente', null); | ||
let user: User = req.user as User; | ||
let candidature: Candidature = new Candidature(new Date(), user, offer, StatutCandidatureEnum.EN_ATTENTE, req.body.motivation); | ||
await CandidatureRepository.create(candidature).then(async (candidature) => { | ||
//upload file: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import express from "express"; | ||
import {OfferController} from "../controllers/OfferController"; | ||
import {defaultRouter} from "./MainRouter"; | ||
|
||
const { passport, loggedIn, checkRole } = require("../passport/passportFunctions"); | ||
|
||
export const offerRouter = express.Router(); | ||
offerRouter.use(passport.initialize()); | ||
offerRouter.use(passport.session()); | ||
offerRouter.get("/creation", checkRole("Recruteur"), OfferController.creation); | ||
offerRouter.post("/creation", checkRole("Recruteur"), OfferController.creation); | ||
offerRouter.get("/:numero", OfferController.offre); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Accueil</title> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" | ||
crossorigin="anonymous"></script> | ||
</head> | ||
<body> | ||
|
||
<%- include('../partials/adminHeader.ejs') %>. | ||
|
||
<div class="container col-xxl-8 px-4 py-5"> | ||
|
@@ -50,6 +37,7 @@ | |
</h4> | ||
<p><%= offer.ficheDePoste.description %></p> | ||
<p>Organisation : <%= offer.ficheDePoste.organisation.nom %></p> | ||
<a href="/offre/<%= offer.numero %>" class="btn btn-secondary">Voir l'offre</a> | ||
</div> | ||
<% }) %> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Utilisateurs</title> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" | ||
crossorigin="anonymous"></script> | ||
</head> | ||
<body> | ||
|
||
<%- include('../partials/adminHeader.ejs') %>. | ||
|
||
<div class="container col-xxl-8 px-4 py-5"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<%- include('partials/header.ejs') %>. | ||
<%- include('partials/header.ejs') %> | ||
|
||
<div class="container border rounded-3 bg-light p-3"> | ||
<ul class="nav nav-tabs mb-3"> | ||
<li class="nav-item"> | ||
|
@@ -50,8 +51,6 @@ | |
</div> | ||
</div> | ||
|
||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script> | ||
<script> | ||
function showInputTab() { | ||
$('a[href="#select-tab"]').removeClass('active'); | ||
|
@@ -67,4 +66,3 @@ | |
$('#select-tab').addClass('active show'); | ||
} | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title><%= title %></title> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" | ||
crossorigin="anonymous"></script> | ||
</head> | ||
<body> | ||
|
||
<%- include('../partials/recruteurHeader.ejs') %> | ||
|
||
<div class="container col-xxl-8 px-4 py-5"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title><%= title %></title> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | ||
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" | ||
crossorigin="anonymous"></script> | ||
</head> | ||
<body> | ||
|
||
<%- include('../partials/recruteurHeader.ejs') %> | ||
<%- include('../partials/recruteurHeader.ejs') %> | ||
|
||
<div class="container col-xxl-8 px-4 py-5"> | ||
<div class="row"> | ||
|
Oops, something went wrong.