Loading config/module.config.php +5 −1 Original line number Diff line number Diff line Loading @@ -14,9 +14,12 @@ use Octopus\Service\Immobilier\ImmobilierService; use Octopus\Service\Immobilier\ImmobilierServiceFactory; use Octopus\Service\Individu\IndividuService; use Octopus\Service\Individu\IndividuServiceFactory; use Octopus\Service\OffreDeFormation\OffreDeFormationService; use Octopus\Service\OffreDeFormation\OffreDeFormationServiceFactory; use Octopus\Service\Structure\StructureService; use Octopus\Service\Structure\StructureServiceFactory; use UnicaenAuth\Guard\PrivilegeController; //use UnicaenAuth\Guard\PrivilegeController; use UnicaenAutorisation\Guard\PrivilegeController; use Zend\Router\Http\Literal; return [ Loading Loading @@ -79,6 +82,7 @@ return [ IndividuService::class => IndividuServiceFactory::class, GeographieService::class => GeographieServiceFactory::class, FonctionService::class => FonctionServiceFactory::class, OffreDeFormationService::class => OffreDeFormationServiceFactory::class, ], ], 'controllers' => [ Loading src/Octopus/Controller/OctopusController.php +8 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ use Octopus\Service\Fonction\FonctionServiceAwareTrait; use Octopus\Service\Geographie\GeographieServiceAwareTrait; use Octopus\Service\Immobilier\ImmobilierServiceAwareTrait; use Octopus\Service\Individu\IndividuServiceAwareTrait; use Octopus\Service\OffreDeFormation\OffreDeFormationServiceAwareTrait; use Octopus\Service\Structure\StructureServiceAwareTrait; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; Loading @@ -15,6 +16,7 @@ class OctopusController extends AbstractActionController { use GeographieServiceAwareTrait; use ImmobilierServiceAwareTrait; use IndividuServiceAwareTrait; use OffreDeFormationServiceAwareTrait; use StructureServiceAwareTrait; public function indexAction() { Loading @@ -35,6 +37,9 @@ class OctopusController extends AbstractActionController { $pays = $this->getGeographieService()->getPays('libelleCourt'); $diplomes = $this->getOffreDeFormationService()->getDiplomes(); $etapes = $this->getOffreDeFormationService()->getEtapes(); return new ViewModel([ 'structureTypes' => $structureTypes, 'structures' => $structures, Loading @@ -51,6 +56,9 @@ class OctopusController extends AbstractActionController { 'fonctionsTypes' => $fonctionsTypes, 'pays' => $pays, 'diplomes' => $diplomes, 'etapes' => $etapes, ]); } } No newline at end of file src/Octopus/Controller/OctopusControllerFactory.php +4 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ use Octopus\Service\Fonction\FonctionService; use Octopus\Service\Geographie\GeographieService; use Octopus\Service\Immobilier\ImmobilierService; use Octopus\Service\Individu\IndividuService; use Octopus\Service\OffreDeFormation\OffreDeFormationService; use Octopus\Service\Structure\StructureService; class OctopusControllerFactory { Loading @@ -19,12 +20,14 @@ class OctopusControllerFactory { * @var IndividuService $individuService * @var GeographieService $geographieService * @var FonctionService $fonctionService * @var OffreDeFormationService $offreService */ $structureService = $container->get(StructureService::class); $immobilierService = $container->get(ImmobilierService::class); $individuService = $container->get(IndividuService::class); $geographieService = $container->get(GeographieService::class); $fonctionService = $container->get(FonctionService::class); $offreService = $container->get(OffreDeFormationService::class); /** @var OctopusController $controller */ $controller = new OctopusController(); Loading @@ -33,6 +36,7 @@ class OctopusControllerFactory { $controller->setIndividuService($individuService); $controller->setGeographieService($geographieService); $controller->setFonctionService($fonctionService); $controller->setOffreDeFormationService($offreService); return $controller; } } No newline at end of file view/octopus/octopus/index.phtml +100 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,9 @@ * @var \Octopus\Entity\Db\FonctionType[] $fonctionsTypes * * @var \Octopus\Entity\Db\Pays[] $pays * * @var \Octopus\Entity\Db\OffreDeFormationDiplome[] $diplomes * @var \Octopus\Entity\Db\OffreDeFormationEtape[] $etapes */ use UnicaenApp\Form\Element\SearchAndSelect; Loading Loading @@ -453,3 +456,100 @@ use UnicaenApp\Form\Element\SearchAndSelect; </table> </div> <div class="main"> <h2> OffreDeFormationService </h2> <h3> Diplômes <span class="badge"> <?php echo (count($diplomes) > 500)?"500+":count($diplomes); ?> </span> </h3> <table class="table table-condensed"> <thead> <tr> <th> Libelle Long</th> <th> Type SISE</th> <th> Code SISE</th> <th> Début </th> <th> Fin </th> </tr> </thead> <tbody> <?php $position = 0; ?> <?php foreach ($diplomes as $diplome) : ?> <tr> <td> <?php echo $diplome->getLibelleLong(); ?> </td> <td> <?php echo $diplome->getTypeDiplomeSISE(); ?> </td> <td> <?php echo $diplome->getCodeDiplomeSISE(); ?> </td> <td> <?php echo $diplome->getAnneeDebut(); ?> </td> <td> <?php echo $diplome->getAnneeFin(); ?> </td> </tr> <?php $position += 1; ?> <?php if ($position >= 5) : ?> <tr><td colspan="3"> ... </td></tr> <?php break; ?> <?php endif; ?> <?php endforeach; ?> </tbody> </table> <h3> Étapes <span class="badge"> <?php echo (count($etapes) > 500)?"500+":count($etapes); ?> </span> </h3> <table class="table table-condensed"> <thead> <tr> <th> Libelle Long</th> <th> Structure</th> <th> Début </th> <th> Fin </th> <th> Diplomante</th> <th> À distance</th> </tr> </thead> <tbody> <?php $position = 0; ?> <?php foreach ($etapes as $etape) : ?> <tr> <td> <?php echo $etape->getLibelleLong(); ?> </td> <td> <?php echo $etape->getStructure()->getLibelleCourt(); ?> </td> <td> <?php echo $etape->getAnneeDebut(); ?> </td> <td> <?php echo $etape->getAnneeFin(); ?> </td> <td> <?php if ($etape->getDiplomante() === true) : ?> <span class="glyphicon glyphicon-ok" style="color:darkgreen"></span> <?php endif; ?> <?php if ($etape->getDiplomante() === false) : ?> <span class="glyphicon glyphicon-remove" style="color:darkred"></span> <?php endif; ?> <?php if ($etape->getDiplomante() === null) : ?> <span class="glyphicon glyphicon-question-sign" style="color:darkblue"></span> <?php endif; ?> </td> <td> <?php if ($etape->getADistance() === true) : ?> <span class="glyphicon glyphicon-ok" style="color:darkgreen"></span> <?php endif; ?> <?php if ($etape->getADistance() === false) : ?> <span class="glyphicon glyphicon-remove" style="color:darkred"></span> <?php endif; ?> <?php if ($etape->getADistance() === null) : ?> <span class="glyphicon glyphicon-question-sign" style="color:darkblue"></span> <?php endif; ?> </td> </tr> <?php $position += 1; ?> <?php if ($position >= 5) : ?> <tr><td colspan="3"> ... </td></tr> <?php break; ?> <?php endif; ?> <?php endforeach; ?> </tbody> </table> </div> Loading
config/module.config.php +5 −1 Original line number Diff line number Diff line Loading @@ -14,9 +14,12 @@ use Octopus\Service\Immobilier\ImmobilierService; use Octopus\Service\Immobilier\ImmobilierServiceFactory; use Octopus\Service\Individu\IndividuService; use Octopus\Service\Individu\IndividuServiceFactory; use Octopus\Service\OffreDeFormation\OffreDeFormationService; use Octopus\Service\OffreDeFormation\OffreDeFormationServiceFactory; use Octopus\Service\Structure\StructureService; use Octopus\Service\Structure\StructureServiceFactory; use UnicaenAuth\Guard\PrivilegeController; //use UnicaenAuth\Guard\PrivilegeController; use UnicaenAutorisation\Guard\PrivilegeController; use Zend\Router\Http\Literal; return [ Loading Loading @@ -79,6 +82,7 @@ return [ IndividuService::class => IndividuServiceFactory::class, GeographieService::class => GeographieServiceFactory::class, FonctionService::class => FonctionServiceFactory::class, OffreDeFormationService::class => OffreDeFormationServiceFactory::class, ], ], 'controllers' => [ Loading
src/Octopus/Controller/OctopusController.php +8 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ use Octopus\Service\Fonction\FonctionServiceAwareTrait; use Octopus\Service\Geographie\GeographieServiceAwareTrait; use Octopus\Service\Immobilier\ImmobilierServiceAwareTrait; use Octopus\Service\Individu\IndividuServiceAwareTrait; use Octopus\Service\OffreDeFormation\OffreDeFormationServiceAwareTrait; use Octopus\Service\Structure\StructureServiceAwareTrait; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; Loading @@ -15,6 +16,7 @@ class OctopusController extends AbstractActionController { use GeographieServiceAwareTrait; use ImmobilierServiceAwareTrait; use IndividuServiceAwareTrait; use OffreDeFormationServiceAwareTrait; use StructureServiceAwareTrait; public function indexAction() { Loading @@ -35,6 +37,9 @@ class OctopusController extends AbstractActionController { $pays = $this->getGeographieService()->getPays('libelleCourt'); $diplomes = $this->getOffreDeFormationService()->getDiplomes(); $etapes = $this->getOffreDeFormationService()->getEtapes(); return new ViewModel([ 'structureTypes' => $structureTypes, 'structures' => $structures, Loading @@ -51,6 +56,9 @@ class OctopusController extends AbstractActionController { 'fonctionsTypes' => $fonctionsTypes, 'pays' => $pays, 'diplomes' => $diplomes, 'etapes' => $etapes, ]); } } No newline at end of file
src/Octopus/Controller/OctopusControllerFactory.php +4 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ use Octopus\Service\Fonction\FonctionService; use Octopus\Service\Geographie\GeographieService; use Octopus\Service\Immobilier\ImmobilierService; use Octopus\Service\Individu\IndividuService; use Octopus\Service\OffreDeFormation\OffreDeFormationService; use Octopus\Service\Structure\StructureService; class OctopusControllerFactory { Loading @@ -19,12 +20,14 @@ class OctopusControllerFactory { * @var IndividuService $individuService * @var GeographieService $geographieService * @var FonctionService $fonctionService * @var OffreDeFormationService $offreService */ $structureService = $container->get(StructureService::class); $immobilierService = $container->get(ImmobilierService::class); $individuService = $container->get(IndividuService::class); $geographieService = $container->get(GeographieService::class); $fonctionService = $container->get(FonctionService::class); $offreService = $container->get(OffreDeFormationService::class); /** @var OctopusController $controller */ $controller = new OctopusController(); Loading @@ -33,6 +36,7 @@ class OctopusControllerFactory { $controller->setIndividuService($individuService); $controller->setGeographieService($geographieService); $controller->setFonctionService($fonctionService); $controller->setOffreDeFormationService($offreService); return $controller; } } No newline at end of file
view/octopus/octopus/index.phtml +100 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,9 @@ * @var \Octopus\Entity\Db\FonctionType[] $fonctionsTypes * * @var \Octopus\Entity\Db\Pays[] $pays * * @var \Octopus\Entity\Db\OffreDeFormationDiplome[] $diplomes * @var \Octopus\Entity\Db\OffreDeFormationEtape[] $etapes */ use UnicaenApp\Form\Element\SearchAndSelect; Loading Loading @@ -453,3 +456,100 @@ use UnicaenApp\Form\Element\SearchAndSelect; </table> </div> <div class="main"> <h2> OffreDeFormationService </h2> <h3> Diplômes <span class="badge"> <?php echo (count($diplomes) > 500)?"500+":count($diplomes); ?> </span> </h3> <table class="table table-condensed"> <thead> <tr> <th> Libelle Long</th> <th> Type SISE</th> <th> Code SISE</th> <th> Début </th> <th> Fin </th> </tr> </thead> <tbody> <?php $position = 0; ?> <?php foreach ($diplomes as $diplome) : ?> <tr> <td> <?php echo $diplome->getLibelleLong(); ?> </td> <td> <?php echo $diplome->getTypeDiplomeSISE(); ?> </td> <td> <?php echo $diplome->getCodeDiplomeSISE(); ?> </td> <td> <?php echo $diplome->getAnneeDebut(); ?> </td> <td> <?php echo $diplome->getAnneeFin(); ?> </td> </tr> <?php $position += 1; ?> <?php if ($position >= 5) : ?> <tr><td colspan="3"> ... </td></tr> <?php break; ?> <?php endif; ?> <?php endforeach; ?> </tbody> </table> <h3> Étapes <span class="badge"> <?php echo (count($etapes) > 500)?"500+":count($etapes); ?> </span> </h3> <table class="table table-condensed"> <thead> <tr> <th> Libelle Long</th> <th> Structure</th> <th> Début </th> <th> Fin </th> <th> Diplomante</th> <th> À distance</th> </tr> </thead> <tbody> <?php $position = 0; ?> <?php foreach ($etapes as $etape) : ?> <tr> <td> <?php echo $etape->getLibelleLong(); ?> </td> <td> <?php echo $etape->getStructure()->getLibelleCourt(); ?> </td> <td> <?php echo $etape->getAnneeDebut(); ?> </td> <td> <?php echo $etape->getAnneeFin(); ?> </td> <td> <?php if ($etape->getDiplomante() === true) : ?> <span class="glyphicon glyphicon-ok" style="color:darkgreen"></span> <?php endif; ?> <?php if ($etape->getDiplomante() === false) : ?> <span class="glyphicon glyphicon-remove" style="color:darkred"></span> <?php endif; ?> <?php if ($etape->getDiplomante() === null) : ?> <span class="glyphicon glyphicon-question-sign" style="color:darkblue"></span> <?php endif; ?> </td> <td> <?php if ($etape->getADistance() === true) : ?> <span class="glyphicon glyphicon-ok" style="color:darkgreen"></span> <?php endif; ?> <?php if ($etape->getADistance() === false) : ?> <span class="glyphicon glyphicon-remove" style="color:darkred"></span> <?php endif; ?> <?php if ($etape->getADistance() === null) : ?> <span class="glyphicon glyphicon-question-sign" style="color:darkblue"></span> <?php endif; ?> </td> </tr> <?php $position += 1; ?> <?php if ($position >= 5) : ?> <tr><td colspan="3"> ... </td></tr> <?php break; ?> <?php endif; ?> <?php endforeach; ?> </tbody> </table> </div>