Loading composer.lock +6 −6 Changes for composer.lock: 6 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -8131,16 +8131,16 @@ }, { "name": "phpdocumentor/type-resolver", "version": "1.7.0", "version": "1.7.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", "reference": "1534aea9bde19a5c85c5d1e1f834ab63f4c5dcf5" "reference": "dfc078e8af9c99210337325ff5aa152872c98714" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/1534aea9bde19a5c85c5d1e1f834ab63f4c5dcf5", "reference": "1534aea9bde19a5c85c5d1e1f834ab63f4c5dcf5", "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/dfc078e8af9c99210337325ff5aa152872c98714", "reference": "dfc078e8af9c99210337325ff5aa152872c98714", "shasum": "" }, "require": { Loading Loading @@ -8183,9 +8183,9 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.7.0" "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.7.1" }, "time": "2023-03-12T10:13:29+00:00" "time": "2023-03-27T19:02:04+00:00" }, { "name": "phpmd/phpmd", Loading front/Mission/ListeOffreEmploi.vue +4 −4 Changes for front/Mission/ListeOffreEmploi.vue: 4 added lines, 4 removed lines. Original line number Diff line number Diff line <template> <div class="row row-cols-1 row-cols-md-2 g-4"> <div v-for="offre in offres"> <offreEmploi @supprimer="supprimer" @refresh="refresh" :key="offre.id" :offre="offre"></offreEmploi> </div> <offreEmploi v-for="offre in offres" @supprimer="supprimer" @refresh="refresh" :key="offre.id" :offre="offre" :public="this.public"></offreEmploi> </div> <br/> <a class="btn btn-primary" :href="ajoutUrl" @click.prevent="ajout">Ajouter une nouvelle offre</a> </template> Loading @@ -17,6 +15,7 @@ export default { offreEmploi }, props: { public: {type: Boolean, required: true}, canAddOffreEmploi: {type: Boolean, required: true}, }, data() Loading @@ -26,6 +25,7 @@ export default { ajoutUrl: Util.url('offre-emploi/saisir'), }; }, mounted() { this.reload(); Loading front/Mission/OffreEmploi.vue +15 −1 Changes for front/Mission/OffreEmploi.vue: 15 added lines, 1 removed line. Original line number Diff line number Diff line <template> <div class="col"> <div class="col" v-if="isPublic"> <div class="card h-100"> <div class="card-header"> <h4> {{ offre.titre }}</h4> Loading Loading @@ -58,10 +58,12 @@ export default { name: "OffreEmploi.vue", props: { offre: {required: true}, public: {type: Boolean, required: true} }, data() { console.log(this.offre.histoCreation); console.log(this.public); return { saisirUrl: Util.url('offre-emploi/saisir/:offre', {offre: this.offre.id}), Loading @@ -71,6 +73,18 @@ export default { }; }, computed: { isPublic: function () { if (this.public === false) { return true; } else if (this.public === true && this.offre.validation != null) { return true; } else { return false; } } }, methods: { saisir(event) { Loading module/Application/src/functions.php +3 −0 Changes for module/Application/src/functions.php: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -120,12 +120,15 @@ function dqlAndWhere(array $filters, array $parameters): string if (array_key_exists($name, $filters)) { if ($value === null) { $dqlFilters .= "\nAND " . $filters[$name] . ' IS NULL'; } elseif ($value == 'IS NOT NULL') { $dqlFilters .= "\nAND " . $filters[$name] . ' IS NOT NULL'; } else { $dqlFilters .= "\nAND " . $filters[$name] . ' = :' . $name; } } } return $dqlFilters; } Loading module/Mission/config/module.config.php +11 −0 Changes for module/Mission/config/module.config.php: 11 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -168,6 +168,11 @@ return [ 'action' => 'devalider', 'privileges' => Privileges::MISSION_OFFRE_EMPLOI_VALIDER, ], 'public' => [ 'route' => '/public', 'controller' => OffreEmploiController::class, 'action' => 'public', ], ], ], Loading Loading @@ -255,6 +260,12 @@ return [ ], 'guards' => [ [ 'controller' => MissionTypeController::class, 'action' => ['index'], 'roles' => ['guest'], ], [ 'controller' => MissionTypeController::class, 'action' => ['index'], Loading Loading
composer.lock +6 −6 Changes for composer.lock: 6 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -8131,16 +8131,16 @@ }, { "name": "phpdocumentor/type-resolver", "version": "1.7.0", "version": "1.7.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", "reference": "1534aea9bde19a5c85c5d1e1f834ab63f4c5dcf5" "reference": "dfc078e8af9c99210337325ff5aa152872c98714" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/1534aea9bde19a5c85c5d1e1f834ab63f4c5dcf5", "reference": "1534aea9bde19a5c85c5d1e1f834ab63f4c5dcf5", "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/dfc078e8af9c99210337325ff5aa152872c98714", "reference": "dfc078e8af9c99210337325ff5aa152872c98714", "shasum": "" }, "require": { Loading Loading @@ -8183,9 +8183,9 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.7.0" "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.7.1" }, "time": "2023-03-12T10:13:29+00:00" "time": "2023-03-27T19:02:04+00:00" }, { "name": "phpmd/phpmd", Loading
front/Mission/ListeOffreEmploi.vue +4 −4 Changes for front/Mission/ListeOffreEmploi.vue: 4 added lines, 4 removed lines. Original line number Diff line number Diff line <template> <div class="row row-cols-1 row-cols-md-2 g-4"> <div v-for="offre in offres"> <offreEmploi @supprimer="supprimer" @refresh="refresh" :key="offre.id" :offre="offre"></offreEmploi> </div> <offreEmploi v-for="offre in offres" @supprimer="supprimer" @refresh="refresh" :key="offre.id" :offre="offre" :public="this.public"></offreEmploi> </div> <br/> <a class="btn btn-primary" :href="ajoutUrl" @click.prevent="ajout">Ajouter une nouvelle offre</a> </template> Loading @@ -17,6 +15,7 @@ export default { offreEmploi }, props: { public: {type: Boolean, required: true}, canAddOffreEmploi: {type: Boolean, required: true}, }, data() Loading @@ -26,6 +25,7 @@ export default { ajoutUrl: Util.url('offre-emploi/saisir'), }; }, mounted() { this.reload(); Loading
front/Mission/OffreEmploi.vue +15 −1 Changes for front/Mission/OffreEmploi.vue: 15 added lines, 1 removed line. Original line number Diff line number Diff line <template> <div class="col"> <div class="col" v-if="isPublic"> <div class="card h-100"> <div class="card-header"> <h4> {{ offre.titre }}</h4> Loading Loading @@ -58,10 +58,12 @@ export default { name: "OffreEmploi.vue", props: { offre: {required: true}, public: {type: Boolean, required: true} }, data() { console.log(this.offre.histoCreation); console.log(this.public); return { saisirUrl: Util.url('offre-emploi/saisir/:offre', {offre: this.offre.id}), Loading @@ -71,6 +73,18 @@ export default { }; }, computed: { isPublic: function () { if (this.public === false) { return true; } else if (this.public === true && this.offre.validation != null) { return true; } else { return false; } } }, methods: { saisir(event) { Loading
module/Application/src/functions.php +3 −0 Changes for module/Application/src/functions.php: 3 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -120,12 +120,15 @@ function dqlAndWhere(array $filters, array $parameters): string if (array_key_exists($name, $filters)) { if ($value === null) { $dqlFilters .= "\nAND " . $filters[$name] . ' IS NULL'; } elseif ($value == 'IS NOT NULL') { $dqlFilters .= "\nAND " . $filters[$name] . ' IS NOT NULL'; } else { $dqlFilters .= "\nAND " . $filters[$name] . ' = :' . $name; } } } return $dqlFilters; } Loading
module/Mission/config/module.config.php +11 −0 Changes for module/Mission/config/module.config.php: 11 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -168,6 +168,11 @@ return [ 'action' => 'devalider', 'privileges' => Privileges::MISSION_OFFRE_EMPLOI_VALIDER, ], 'public' => [ 'route' => '/public', 'controller' => OffreEmploiController::class, 'action' => 'public', ], ], ], Loading Loading @@ -255,6 +260,12 @@ return [ ], 'guards' => [ [ 'controller' => MissionTypeController::class, 'action' => ['index'], 'roles' => ['guest'], ], [ 'controller' => MissionTypeController::class, 'action' => ['index'], Loading