Loading data/ddl/table/OFFRE_EMPLOI.php +0 −12 Changes for data/ddl/table/OFFRE_EMPLOI.php: 0 added lines, 12 removed lines. Original line number Diff line number Diff line Loading @@ -141,18 +141,6 @@ return [ '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, ], 'STRUCTURE_ID' => [ 'name' => 'STRUCTURE_ID', 'type' => 'int', Loading data/ddl/table/OFFRE_EMPLOI_ETUDIANT.php +1 −1 Changes for data/ddl/table/OFFRE_EMPLOI_ETUDIANT.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ return [ 'position' => 2, 'commentaire' => NULL, ], 'MISSION_ID' => [ 'OFFRE_EMPLOI_ID' => [ 'name' => 'OFFRE_EMPLOI_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', Loading front/Mission/ListeOffreEmploi.vue +6 −10 Changes for front/Mission/ListeOffreEmploi.vue: 6 added lines, 10 removed lines. Original line number Diff line number Diff line <template> <div v-for="offre in listeOffre"> <div v-for="offre in listeOffres"> <offreEmploi :key="offre.id" :taux="offre" :listeTaux="listeOffreEmploi"></offreEmploi> </div> Loading @@ -20,7 +20,7 @@ export default { data() { return { listeOffre: [], listeOffres: [], ajoutUrl: Util.url('taux/saisir') }; }, Loading @@ -39,21 +39,17 @@ export default { { this.reload(); }, refreshListe() { this.reload(); }, refresh(taux) { let index = Util.json.indexById(this.listeTaux, taux.id); this.listeTaux[index] = taux; }, reload() { axios.get( Util.url("taux/liste-taux") Util.url("offre-emploi/liste") ).then(response => { this.listeTaux = response.data; this.listeOffres = response.data; }); }, } Loading module/Mission/config/module.config.php +15 −1 Changes for module/Mission/config/module.config.php: 15 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -10,6 +10,8 @@ use Mission\Controller\OffreEmploiController; use Mission\Controller\OffreEmploiControllerFactory; use Mission\Service\MissionTypeService; use Mission\Service\MissionTypeServiceFactory; use Mission\Service\OffreEmploiService; use Mission\Service\OffreEmploiServiceFactory; use UnicaenAuth\Assertion\AssertionFactory; use UnicaenAuth\Guard\PrivilegeController; Loading Loading @@ -125,7 +127,18 @@ return [ 'action' => 'index', 'privileges' => Privileges::MISSION_OFFRE_EMPLOI_VISUALISATION, 'may_terminate' => true, 'child_routes' => [ 'liste' => [ 'route' => '/liste', 'controller' => OffreEmploiController::class, 'action' => 'liste', 'privileges' => Privileges::MISSION_OFFRE_EMPLOI_VISUALISATION, ], ], ], 'missions-type' => [ 'route' => '/missions-type', 'controller' => MissionTypeController::class, Loading Loading @@ -217,7 +230,7 @@ return [ ], [ 'controller' => OffreEmploiController::class, 'action' => ['index'], 'action' => ['index', 'liste'], 'privileges' => [ Privileges::MISSION_OFFRE_EMPLOI_VISUALISATION, ], Loading @@ -234,6 +247,7 @@ return [ MissionTypeService::class => MissionTypeServiceFactory::class, Assertion\MissionAssertion::class => AssertionFactory::class, Service\MissionService::class => Service\MissionServiceFactory::class, OffreEmploiService::class => OffreEmploiServiceFactory::class, ], 'forms' => [ Loading module/Mission/src/Controller/OffreEmploiController.php +16 −0 Changes for module/Mission/src/Controller/OffreEmploiController.php: 16 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ use Mission\Entity\Db\Mission; use Mission\Entity\Db\VolumeHoraireMission; use Mission\Form\MissionFormAwareTrait; use Mission\Service\MissionServiceAwareTrait; use Mission\Service\OffreEmploiServiceAwareTrait; use Service\Entity\Db\TypeVolumeHoraire; Loading @@ -26,6 +27,7 @@ use Service\Entity\Db\TypeVolumeHoraire; */ class OffreEmploiController extends AbstractController { use OffreEmploiServiceAwareTrait; public function indexAction() { Loading @@ -34,4 +36,18 @@ class OffreEmploiController extends AbstractController return []; } /** * Retourne la liste des offres d'emploi * * @return JsonModel */ public function listeAction() { $query = $this->getServiceOffreEmploi()->query([]); return $this->axios()->send($query); } } No newline at end of file Loading
data/ddl/table/OFFRE_EMPLOI.php +0 −12 Changes for data/ddl/table/OFFRE_EMPLOI.php: 0 added lines, 12 removed lines. Original line number Diff line number Diff line Loading @@ -141,18 +141,6 @@ return [ '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, ], 'STRUCTURE_ID' => [ 'name' => 'STRUCTURE_ID', 'type' => 'int', Loading
data/ddl/table/OFFRE_EMPLOI_ETUDIANT.php +1 −1 Changes for data/ddl/table/OFFRE_EMPLOI_ETUDIANT.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ return [ 'position' => 2, 'commentaire' => NULL, ], 'MISSION_ID' => [ 'OFFRE_EMPLOI_ID' => [ 'name' => 'OFFRE_EMPLOI_ID', 'type' => 'int', 'bdd-type' => 'NUMBER', Loading
front/Mission/ListeOffreEmploi.vue +6 −10 Changes for front/Mission/ListeOffreEmploi.vue: 6 added lines, 10 removed lines. Original line number Diff line number Diff line <template> <div v-for="offre in listeOffre"> <div v-for="offre in listeOffres"> <offreEmploi :key="offre.id" :taux="offre" :listeTaux="listeOffreEmploi"></offreEmploi> </div> Loading @@ -20,7 +20,7 @@ export default { data() { return { listeOffre: [], listeOffres: [], ajoutUrl: Util.url('taux/saisir') }; }, Loading @@ -39,21 +39,17 @@ export default { { this.reload(); }, refreshListe() { this.reload(); }, refresh(taux) { let index = Util.json.indexById(this.listeTaux, taux.id); this.listeTaux[index] = taux; }, reload() { axios.get( Util.url("taux/liste-taux") Util.url("offre-emploi/liste") ).then(response => { this.listeTaux = response.data; this.listeOffres = response.data; }); }, } Loading
module/Mission/config/module.config.php +15 −1 Changes for module/Mission/config/module.config.php: 15 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -10,6 +10,8 @@ use Mission\Controller\OffreEmploiController; use Mission\Controller\OffreEmploiControllerFactory; use Mission\Service\MissionTypeService; use Mission\Service\MissionTypeServiceFactory; use Mission\Service\OffreEmploiService; use Mission\Service\OffreEmploiServiceFactory; use UnicaenAuth\Assertion\AssertionFactory; use UnicaenAuth\Guard\PrivilegeController; Loading Loading @@ -125,7 +127,18 @@ return [ 'action' => 'index', 'privileges' => Privileges::MISSION_OFFRE_EMPLOI_VISUALISATION, 'may_terminate' => true, 'child_routes' => [ 'liste' => [ 'route' => '/liste', 'controller' => OffreEmploiController::class, 'action' => 'liste', 'privileges' => Privileges::MISSION_OFFRE_EMPLOI_VISUALISATION, ], ], ], 'missions-type' => [ 'route' => '/missions-type', 'controller' => MissionTypeController::class, Loading Loading @@ -217,7 +230,7 @@ return [ ], [ 'controller' => OffreEmploiController::class, 'action' => ['index'], 'action' => ['index', 'liste'], 'privileges' => [ Privileges::MISSION_OFFRE_EMPLOI_VISUALISATION, ], Loading @@ -234,6 +247,7 @@ return [ MissionTypeService::class => MissionTypeServiceFactory::class, Assertion\MissionAssertion::class => AssertionFactory::class, Service\MissionService::class => Service\MissionServiceFactory::class, OffreEmploiService::class => OffreEmploiServiceFactory::class, ], 'forms' => [ Loading
module/Mission/src/Controller/OffreEmploiController.php +16 −0 Changes for module/Mission/src/Controller/OffreEmploiController.php: 16 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ use Mission\Entity\Db\Mission; use Mission\Entity\Db\VolumeHoraireMission; use Mission\Form\MissionFormAwareTrait; use Mission\Service\MissionServiceAwareTrait; use Mission\Service\OffreEmploiServiceAwareTrait; use Service\Entity\Db\TypeVolumeHoraire; Loading @@ -26,6 +27,7 @@ use Service\Entity\Db\TypeVolumeHoraire; */ class OffreEmploiController extends AbstractController { use OffreEmploiServiceAwareTrait; public function indexAction() { Loading @@ -34,4 +36,18 @@ class OffreEmploiController extends AbstractController return []; } /** * Retourne la liste des offres d'emploi * * @return JsonModel */ public function listeAction() { $query = $this->getServiceOffreEmploi()->query([]); return $this->axios()->send($query); } } No newline at end of file