Loading module/Application/src/Application/Entity/Db/FichePoste.php +2 −2 Changes for module/Application/src/Application/Entity/Db/FichePoste.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -352,7 +352,7 @@ class FichePoste implements ResourceInterface, HistoriqueAwareInterface { public function isComplete() { if (! $this->getAgent()) return false; if (! $this->getPoste()) return false; // if (! $this->getPoste()) return false; if (! $this->getFicheTypeExternePrincipale()) return false; return true; } Loading @@ -360,7 +360,7 @@ class FichePoste implements ResourceInterface, HistoriqueAwareInterface { public function isVide() { if ( $this->getAgent()) return false; if ( $this->getPoste()) return false; // if ( $this->getPoste()) return false; if ( $this->getFicheTypeExternePrincipale()) return false; return true; } Loading module/Application/src/Application/Service/Export/FichePoste/fiche-poste.phtml +61 −43 Changes for module/Application/src/Application/Service/Export/FichePoste/fiche-poste.phtml: 61 added lines, 43 removed lines. Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ use Application\Entity\Db\FichePoste; use Application\Entity\Db\FicheposteActiviteDescriptionRetiree; use Application\Entity\Db\FicheTypeExterne; use Application\Entity\Db\Poste; use Application\Entity\Db\Structure; $canAssocierAgent = true; $canAssocierMetierType = true; Loading Loading @@ -113,12 +114,7 @@ $metierLibelle = ($metier)?$metier->getLibelle():null; </tr> <tr> <th> Grades </th> <?php $grades = []; foreach ($agent->getGrades() as $grade) { if ($grade->getDateDebut() <= $now AND ($grade->getDateFin() === null OR $grade->getDateFin() > $now)) $grades[] = $grade; } ?> <?php $grades = $agent->getGradesActifs(); ?> <td> <ul> <?php foreach ($grades as $grade): ?> Loading Loading @@ -176,46 +172,68 @@ $metierLibelle = ($metier)?$metier->getLibelle():null; Environnement du poste de travail dans l'organisation </div> <?php if ($fiche->getPoste() !== null && $fiche->getPoste()->getStructure() !== null) : ?> <?php if ($fiche->getPoste()->getStructure()->getDescription() !== null) :?> <?php echo $fiche->getPoste()->getStructure()->getDescription(); ?> <?php else: ?> Aucune description de fournie pour l'affectation <?php endif; ?> <?php else: ?> Aucune affectation de renseignée. <?php endif; ?> <?php /** @var Structure[] $structures */ $structures = []; foreach ($grades as $agentGrade) { $structure = $agentGrade->getStructure(); if ($structure !== null) $structures[] = $structure; } ?> Structures dans lesquelles l'agent est affecté : <ul> <?php foreach ($structures as $structure) : ?> <li><?php echo $structure->getLibelleLong(); ?></li> <?php endforeach; ?> </ul> <?php if ($poste === null): ?> Aucun poste de renseigné <?php foreach ($structures as $structure) : ?> <div class="fiche-banner"> <?php echo $structure->getLibelleLong(); ?> </div> <?php if ($structure->getDescription() !== null) :?> <?php echo $structure->getDescription(); ?> <?php else: ?> <table class="info"> <tr> <th> Numéro de poste </th> <td> <?php echo $poste->getNumeroPoste(); ?> </td> </tr> <tr> <th> Affectation </th> <td> <?php echo $poste->getStructure()->getLibelleLong(); ?> </td> </tr> <tr> <th> Rattachement hiérarchique </th> <td> <?php echo $poste->getRattachementHierarchique()->getDenomination(); ?> </td> </tr> <tr> <th> Correspondance </th> <td> BAP <?php echo $poste->getCorrespondance()->getCategorie(); ?> - <?php echo strtolower($poste->getCorrespondance()->getLibelleLong()); ?></td> </tr> <tr> <th> Domaine professionnel </th> <td> <?php echo $poste->getDomaine()->getLibelle(); ?> </td> </tr> <tr> <th> Fonction </th> <td> <?php echo $poste->getFonction(); ?> </td> </tr> </table> <div class="alert alert-warning"> <i class="fas fa-exclamation-triangle"></i> Aucune description de fournie pour l'affectation <em><?php echo $structure->getLibelleCourt(); ?></em>. </div> <?php endif; ?> <?php endforeach; ?> <!-- --><?php //if ($poste === null): ?> <!-- Aucun poste de renseigné--> <!-- --><?php //else : ?> <!-- <table class="info">--> <!-- <tr>--> <!-- <th> Numéro de poste </th>--> <!-- <td> --><?php //echo $poste->getNumeroPoste(); ?><!-- </td>--> <!-- </tr>--> <!-- <tr>--> <!-- <th> Affectation </th>--> <!-- <td> --><?php //echo $poste->getStructure()->getLibelleLong(); ?><!-- </td>--> <!-- </tr>--> <!-- <tr>--> <!-- <th> Rattachement hiérarchique </th>--> <!-- <td> --><?php //echo $poste->getRattachementHierarchique()->getDenomination(); ?><!-- </td>--> <!-- </tr>--> <!-- <tr>--> <!-- <th> Correspondance </th>--> <!-- <td> BAP --><?php //echo $poste->getCorrespondance()->getCategorie(); ?><!-- - --><?php //echo strtolower($poste->getCorrespondance()->getLibelleLong()); ?><!--</td>--> <!-- </tr>--> <!-- <tr>--> <!-- <th> Domaine professionnel </th>--> <!-- <td> --><?php //echo $poste->getDomaine()->getLibelle(); ?><!-- </td>--> <!-- </tr>--> <!-- <tr>--> <!-- <th> Fonction </th>--> <!-- <td> --><?php //echo $poste->getFonction(); ?><!-- </td>--> <!-- </tr>--> <!-- </table>--> <!-- --><?php //endif; ?> </div> <br/> Loading module/Application/src/Application/View/Helper/FichesPostesAsArrayViewHelper.php +1 −1 Changes for module/Application/src/Application/View/Helper/FichesPostesAsArrayViewHelper.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ class FichesPostesAsArrayViewHelper extends AbstractHelper $displays = [ 'agent' => true, 'poste' => true, 'poste' => false, 'fiche-principale' => true, 'modification' => false, 'action' => true, Loading module/Application/view/application/fiche-poste/afficher.phtml +1 −1 Changes for module/Application/view/application/fiche-poste/afficher.phtml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -55,7 +55,7 @@ $canAfficher = $this->isAllowed($fiche, FichePostePrivileges::FICHEPOSTE_AFFICHE </div> </div> <?php echo $this->partial('partial/environnement-poste', ['fiche' => $fiche, 'mode' => 'affichage']); ?> <?php echo $this->partial('partial/environnement-poste', ['fiche' => $fiche, 'agent' => $agent, 'mode' => 'affichage']); ?> <!-- FICHES TYPES -----------------------------------------------------------------------------------------------------> Loading module/Application/view/application/fiche-poste/editer.phtml +1 −1 Changes for module/Application/view/application/fiche-poste/editer.phtml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -112,7 +112,7 @@ $this->headTitle("Modification de la fiche de poste #".$fiche->getId()); </div> </div> <?php echo $this->partial('partial/environnement-poste', ['fiche' => $fiche, 'mode' => 'edition']); ?> <?php echo $this->partial('partial/environnement-poste', ['fiche' => $fiche, 'agent' => $agent, 'mode' => 'edition']); ?> <!-- FICHES TYPES -----------------------------------------------------------------------------------------------------> Loading Loading
module/Application/src/Application/Entity/Db/FichePoste.php +2 −2 Changes for module/Application/src/Application/Entity/Db/FichePoste.php: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -352,7 +352,7 @@ class FichePoste implements ResourceInterface, HistoriqueAwareInterface { public function isComplete() { if (! $this->getAgent()) return false; if (! $this->getPoste()) return false; // if (! $this->getPoste()) return false; if (! $this->getFicheTypeExternePrincipale()) return false; return true; } Loading @@ -360,7 +360,7 @@ class FichePoste implements ResourceInterface, HistoriqueAwareInterface { public function isVide() { if ( $this->getAgent()) return false; if ( $this->getPoste()) return false; // if ( $this->getPoste()) return false; if ( $this->getFicheTypeExternePrincipale()) return false; return true; } Loading
module/Application/src/Application/Service/Export/FichePoste/fiche-poste.phtml +61 −43 Changes for module/Application/src/Application/Service/Export/FichePoste/fiche-poste.phtml: 61 added lines, 43 removed lines. Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ use Application\Entity\Db\FichePoste; use Application\Entity\Db\FicheposteActiviteDescriptionRetiree; use Application\Entity\Db\FicheTypeExterne; use Application\Entity\Db\Poste; use Application\Entity\Db\Structure; $canAssocierAgent = true; $canAssocierMetierType = true; Loading Loading @@ -113,12 +114,7 @@ $metierLibelle = ($metier)?$metier->getLibelle():null; </tr> <tr> <th> Grades </th> <?php $grades = []; foreach ($agent->getGrades() as $grade) { if ($grade->getDateDebut() <= $now AND ($grade->getDateFin() === null OR $grade->getDateFin() > $now)) $grades[] = $grade; } ?> <?php $grades = $agent->getGradesActifs(); ?> <td> <ul> <?php foreach ($grades as $grade): ?> Loading Loading @@ -176,46 +172,68 @@ $metierLibelle = ($metier)?$metier->getLibelle():null; Environnement du poste de travail dans l'organisation </div> <?php if ($fiche->getPoste() !== null && $fiche->getPoste()->getStructure() !== null) : ?> <?php if ($fiche->getPoste()->getStructure()->getDescription() !== null) :?> <?php echo $fiche->getPoste()->getStructure()->getDescription(); ?> <?php else: ?> Aucune description de fournie pour l'affectation <?php endif; ?> <?php else: ?> Aucune affectation de renseignée. <?php endif; ?> <?php /** @var Structure[] $structures */ $structures = []; foreach ($grades as $agentGrade) { $structure = $agentGrade->getStructure(); if ($structure !== null) $structures[] = $structure; } ?> Structures dans lesquelles l'agent est affecté : <ul> <?php foreach ($structures as $structure) : ?> <li><?php echo $structure->getLibelleLong(); ?></li> <?php endforeach; ?> </ul> <?php if ($poste === null): ?> Aucun poste de renseigné <?php foreach ($structures as $structure) : ?> <div class="fiche-banner"> <?php echo $structure->getLibelleLong(); ?> </div> <?php if ($structure->getDescription() !== null) :?> <?php echo $structure->getDescription(); ?> <?php else: ?> <table class="info"> <tr> <th> Numéro de poste </th> <td> <?php echo $poste->getNumeroPoste(); ?> </td> </tr> <tr> <th> Affectation </th> <td> <?php echo $poste->getStructure()->getLibelleLong(); ?> </td> </tr> <tr> <th> Rattachement hiérarchique </th> <td> <?php echo $poste->getRattachementHierarchique()->getDenomination(); ?> </td> </tr> <tr> <th> Correspondance </th> <td> BAP <?php echo $poste->getCorrespondance()->getCategorie(); ?> - <?php echo strtolower($poste->getCorrespondance()->getLibelleLong()); ?></td> </tr> <tr> <th> Domaine professionnel </th> <td> <?php echo $poste->getDomaine()->getLibelle(); ?> </td> </tr> <tr> <th> Fonction </th> <td> <?php echo $poste->getFonction(); ?> </td> </tr> </table> <div class="alert alert-warning"> <i class="fas fa-exclamation-triangle"></i> Aucune description de fournie pour l'affectation <em><?php echo $structure->getLibelleCourt(); ?></em>. </div> <?php endif; ?> <?php endforeach; ?> <!-- --><?php //if ($poste === null): ?> <!-- Aucun poste de renseigné--> <!-- --><?php //else : ?> <!-- <table class="info">--> <!-- <tr>--> <!-- <th> Numéro de poste </th>--> <!-- <td> --><?php //echo $poste->getNumeroPoste(); ?><!-- </td>--> <!-- </tr>--> <!-- <tr>--> <!-- <th> Affectation </th>--> <!-- <td> --><?php //echo $poste->getStructure()->getLibelleLong(); ?><!-- </td>--> <!-- </tr>--> <!-- <tr>--> <!-- <th> Rattachement hiérarchique </th>--> <!-- <td> --><?php //echo $poste->getRattachementHierarchique()->getDenomination(); ?><!-- </td>--> <!-- </tr>--> <!-- <tr>--> <!-- <th> Correspondance </th>--> <!-- <td> BAP --><?php //echo $poste->getCorrespondance()->getCategorie(); ?><!-- - --><?php //echo strtolower($poste->getCorrespondance()->getLibelleLong()); ?><!--</td>--> <!-- </tr>--> <!-- <tr>--> <!-- <th> Domaine professionnel </th>--> <!-- <td> --><?php //echo $poste->getDomaine()->getLibelle(); ?><!-- </td>--> <!-- </tr>--> <!-- <tr>--> <!-- <th> Fonction </th>--> <!-- <td> --><?php //echo $poste->getFonction(); ?><!-- </td>--> <!-- </tr>--> <!-- </table>--> <!-- --><?php //endif; ?> </div> <br/> Loading
module/Application/src/Application/View/Helper/FichesPostesAsArrayViewHelper.php +1 −1 Changes for module/Application/src/Application/View/Helper/FichesPostesAsArrayViewHelper.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -27,7 +27,7 @@ class FichesPostesAsArrayViewHelper extends AbstractHelper $displays = [ 'agent' => true, 'poste' => true, 'poste' => false, 'fiche-principale' => true, 'modification' => false, 'action' => true, Loading
module/Application/view/application/fiche-poste/afficher.phtml +1 −1 Changes for module/Application/view/application/fiche-poste/afficher.phtml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -55,7 +55,7 @@ $canAfficher = $this->isAllowed($fiche, FichePostePrivileges::FICHEPOSTE_AFFICHE </div> </div> <?php echo $this->partial('partial/environnement-poste', ['fiche' => $fiche, 'mode' => 'affichage']); ?> <?php echo $this->partial('partial/environnement-poste', ['fiche' => $fiche, 'agent' => $agent, 'mode' => 'affichage']); ?> <!-- FICHES TYPES -----------------------------------------------------------------------------------------------------> Loading
module/Application/view/application/fiche-poste/editer.phtml +1 −1 Changes for module/Application/view/application/fiche-poste/editer.phtml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -112,7 +112,7 @@ $this->headTitle("Modification de la fiche de poste #".$fiche->getId()); </div> </div> <?php echo $this->partial('partial/environnement-poste', ['fiche' => $fiche, 'mode' => 'edition']); ?> <?php echo $this->partial('partial/environnement-poste', ['fiche' => $fiche, 'agent' => $agent, 'mode' => 'edition']); ?> <!-- FICHES TYPES -----------------------------------------------------------------------------------------------------> Loading