Loading module/Application/config/domaine-fonctionnel.config.php +12 −12 Original line number Diff line number Diff line Loading @@ -22,9 +22,9 @@ return [ 'delete' => [ 'type' => 'Segment', 'options' => [ 'route' => '/delete/:domaine-fonctionnel', 'route' => '/delete/:domaineFonctionnel', 'constraints' => [ 'domaine-fonctionnel' => '[0-9]*', 'domaineFonctionnel' => '[0-9]*', ], 'defaults' => [ 'action' => 'delete', Loading @@ -34,9 +34,9 @@ return [ 'saisie' => [ 'type' => 'Segment', 'options' => [ 'route' => '/saisie/[:domaine-fonctionnel]', 'route' => '/saisie/[:domaineFonctionnel]', 'constraints' => [ 'domaine-fonctionnel' => '[0-9]*', 'domaineFonctionnel' => '[0-9]*', ], 'defaults' => [ 'action' => 'saisie', Loading module/Application/src/Application/Controller/DomaineFonctionnelController.php +9 −5 Original line number Diff line number Diff line Loading @@ -14,6 +14,8 @@ class DomaineFonctionnelController extends AbstractController use DomaineFonctionnelSaisieFormAwareTrait; use SourceServiceAwareTrait; public function indexAction() { $this->em()->getFilters()->enable('historique')->init([ Loading @@ -31,14 +33,13 @@ class DomaineFonctionnelController extends AbstractController { /* @var $domaineFonctionnel DomaineFonctionnel */ $domaineFonctionnel = $this->getEvent()->getParam('domaine-fonctionnel'); $domaineFonctionnel = $this->getEvent()->getParam('domaineFonctionnel'); $form = $this->getFormDomaineFonctionnelSaisie(); if (empty($domaineFonctionnel)) { $title = 'Création d\'un nouveau domaine fonctionnel'; $domaineFonctionnel = $this->getServiceDomaineFonctionnel()->newEntity() ->setSource($this->getServiceSource()->getOse()); } else { $title = 'Édition d\'un domaine fonctionnel'; } Loading @@ -56,9 +57,11 @@ class DomaineFonctionnelController extends AbstractController return compact('form', 'title'); } public function deleteAction() { $domaineFonctionnel = $this->getEvent()->getParam('domaine-fonctionnel'); $domaineFonctionnel = $this->getEvent()->getParam('domaineFonctionnel'); try { $this->getServiceDomaineFonctionnel()->delete($domaineFonctionnel); Loading @@ -66,6 +69,7 @@ class DomaineFonctionnelController extends AbstractController } catch (\Exception $e) { $this->flashMessenger()->addErrorMessage(DbException::translate($e)->getMessage()); } return new MessengerViewModel(compact('domaineFonctionnel')); } } module/Application/view/application/domaine-fonctionnel/index.phtml +2 −2 Original line number Diff line number Diff line Loading @@ -29,11 +29,11 @@ $canEdit = $this->isAllowed(Privileges::getResourceId(Privileges::DOMAINES_FONCT <?php if (($canEdit) && ($fr->getSource() == 'OSE')) { ?> <td style="text-align:center;width:1px;white-space: nowrap"> <a class="ajax-modal" data-event="domaine-fonctionnel-saisie" href="<?= $this->url('domaine-fonctionnel/saisie', ['domaine-fonctionnel' => $fr->getId()]) ?>" href="<?= $this->url('domaine-fonctionnel/saisie', ['domaineFonctionnel' => $fr->getId()]) ?>" title="Modifier la DomaineFonctionnel"> <span class="glyphicon glyphicon-edit"></span></a> <a class="pop-ajax" href="<?= $this->url('domaine-fonctionnel/delete', ['domaine-fonctionnel' => $fr->getId()]) ?>" href="<?= $this->url('domaine-fonctionnel/delete', ['domaineFonctionnel' => $fr->getId()]) ?>" title="Supprimer la DomaineFonctionnel" data-content="<p class='lead text-danger'><strong>Attention!</strong> Confirmez-vous cette suppression ?</p>" data-confirm="true" Loading Loading
module/Application/config/domaine-fonctionnel.config.php +12 −12 Original line number Diff line number Diff line Loading @@ -22,9 +22,9 @@ return [ 'delete' => [ 'type' => 'Segment', 'options' => [ 'route' => '/delete/:domaine-fonctionnel', 'route' => '/delete/:domaineFonctionnel', 'constraints' => [ 'domaine-fonctionnel' => '[0-9]*', 'domaineFonctionnel' => '[0-9]*', ], 'defaults' => [ 'action' => 'delete', Loading @@ -34,9 +34,9 @@ return [ 'saisie' => [ 'type' => 'Segment', 'options' => [ 'route' => '/saisie/[:domaine-fonctionnel]', 'route' => '/saisie/[:domaineFonctionnel]', 'constraints' => [ 'domaine-fonctionnel' => '[0-9]*', 'domaineFonctionnel' => '[0-9]*', ], 'defaults' => [ 'action' => 'saisie', Loading
module/Application/src/Application/Controller/DomaineFonctionnelController.php +9 −5 Original line number Diff line number Diff line Loading @@ -14,6 +14,8 @@ class DomaineFonctionnelController extends AbstractController use DomaineFonctionnelSaisieFormAwareTrait; use SourceServiceAwareTrait; public function indexAction() { $this->em()->getFilters()->enable('historique')->init([ Loading @@ -31,14 +33,13 @@ class DomaineFonctionnelController extends AbstractController { /* @var $domaineFonctionnel DomaineFonctionnel */ $domaineFonctionnel = $this->getEvent()->getParam('domaine-fonctionnel'); $domaineFonctionnel = $this->getEvent()->getParam('domaineFonctionnel'); $form = $this->getFormDomaineFonctionnelSaisie(); if (empty($domaineFonctionnel)) { $title = 'Création d\'un nouveau domaine fonctionnel'; $domaineFonctionnel = $this->getServiceDomaineFonctionnel()->newEntity() ->setSource($this->getServiceSource()->getOse()); } else { $title = 'Édition d\'un domaine fonctionnel'; } Loading @@ -56,9 +57,11 @@ class DomaineFonctionnelController extends AbstractController return compact('form', 'title'); } public function deleteAction() { $domaineFonctionnel = $this->getEvent()->getParam('domaine-fonctionnel'); $domaineFonctionnel = $this->getEvent()->getParam('domaineFonctionnel'); try { $this->getServiceDomaineFonctionnel()->delete($domaineFonctionnel); Loading @@ -66,6 +69,7 @@ class DomaineFonctionnelController extends AbstractController } catch (\Exception $e) { $this->flashMessenger()->addErrorMessage(DbException::translate($e)->getMessage()); } return new MessengerViewModel(compact('domaineFonctionnel')); } }
module/Application/view/application/domaine-fonctionnel/index.phtml +2 −2 Original line number Diff line number Diff line Loading @@ -29,11 +29,11 @@ $canEdit = $this->isAllowed(Privileges::getResourceId(Privileges::DOMAINES_FONCT <?php if (($canEdit) && ($fr->getSource() == 'OSE')) { ?> <td style="text-align:center;width:1px;white-space: nowrap"> <a class="ajax-modal" data-event="domaine-fonctionnel-saisie" href="<?= $this->url('domaine-fonctionnel/saisie', ['domaine-fonctionnel' => $fr->getId()]) ?>" href="<?= $this->url('domaine-fonctionnel/saisie', ['domaineFonctionnel' => $fr->getId()]) ?>" title="Modifier la DomaineFonctionnel"> <span class="glyphicon glyphicon-edit"></span></a> <a class="pop-ajax" href="<?= $this->url('domaine-fonctionnel/delete', ['domaine-fonctionnel' => $fr->getId()]) ?>" href="<?= $this->url('domaine-fonctionnel/delete', ['domaineFonctionnel' => $fr->getId()]) ?>" title="Supprimer la DomaineFonctionnel" data-content="<p class='lead text-danger'><strong>Attention!</strong> Confirmez-vous cette suppression ?</p>" data-confirm="true" Loading