Skip to content
Snippets Groups Projects
Commit 00aa0410 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Finalisation de l'IHM des domaines fonctionnels

parent 99cf59ac
No related branches found
No related tags found
3 merge requests!35B8.1,!34Domaine fonctionnel,!29Domaine fonctionnel
......@@ -54,7 +54,7 @@ return [
'administration' => [
'pages' => [
'domaine-fonctionnel' => [
'label' => 'Domaine Fonctionnel',
'label' => 'Domaines fonctionnels',
'icon' => 'fa fa-graduation-cap',
'route' => 'domaine-fonctionnel',
'resource' => PrivilegeController::getResourceId('Application\Controller\DomaineFonctionnel', 'index'),
......
......@@ -35,12 +35,12 @@ class DomaineFonctionnelController extends AbstractController
$form = $this->getFormDomaineFonctionnelSaisie();
if (empty($domaineFonctionnel)) {
$title = 'Création d\'un nouveau Domaine Fonctionnel';
$title = 'Création d\'un nouveau domaine fonctionnel';
$domaineFonctionnel = $this->getServiceDomaineFonctionnel()->newEntity()
->setSource($this->getServiceSource()->getOse());
} else {
$title = 'Édition d\'un Domaine Fonctionnel';
$title = 'Édition d\'un domaine fonctionnel';
}
$form->bindRequestSave($domaineFonctionnel, $this->getRequest(), function (DomaineFonctionnel $fr) {
......
......@@ -6,7 +6,7 @@
use Application\Provider\Privilege\Privileges;
$this->headTitle()->append("DOMAINE_FONCTIONNELs");
$this->headTitle()->append("Domaines fonctionnels");
$canEdit = $this->isAllowed(Privileges::getResourceId(Privileges::DOMAINES_FONCTIONNELS_ADMINISTRATION_EDITION));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment