Loading module/Application/src/Application/Controller/FicheMetierController.php +2 −0 Changes for module/Application/src/Application/Controller/FicheMetierController.php: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -96,6 +96,7 @@ class FicheMetierController extends AbstractActionController $parcours = $this->getParcoursDeFormationService()->generateParcoursArrayFromFicheMetier($fiche); $applications = $this->getFicheMetierService()->getApplicationsDictionnaires($fiche, true); $competences = $this->getFicheMetierService()->getCompetencesDictionnaires($fiche, true); $popup = ($this->params()->fromQuery('popup') === 'true'); return new ViewModel([ 'title' => "Visualisation d'une fiche métier", Loading @@ -103,6 +104,7 @@ class FicheMetierController extends AbstractActionController 'competences' => $competences, 'applications' => $applications, 'parcours' => $parcours, 'popup' => $popup, ]); } Loading module/Application/src/Application/View/Helper/partial/fiche-metier.phtml +12 −2 Changes for module/Application/src/Application/View/Helper/partial/fiche-metier.phtml: 12 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -35,6 +35,8 @@ if (isset($options['activite-liste'])) { $sansTitre = (isset($options['sans-titre']) AND $options['sans-titre']); $mode = $options['mode']; if ($options['popup']) $options['actions']['afficher'] = false; ?> <?php /** Watermark de l'identifiant de la fiche qui peut être utilisée pour des redirections **********************/ ?> Loading Loading @@ -235,6 +237,7 @@ $mode = $options['mode']; Ajouter une compétence </a> <?php endif; ?> <?php if ($options['popup'] !== true) : ?> <?php /** @see FicheMetierController::graphiqueCompetencesAction() */ ?> <a href="<?php echo $this->url('fiche-metier-type/graphique-competences', ['fiche-metier' => $fichemetier->getId(), 'agent' => ($agent)?$agent->getId():null], [], true); ?>" class="btn btn-primary action ajax-modal" Loading @@ -242,12 +245,15 @@ $mode = $options['mode']; <span class="icon graphique"></span> Afficher les compétences </a> <?php endif; ?> </div> </div> </div> <div class="panel-body"> <div class="col-md-1"></div> <div class="col-md-10"><?php echo $this->competenceBloc($dictionnaireCompetence, $fichemetier, ['display' => ['titre' => false, 'validation' => false], 'actions' => $options['actions']]); ?></div> <div class="col-md-10"><?php echo $this->competenceBloc($dictionnaireCompetence, $fichemetier, ['display' => ['titre' => false, 'validation' => false], 'actions' => $options['actions']]); ?></div> </div> </div> <?php endif; ?> Loading Loading @@ -283,6 +289,7 @@ $mode = $options['mode']; Ajouter une application </a> <?php endif; ?> <?php if ($options['popup'] !== true) : ?> <?php /** @see FicheMetierController::graphiqueApplicationsAction() */ ?> <a href="<?php echo $this->url('fiche-metier-type/graphique-applications', ['fiche-metier' => $fichemetier->getId(), 'agent' => ($agent)?$agent->getId():null], [], true); ?>" class="btn btn-primary action ajax-modal" Loading @@ -290,6 +297,7 @@ $mode = $options['mode']; <span class="icon graphique"></span> Afficher les applications </a> <?php endif; ?> </div> </div> Loading @@ -297,7 +305,9 @@ $mode = $options['mode']; <div class="panel-body"> <div class="row"> <div class="col-md-1"></div> <div class="col-md-10"><?php echo $this->applicationBloc($dictionnaireApplication,$fichemetier, ['display' => ['titre' => false, 'validation' => false], 'actions' => $options['actions']]); ?></div> <div class="col-md-10"><?php echo $this->applicationBloc($dictionnaireApplication,$fichemetier, ['display' => ['titre' => false, 'validation' => false], 'actions' => $options['actions']]); ?></div> </div> </div> </div> Loading module/Application/view/application/fiche-metier/afficher.phtml +2 −0 Changes for module/Application/view/application/fiche-metier/afficher.phtml: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ * @var FicheMetier $fiche * @var array $competences * @var array $applications * @var bool $popup * @var ParcoursDeFormation $parcours */ Loading @@ -21,6 +22,7 @@ $this->headTitle('Affichage de la fiche métier #' . $fiche->getId(). " : " . $l 'competences' => $competences, 'applications' => $applications, 'parcours' => $parcours, 'popup' => $popup, 'actions' => ['modifier' => false, 'supprimer' => false, 'valider' => false], ]); ?> Loading module/Application/view/application/fiche-poste/ajouter-fiche-metier.phtml +1 −1 Changes for module/Application/view/application/fiche-poste/ajouter-fiche-metier.phtml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ use Application\Form\AjouterFicheMetier\AjouterFicheMetierForm; if (value !== undefined && value !== "") { let url = "../../fiche-metier-type/afficher/" + value; let url = "../../fiche-metier-type/afficher/" + value + '?popup=true'; $.ajax({ type: "POST", url: url, Loading Loading
module/Application/src/Application/Controller/FicheMetierController.php +2 −0 Changes for module/Application/src/Application/Controller/FicheMetierController.php: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -96,6 +96,7 @@ class FicheMetierController extends AbstractActionController $parcours = $this->getParcoursDeFormationService()->generateParcoursArrayFromFicheMetier($fiche); $applications = $this->getFicheMetierService()->getApplicationsDictionnaires($fiche, true); $competences = $this->getFicheMetierService()->getCompetencesDictionnaires($fiche, true); $popup = ($this->params()->fromQuery('popup') === 'true'); return new ViewModel([ 'title' => "Visualisation d'une fiche métier", Loading @@ -103,6 +104,7 @@ class FicheMetierController extends AbstractActionController 'competences' => $competences, 'applications' => $applications, 'parcours' => $parcours, 'popup' => $popup, ]); } Loading
module/Application/src/Application/View/Helper/partial/fiche-metier.phtml +12 −2 Changes for module/Application/src/Application/View/Helper/partial/fiche-metier.phtml: 12 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -35,6 +35,8 @@ if (isset($options['activite-liste'])) { $sansTitre = (isset($options['sans-titre']) AND $options['sans-titre']); $mode = $options['mode']; if ($options['popup']) $options['actions']['afficher'] = false; ?> <?php /** Watermark de l'identifiant de la fiche qui peut être utilisée pour des redirections **********************/ ?> Loading Loading @@ -235,6 +237,7 @@ $mode = $options['mode']; Ajouter une compétence </a> <?php endif; ?> <?php if ($options['popup'] !== true) : ?> <?php /** @see FicheMetierController::graphiqueCompetencesAction() */ ?> <a href="<?php echo $this->url('fiche-metier-type/graphique-competences', ['fiche-metier' => $fichemetier->getId(), 'agent' => ($agent)?$agent->getId():null], [], true); ?>" class="btn btn-primary action ajax-modal" Loading @@ -242,12 +245,15 @@ $mode = $options['mode']; <span class="icon graphique"></span> Afficher les compétences </a> <?php endif; ?> </div> </div> </div> <div class="panel-body"> <div class="col-md-1"></div> <div class="col-md-10"><?php echo $this->competenceBloc($dictionnaireCompetence, $fichemetier, ['display' => ['titre' => false, 'validation' => false], 'actions' => $options['actions']]); ?></div> <div class="col-md-10"><?php echo $this->competenceBloc($dictionnaireCompetence, $fichemetier, ['display' => ['titre' => false, 'validation' => false], 'actions' => $options['actions']]); ?></div> </div> </div> <?php endif; ?> Loading Loading @@ -283,6 +289,7 @@ $mode = $options['mode']; Ajouter une application </a> <?php endif; ?> <?php if ($options['popup'] !== true) : ?> <?php /** @see FicheMetierController::graphiqueApplicationsAction() */ ?> <a href="<?php echo $this->url('fiche-metier-type/graphique-applications', ['fiche-metier' => $fichemetier->getId(), 'agent' => ($agent)?$agent->getId():null], [], true); ?>" class="btn btn-primary action ajax-modal" Loading @@ -290,6 +297,7 @@ $mode = $options['mode']; <span class="icon graphique"></span> Afficher les applications </a> <?php endif; ?> </div> </div> Loading @@ -297,7 +305,9 @@ $mode = $options['mode']; <div class="panel-body"> <div class="row"> <div class="col-md-1"></div> <div class="col-md-10"><?php echo $this->applicationBloc($dictionnaireApplication,$fichemetier, ['display' => ['titre' => false, 'validation' => false], 'actions' => $options['actions']]); ?></div> <div class="col-md-10"><?php echo $this->applicationBloc($dictionnaireApplication,$fichemetier, ['display' => ['titre' => false, 'validation' => false], 'actions' => $options['actions']]); ?></div> </div> </div> </div> Loading
module/Application/view/application/fiche-metier/afficher.phtml +2 −0 Changes for module/Application/view/application/fiche-metier/afficher.phtml: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ * @var FicheMetier $fiche * @var array $competences * @var array $applications * @var bool $popup * @var ParcoursDeFormation $parcours */ Loading @@ -21,6 +22,7 @@ $this->headTitle('Affichage de la fiche métier #' . $fiche->getId(). " : " . $l 'competences' => $competences, 'applications' => $applications, 'parcours' => $parcours, 'popup' => $popup, 'actions' => ['modifier' => false, 'supprimer' => false, 'valider' => false], ]); ?> Loading
module/Application/view/application/fiche-poste/ajouter-fiche-metier.phtml +1 −1 Changes for module/Application/view/application/fiche-poste/ajouter-fiche-metier.phtml: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ use Application\Form\AjouterFicheMetier\AjouterFicheMetierForm; if (value !== undefined && value !== "") { let url = "../../fiche-metier-type/afficher/" + value; let url = "../../fiche-metier-type/afficher/" + value + '?popup=true'; $.ajax({ type: "POST", url: url, Loading