Loading module/Dossier/src/Controller/EmployeurController.php +8 −6 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ namespace Dossier\Controller; use Application\Controller\AbstractController; use Application\Provider\Privilege\Privileges; use Dossier\Entity\Db\Employeur; use Dossier\Form\Traits\EmployeurSaisieFormAwareTrait; use Dossier\Service\Traits\EmployeurServiceAwareTrait; Loading @@ -23,11 +24,12 @@ class EmployeurController extends AbstractController public function indexAction () { $canEdit = $this->isAllowed(Privileges::getResourceId(Privileges::REFERENTIEL_COMMUN_EMPLOYEUR_EDITION)); $critere = $this->params()->fromPost('critere'); $employeurs = $this->getServiceEmployeur()->rechercheEmployeur($critere, 1000); return compact('employeurs'); return compact('employeurs', 'canEdit'); } Loading module/Dossier/view/dossier/employeur/index.phtml +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ <input type="submit" value="chercher"/> </form> </div> <?= $this->partial('liste', compact('employeurs')); ?> <?= $this->partial('liste', compact('employeurs', 'canEdit')); ?> </div> Loading Loading
module/Dossier/src/Controller/EmployeurController.php +8 −6 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ namespace Dossier\Controller; use Application\Controller\AbstractController; use Application\Provider\Privilege\Privileges; use Dossier\Entity\Db\Employeur; use Dossier\Form\Traits\EmployeurSaisieFormAwareTrait; use Dossier\Service\Traits\EmployeurServiceAwareTrait; Loading @@ -23,11 +24,12 @@ class EmployeurController extends AbstractController public function indexAction () { $canEdit = $this->isAllowed(Privileges::getResourceId(Privileges::REFERENTIEL_COMMUN_EMPLOYEUR_EDITION)); $critere = $this->params()->fromPost('critere'); $employeurs = $this->getServiceEmployeur()->rechercheEmployeur($critere, 1000); return compact('employeurs'); return compact('employeurs', 'canEdit'); } Loading
module/Dossier/view/dossier/employeur/index.phtml +1 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ <input type="submit" value="chercher"/> </form> </div> <?= $this->partial('liste', compact('employeurs')); ?> <?= $this->partial('liste', compact('employeurs', 'canEdit')); ?> </div> Loading