Commit b298d275 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Masquage des acquis et des parcours de formation

parent feb50448
Loading
Loading
Loading
Loading
+14 −4
Original line number Diff line number Diff line
@@ -17,6 +17,9 @@ use UnicaenUtilisateur\Entity\Db\User;
 * @var AgentMissionSpecifique[] $missions
 */

$displayParcours = false;
$displayAcquis = false;

if ($agent !== null) {
    $canVoir = $this->isAllowed($agent, AgentPrivileges::AGENT_ELEMENT_VOIR);
    $canAjouter = $this->isAllowed($agent, AgentPrivileges::AGENT_ELEMENT_AJOUTER);
@@ -74,11 +77,13 @@ if ($agent !== null) {
                    professionnels
                </a>
            </li>
            <?php if ($displayParcours === true) : ?>
            <li>
                <a href="#parcours" aria-controls="parcours" role="tab" data-toggle="tabz">
                    Parcours de formation<br/> et logiciels metiers
                </a>
            </li>
            <?php endif; ?>
            <li>
                <a href="#acquis" aria-controls="acquis" role="tab" data-toggle="tabz">
                    Acquis de l'agent <br/> &nbsp;
@@ -104,6 +109,8 @@ if ($agent !== null) {
            <div id="entretiens" class="tab-pane " role="tabpanel">
                <?php echo $this->partial('partial/entretien-professionnel', ['entretiens' => $entretiens, 'agent' => $agent, "droits" => $droits], []); ?>
            </div>

            <?php if ($displayParcours === true) : ?>
            <div id="parcours" class="tab-pane " role="tabpanel">
                <h2>
                    Parcours de formation
@@ -116,6 +123,7 @@ if ($agent !== null) {

                <?php echo $this->partial('partial/parcours-de-formation.phtml', ['parcoursArray' => $parcoursArray, 'agent' => $agent], [], true); ?>
            </div>
            <?php endif; ?>
            <div id="acquis" class="tab-pane " role="tabpanel">
                <h2> Applications, compétences et formations</h2>

@@ -124,11 +132,13 @@ if ($agent !== null) {
                    Dans ces listes, les applications, compétences et formations associées aux fiches de postes d'un agent ne sont pas mentionnées.
                </div>

                <?php if ($displayAcquis === true) : ?>
                    <!-- APPLICATION ------------------------------------------------------------------------------------------------------>
                    <?php echo $this->applicationBloc($agent->getApplicationDictionnaireComplet(), $agent, $options); ?>

                    <!-- COMPETENCE ------------------------------------------------------------------------------------------------------->
                    <?php echo $this->competenceBloc($agent->getCompetenceDictionnaireComplet(), $agent, $options); ?>
                <?php endif; ?>

                <!-- FORMATION ------------------------------------------------------------------------------------------------------->
                <?php echo $this->formationBloc($agent->getFormationDictionnaire(), $agent, $options); ?>
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ $canExport = $this->isAllowed($fiche, FichePostePrivileges::FICHEPOSTE_AFFICHE
            <?php echo $this->partial('partial/competences',  ['fiche' => $fiche, 'competences' => $competences,   'mode' => 'affichage'], [], true); ?>
            <?php echo $this->partial('partial/applications', ['fiche' => $fiche, 'applications' => $applications, 'mode' => 'affichage'], [], true); ?>
<!--            --><?php //echo $this->partial('partial/formations',   ['fiche' => $fiche, 'formations' => $formations,     'mode' => 'affichage'], [], true); ?>
            <?php echo $this->partial('partial/parcours-de-formation',  ['parcours' => $parcours, 'agent' => $agent, 'fiche' => $fiche, 'mode' => 'affichage'], [], true); ?>
            <?php //echo $this->partial('partial/parcours-de-formation',  ['parcours' => $parcours, 'agent' => $agent, 'fiche' => $fiche, 'mode' => 'affichage'], [], true); ?>
        </div>
    </div>

+1 −1
Original line number Diff line number Diff line
@@ -174,7 +174,7 @@ $this->headTitle("Modification de la fiche de poste #".$fiche->getId());
            <?php //echo $this->competenceBloc($competences, $fiche->getAgent()); ?>
            <?php echo $this->partial('partial/competences',  ['fiche' => $fiche, 'competences' => $competences,   'mode' => 'edition'], [], true); ?>
            <?php echo $this->partial('partial/applications', ['fiche' => $fiche, 'applications' => $applications, 'mode' => 'edition'], [], true); ?>
            <?php echo $this->partial('partial/parcours-de-formation',  ['parcours' => $parcours, 'agent' => $agent, 'fiche' => $fiche, 'mode' => 'affichage'], [], true); ?>
            <?php //echo $this->partial('partial/parcours-de-formation',  ['parcours' => $parcours, 'agent' => $agent, 'fiche' => $fiche, 'mode' => 'affichage'], [], true); ?>
        </div>
    </div>

+3 −7
Original line number Diff line number Diff line
@@ -2,20 +2,16 @@

namespace Autoform\Service\Champ;

use Application\Service\GestionEntiteHistorisationTrait;
use Autoform\Entity\Db\Categorie;
use Autoform\Entity\Db\Champ;
use Doctrine\ORM\NonUniqueResultException;
use Doctrine\ORM\ORMException;
use UnicaenApp\Exception\RuntimeException;
use UnicaenApp\Service\EntityManagerAwareTrait;
use UnicaenUtilisateur\Entity\DateTimeAwareTrait;
use UnicaenUtilisateur\Service\User\UserServiceAwareTrait;
use Zend\Mvc\Controller\AbstractActionController;

class ChampService {
    use EntityManagerAwareTrait;
    use UserServiceAwareTrait;
    use DateTimeAwareTrait;
    use GestionEntiteHistorisationTrait;

    /** GESTION DES ENTITES *******************************************************************************************/

@@ -23,7 +19,7 @@ class ChampService {
     * @param Champ $champ
     * @return Champ
     */
    public function create($champ)
    public function create(Champ $champ) : Champ
    {
        $user = $this->getUserService()->getConnectedUser();
        $date = $this->getDateTime();
+29 −16
Original line number Diff line number Diff line
@@ -18,6 +18,9 @@ use Application\Entity\Db\ParcoursDeFormation;
use EntretienProfessionnel\Entity\Db\EntretienProfessionnel;use EntretienProfessionnel\Provider\Privilege\EntretienproPrivileges;
use Mailing\Model\Db\Mail;

$displayParcours = false;
$displayAcquis = false;

$this->headTitle('Édition de l\'entretien professionnel');
$ficheposte = $agent->getFichePosteActif();

@@ -47,16 +50,20 @@ echo $this->partial('partial/header', ['entretien' => $entretien, 'agent' => $ag
                Compte-rendu <br/> d'évaluation de formation &nbsp;
            </a>
        </li>
        <?php if ($displayParcours === true) : ?>
            <li>
                <a href="#parcours" aria-controls="parcours" role="tab" data-toggle="tabz">
                Parcours de formation<br/> et logiciels metiers
                    Parcours de <br/> formation et <br/> logiciels metiers
                </a>
            </li>
        <?php endif; ?>
        <?php if ($displayAcquis === true) : ?>
            <li>
                <a href="#acquis" aria-controls="acquis" role="tab" data-toggle="tabz">
                Acquis de l'agent <br/> &nbsp;
                    Acquis de <br/> l'agent <br/> &nbsp;
                </a>
            </li>
        <?php endif ?>
        <li>
            <a href="#avis" aria-controls="avis" role="tab" data-toggle="tabz" >
                Observations <br/> &nbsp;
@@ -86,12 +93,18 @@ echo $this->partial('partial/header', ['entretien' => $entretien, 'agent' => $ag
            <div id="formations" class="tab-pane " role="tabpanel">
                <?php echo $this->partial('partial/formations.phtml', ['entretien' => $entretien, 'parcours' => $parcours, 'fiche' => $ficheposte, 'options' => ['modification' => false], 'source' => 'afficherAction']); ?>
            </div>

            <?php if ($displayParcours === true) : ?>
                <div id="parcours" class="tab-pane " role="tabpanel">
                    <?php echo $this->partial('partial/parcours.phtml', ['entretien' => $entretien, 'agent' => $agent, 'parcours' => $parcours, 'fiche' => $ficheposte, 'options' => ['mode' => 'affichage', 'modification' => false, 'droits' => $droits], 'source' => 'afficherAction']); ?>
                </div>
            <?php endif; ?>
            <?php if ($displayAcquis === true) : ?>
                <div id="acquis" class="tab-pane " role="tabpanel">
                    <?php echo $this->partial('partial/acquis.phtml', ['entretien' => $entretien, 'agent' => $agent, 'options' => ['mode' => 'affichage', 'modification' => false], 'source' => 'afficherAction']); ?>
                </div>
            <?php endif; ?>

            <div id="avis" class="tab-pane " role="tabpanel">
                <?php echo $this->partial('partial/observation.phtml', ['entretien' => $entretien, 'observation' => $entretien->getObservationActive(), 'source' => 'afficherAction']); ?>
            </div>
Loading