Loading data/ddl/sequence.php +1 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ return [ 'AFFECTATION_RECHERCHE_ID_SEQ', 'AGREMENT_ID_SEQ', 'CAMPAGNE_SAISIE_ID_SEQ', 'CANDIDATURE_ID_SEQ', 'CATEGORIE_PRIVILEGE_ID_SEQ', 'CC_ACTIVITE_ID_SEQ', 'CENTRE_COUT_EP_ID_SEQ', Loading data/ddl/table/CANDIDATURE.php 0 → 100644 +147 −0 Original line number Diff line number Diff line <?php //@formatter:off return [ 'name' => 'CANDIDATURE', 'temporary' => FALSE, 'logging' => TRUE, 'commentaire' => NULL, 'sequence' => 'CANDIDATURE_ID_SEQ', 'columns' => [ 'ID' => [ 'name' => 'ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 1, 'commentaire' => NULL, ], 'INTERVENANT_ID' => [ 'name' => 'INTERVENANT_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 2, 'commentaire' => NULL, ], 'OFFRE_EMPLOI_ID' => [ 'name' => 'OFFRE_EMPLOI_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 1, 'commentaire' => NULL, ], 'VALIDATION_iD' => [ 'name' => 'VALIDATION_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => TRUE, 'default' => NULL, 'position' => 3, 'commentaire' => NULL, ], 'MOTIF' => [ 'name' => 'MOTIF', 'type' => 'string', 'bdd-type' => 'VARCHAR2', 'length' => 4000, 'scale' => NULL, 'precision' => NULL, 'nullable' => TRUE, 'default' => NULL, 'position' => 6, 'commentaire' => NULL, ], 'HISTO_CREATEUR_ID' => [ 'name' => 'HISTO_CREATEUR_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 8, 'commentaire' => NULL, ], 'HISTO_CREATION' => [ 'name' => 'HISTO_CREATION', 'type' => 'date', 'bdd-type' => 'DATE', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => 'SYSDATE', 'position' => 7, 'commentaire' => NULL, ], 'HISTO_DESTRUCTEUR_ID' => [ 'name' => 'HISTO_DESTRUCTEUR_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => TRUE, 'default' => NULL, 'position' => 12, 'commentaire' => NULL, ], 'HISTO_DESTRUCTION' => [ 'name' => 'HISTO_DESTRUCTION', 'type' => 'date', 'bdd-type' => 'DATE', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => TRUE, 'default' => NULL, 'position' => 11, 'commentaire' => NULL, ], 'HISTO_MODIFICATEUR_ID' => [ 'name' => 'HISTO_MODIFICATEUR_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 10, 'commentaire' => NULL, ], 'HISTO_MODIFICATION' => [ 'name' => 'HISTO_MODIFICATION', 'type' => 'date', 'bdd-type' => 'DATE', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => 'SYSDATE', 'position' => 9, 'commentaire' => NULL, ], ], ]; //@formatter:on data/ddl/table/OFFRE_EMPLOI_ETUDIANT.phpdeleted 100644 → 0 +0 −39 Original line number Diff line number Diff line <?php //@formatter:off return [ 'name' => 'OFFRE_EMPLOI_ETUDIANT', 'temporary' => FALSE, 'logging' => TRUE, 'commentaire' => NULL, 'sequence' => NULL, 'columns' => [ 'INTERVENANT_ID' => [ 'name' => 'INTERVENANT_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 2, 'commentaire' => NULL, ], 'OFFRE_EMPLOI_ID' => [ 'name' => 'OFFRE_EMPLOI_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 1, 'commentaire' => NULL, ], ], ]; //@formatter:on data/ddl/unique-constraint/CANDIDATURE__UN.php 0 → 100644 +16 −0 Original line number Diff line number Diff line <?php //@formatter:off return [ 'name' => 'CANDIDATURE__UN', 'table' => 'CANDIDATURE', 'index' => 'CANDIDATURE__UN', 'columns' => [ 'INTERVENANT_ID', 'OFFRE_EMPLOI_ID', 'HISTO_DESTRUCTION', ], ]; //@formatter:on front/Mission/OffreEmploi.vue +22 −9 Original line number Diff line number Diff line Loading @@ -4,7 +4,8 @@ <div class="card-header"> <h4> {{ offre.titre }}</h4> <span class="badge rounded-pill bg-info">{{ offre.nombreHeures }} heure(s)</span> <span class="badge rounded-pill bg-info">{{ offre.nombrePostes }} poste(s) restant(s)</span> <span v-if="nbPostesRestants > 0" class="badge rounded-pill bg-success">{{ nbPostesRestants }} poste(s) restant(s)</span> <span v-if="nbPostesRestants <= 0" class="badge rounded-pill bg-danger">Tous les postes sont pourvus</span> <span v-if="offre.validation && !this.public" class="badge rounded-pill bg-success">Valider le <u-date :value="offre.validation.histoCreation"/> par {{ offre.validation.histoCreateur.displayName }}</span> <span v-if="!offre.validation && !this.public" class="badge rounded-pill bg-warning"> En attente de validation par la DRH</span> Loading Loading @@ -60,21 +61,26 @@ <div v-if="!this.utilisateur" class="alert alert-primary d-flex align-items-center" role="alert"> <i class="fa-solid fa-user"></i> <div class="ms-2"> Vous devez <a :href="connectionLink" class="text-decoration-underline alert-link">être identifé</a> en tant qu'étudiant pour pouvoir Vous devez <a :href="connectionLink" class="text-decoration-underline alert-link">être identifé</a> pour pouvoir postuler. </div> </div> <div v-if="!this.canPostuler && this.intervenant" class="alert alert-primary d-flex align-items-center" role="alert"> <div v-if="!offre.canPostuler" class="alert alert-primary d-flex align-items-center" role="alert"> <i class="fa-solid fa-circle-xmark"></i> <div class="ms-2"> Vous n'avez pas les droits pour postuler à cette offre, merci de contacter votre administration de rattachement. </div> </div> <div v-if="!this.intervenant" class="alert alert-primary d-flex align-items-center" role="alert"> <div v-if="isCandidat" class="alert alert-primary d-flex align-items-center" role="alert"> <i class="fa-solid fa-circle-xmark"></i> <div class="ms-2"> Vous ne pouvez pas postuler avec ce profil à cette offre, merci de contacter votre administration de rattachement ou de vous connecter en tant qu'étudiant. Vous avez déjà postulé à cette offre. </div> </div> <div v-if="!isCandidat && nbPostesRestants <= 0" class="alert alert-primary d-flex align-items-center" role="alert"> <i class="fa-solid fa-circle-xmark"></i> <div class="ms-2"> Tous les postes pour cette offre ont été pourvu. </div> </div> <p class="bg-light" style="padding:10px;"> Loading Loading @@ -129,7 +135,6 @@ export default { data() { console.log(this.intervenant); return { saisirUrl: unicaenVue.url('offre-emploi/saisir/:offre', {offre: this.offre.id}), supprimerUrl: unicaenVue.url("offre-emploi/supprimer/:offre", {offre: this.offre.id}), Loading @@ -150,11 +155,17 @@ export default { } }, isDisabled: function () { if (!this.canPostuler || !this.intervenant) { if (!this.offre.canPostuler || this.offre.candidats.indexOf(this.intervenant.id) !== -1) { return 'btn btn-primary disabled'; } return 'btn btn-primary'; }, isCandidat: function () { if (this.offre.candidats.indexOf(this.intervenant.id) !== -1) { return true; } return false; }, shortDesc: function () { var shorDesc = this.offre.description.substr(0, 200); if (this.offre.description.length > 200) { Loading @@ -164,6 +175,9 @@ export default { }, connectionLink: function () { return '/auth/connexion?redirect='+window.location.href; }, nbPostesRestants: function () { return this.offre.nombrePostes-this.offre.candidaturesValides.length; } }, Loading @@ -179,7 +193,6 @@ export default { unicaenVue.axios.get( unicaenVue.url("offre-emploi/get/:offreEmploi", {offreEmploi: this.offre.id}) ).then(response => { console.log(response.data); this.$emit('refresh', response.data); }); }, Loading Loading
data/ddl/sequence.php +1 −0 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ return [ 'AFFECTATION_RECHERCHE_ID_SEQ', 'AGREMENT_ID_SEQ', 'CAMPAGNE_SAISIE_ID_SEQ', 'CANDIDATURE_ID_SEQ', 'CATEGORIE_PRIVILEGE_ID_SEQ', 'CC_ACTIVITE_ID_SEQ', 'CENTRE_COUT_EP_ID_SEQ', Loading
data/ddl/table/CANDIDATURE.php 0 → 100644 +147 −0 Original line number Diff line number Diff line <?php //@formatter:off return [ 'name' => 'CANDIDATURE', 'temporary' => FALSE, 'logging' => TRUE, 'commentaire' => NULL, 'sequence' => 'CANDIDATURE_ID_SEQ', 'columns' => [ 'ID' => [ 'name' => 'ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 1, 'commentaire' => NULL, ], 'INTERVENANT_ID' => [ 'name' => 'INTERVENANT_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 2, 'commentaire' => NULL, ], 'OFFRE_EMPLOI_ID' => [ 'name' => 'OFFRE_EMPLOI_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 1, 'commentaire' => NULL, ], 'VALIDATION_iD' => [ 'name' => 'VALIDATION_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => TRUE, 'default' => NULL, 'position' => 3, 'commentaire' => NULL, ], 'MOTIF' => [ 'name' => 'MOTIF', 'type' => 'string', 'bdd-type' => 'VARCHAR2', 'length' => 4000, 'scale' => NULL, 'precision' => NULL, 'nullable' => TRUE, 'default' => NULL, 'position' => 6, 'commentaire' => NULL, ], 'HISTO_CREATEUR_ID' => [ 'name' => 'HISTO_CREATEUR_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 8, 'commentaire' => NULL, ], 'HISTO_CREATION' => [ 'name' => 'HISTO_CREATION', 'type' => 'date', 'bdd-type' => 'DATE', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => 'SYSDATE', 'position' => 7, 'commentaire' => NULL, ], 'HISTO_DESTRUCTEUR_ID' => [ 'name' => 'HISTO_DESTRUCTEUR_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => TRUE, 'default' => NULL, 'position' => 12, 'commentaire' => NULL, ], 'HISTO_DESTRUCTION' => [ 'name' => 'HISTO_DESTRUCTION', 'type' => 'date', 'bdd-type' => 'DATE', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => TRUE, 'default' => NULL, 'position' => 11, 'commentaire' => NULL, ], 'HISTO_MODIFICATEUR_ID' => [ 'name' => 'HISTO_MODIFICATEUR_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => '0', 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 10, 'commentaire' => NULL, ], 'HISTO_MODIFICATION' => [ 'name' => 'HISTO_MODIFICATION', 'type' => 'date', 'bdd-type' => 'DATE', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => 'SYSDATE', 'position' => 9, 'commentaire' => NULL, ], ], ]; //@formatter:on
data/ddl/table/OFFRE_EMPLOI_ETUDIANT.phpdeleted 100644 → 0 +0 −39 Original line number Diff line number Diff line <?php //@formatter:off return [ 'name' => 'OFFRE_EMPLOI_ETUDIANT', 'temporary' => FALSE, 'logging' => TRUE, 'commentaire' => NULL, 'sequence' => NULL, 'columns' => [ 'INTERVENANT_ID' => [ 'name' => 'INTERVENANT_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 2, 'commentaire' => NULL, ], 'OFFRE_EMPLOI_ID' => [ 'name' => 'OFFRE_EMPLOI_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', 'length' => 0, 'scale' => NULL, 'precision' => NULL, 'nullable' => FALSE, 'default' => NULL, 'position' => 1, 'commentaire' => NULL, ], ], ]; //@formatter:on
data/ddl/unique-constraint/CANDIDATURE__UN.php 0 → 100644 +16 −0 Original line number Diff line number Diff line <?php //@formatter:off return [ 'name' => 'CANDIDATURE__UN', 'table' => 'CANDIDATURE', 'index' => 'CANDIDATURE__UN', 'columns' => [ 'INTERVENANT_ID', 'OFFRE_EMPLOI_ID', 'HISTO_DESTRUCTION', ], ]; //@formatter:on
front/Mission/OffreEmploi.vue +22 −9 Original line number Diff line number Diff line Loading @@ -4,7 +4,8 @@ <div class="card-header"> <h4> {{ offre.titre }}</h4> <span class="badge rounded-pill bg-info">{{ offre.nombreHeures }} heure(s)</span> <span class="badge rounded-pill bg-info">{{ offre.nombrePostes }} poste(s) restant(s)</span> <span v-if="nbPostesRestants > 0" class="badge rounded-pill bg-success">{{ nbPostesRestants }} poste(s) restant(s)</span> <span v-if="nbPostesRestants <= 0" class="badge rounded-pill bg-danger">Tous les postes sont pourvus</span> <span v-if="offre.validation && !this.public" class="badge rounded-pill bg-success">Valider le <u-date :value="offre.validation.histoCreation"/> par {{ offre.validation.histoCreateur.displayName }}</span> <span v-if="!offre.validation && !this.public" class="badge rounded-pill bg-warning"> En attente de validation par la DRH</span> Loading Loading @@ -60,21 +61,26 @@ <div v-if="!this.utilisateur" class="alert alert-primary d-flex align-items-center" role="alert"> <i class="fa-solid fa-user"></i> <div class="ms-2"> Vous devez <a :href="connectionLink" class="text-decoration-underline alert-link">être identifé</a> en tant qu'étudiant pour pouvoir Vous devez <a :href="connectionLink" class="text-decoration-underline alert-link">être identifé</a> pour pouvoir postuler. </div> </div> <div v-if="!this.canPostuler && this.intervenant" class="alert alert-primary d-flex align-items-center" role="alert"> <div v-if="!offre.canPostuler" class="alert alert-primary d-flex align-items-center" role="alert"> <i class="fa-solid fa-circle-xmark"></i> <div class="ms-2"> Vous n'avez pas les droits pour postuler à cette offre, merci de contacter votre administration de rattachement. </div> </div> <div v-if="!this.intervenant" class="alert alert-primary d-flex align-items-center" role="alert"> <div v-if="isCandidat" class="alert alert-primary d-flex align-items-center" role="alert"> <i class="fa-solid fa-circle-xmark"></i> <div class="ms-2"> Vous ne pouvez pas postuler avec ce profil à cette offre, merci de contacter votre administration de rattachement ou de vous connecter en tant qu'étudiant. Vous avez déjà postulé à cette offre. </div> </div> <div v-if="!isCandidat && nbPostesRestants <= 0" class="alert alert-primary d-flex align-items-center" role="alert"> <i class="fa-solid fa-circle-xmark"></i> <div class="ms-2"> Tous les postes pour cette offre ont été pourvu. </div> </div> <p class="bg-light" style="padding:10px;"> Loading Loading @@ -129,7 +135,6 @@ export default { data() { console.log(this.intervenant); return { saisirUrl: unicaenVue.url('offre-emploi/saisir/:offre', {offre: this.offre.id}), supprimerUrl: unicaenVue.url("offre-emploi/supprimer/:offre", {offre: this.offre.id}), Loading @@ -150,11 +155,17 @@ export default { } }, isDisabled: function () { if (!this.canPostuler || !this.intervenant) { if (!this.offre.canPostuler || this.offre.candidats.indexOf(this.intervenant.id) !== -1) { return 'btn btn-primary disabled'; } return 'btn btn-primary'; }, isCandidat: function () { if (this.offre.candidats.indexOf(this.intervenant.id) !== -1) { return true; } return false; }, shortDesc: function () { var shorDesc = this.offre.description.substr(0, 200); if (this.offre.description.length > 200) { Loading @@ -164,6 +175,9 @@ export default { }, connectionLink: function () { return '/auth/connexion?redirect='+window.location.href; }, nbPostesRestants: function () { return this.offre.nombrePostes-this.offre.candidaturesValides.length; } }, Loading @@ -179,7 +193,6 @@ export default { unicaenVue.axios.get( unicaenVue.url("offre-emploi/get/:offreEmploi", {offreEmploi: this.offre.id}) ).then(response => { console.log(response.data); this.$emit('refresh', response.data); }); }, Loading