Commit 66499a24 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Affichage d'un message pour inciter les étudiants qui ont postulé à une offre...

Affichage d'un message pour inciter les étudiants qui ont postulé à une offre d'emploi, à saisir leurs données personnelles pour l'étude de leur candidature.
parent 025b80c1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
<template>
    <div>
        <div class="alert alert-primary" role="alert">
        <div v-if="this.renseignerDonneesPersonnelles" class="alert alert-primary" role="alert">
            Afin que vos candidatures soient étudiées, veuillez compléter <a
            :href="this.urlDonneesPersonnelles">vos
            données personnelles</a> et fournir les pièces justificatives qui vous seront demandées.
@@ -81,6 +81,7 @@ export default {
    props: {
        intervenant: {required: true},
        canValiderCandidature: {type: Boolean, required: false},
        renseignerDonneesPersonnelles: {type: Boolean, required: false},

    },
    data()
+29 −22
Original line number Diff line number Diff line
@@ -4,11 +4,12 @@ namespace Mission\Controller;

use Application\Controller\AbstractController;
use Application\Entity\Db\Intervenant;
use Application\Entity\Db\WfEtape;
use Application\Entity\WorkflowEtape;
use Application\Provider\Privilege\Privileges;
use Application\Service\Traits\ContextServiceAwareTrait;
use Application\Service\Traits\ValidationServiceAwareTrait;
use Application\Service\Traits\WorkflowServiceAwareTrait;
use Doctrine\ORM\Query;
use Laminas\View\Model\ViewModel;
use Mission\Entity\Db\Candidature;
use Mission\Entity\Db\Mission;
@@ -17,7 +18,6 @@ use Mission\Form\OffreEmploiFormAwareTrait;
use Mission\Service\CandidatureServiceAwareTrait;
use Mission\Service\MissionServiceAwareTrait;
use Mission\Service\OffreEmploiServiceAwareTrait;
use UnicaenVue\Axios\AxiosExtractor;
use UnicaenVue\View\Model\AxiosModel;


@@ -295,15 +295,22 @@ class OffreEmploiController extends AbstractController

    public function candidatureAction()
    {
        /**
         * @var Intervenant   $intervenant
         * @var WorkflowEtape $etapeDonneesPersos
         */
        $intervenant                   = $this->getEvent()->getParam('intervenant');
        $canValiderCandidature         = $this->isAllowed($intervenant, Privileges::MISSION_CANDIDATURE_VALIDER);
        $etapeDonneesPersos            = $this->getServiceWorkflow()->getEtape(WfEtape::CODE_DONNEES_PERSO_SAISIE, $intervenant);
        $renseignerDonneesPersonnelles = ($etapeDonneesPersos->getFranchie() == 1) ? false : true;


        if (!$intervenant) {
            throw new \LogicException('Intervenant introuvable');
        }


        return compact('intervenant', 'canValiderCandidature');
        return compact('intervenant', 'canValiderCandidature', 'renseignerDonneesPersonnelles');
    }


+3 −2
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ echo $this->vue('mission/liste-candidatures', [

    'intervenant'                   => $intervenant->getId(),
    'canValiderCandidature'         => $canValiderCandidature,
    'renseignerDonneesPersonnelles' => $renseignerDonneesPersonnelles,
]);

$nextEtape = \Application\Entity\Db\WfEtape::CANDIDATURE_VALIDATION;
+0 −0

File changed and moved.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
    "css": [
      "assets/main-8b28e4d2.css"
    ],
    "file": "assets/main-8cf5c30d.js",
    "file": "assets/main-bf341ee0.js",
    "imports": [
      "_vendor-2e5f87a4.js"
    ],