From: vincent@cubedesigners.com Date: Thu, 5 Dec 2013 10:52:05 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a595e1a703806e2eca5aeb742b6a6fa4965c1bb2;p=ccgm.git --- diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index 36f8f6b..104a21c 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -33,6 +33,21 @@ class Bootstrap extends CubeIT_Bootstrap { protected function _initAcl() { $acl = parent::_initAcl(); + $acl->addRole('medecin'); + $acl->addRole('personnel'); + + $acl->addResource('medecin'); + $acl->addResource('personnel'); + + $acl->addResource('administration/users/medecin'); + $acl->addResource('administration/users/personnel'); + + $acl->allow('medecin', 'medecin'); + $acl->allow('personnel', 'personnel'); + + $acl->allow('admin', 'administration/users/medecin'); + $acl->allow('admin', 'administration/users/personnel'); + return $acl; } @@ -44,7 +59,7 @@ class Bootstrap extends CubeIT_Bootstrap { $templates = array(); $templates['Génériques'] = array('text' => 'Page de texte', 'liens' => 'Liens', 'faq' => 'Questions / Réponses', 'temoignages' => 'Témoignages'); $templates['Accueil'] = array('home' => 'Page d\'accueil'); - $templates['Le centre'] = array('equipes' => 'L\'équipe','reunion'=>'Réunion de concertation'); + $templates['Le centre'] = array('equipes' => 'L\'équipe', 'reunion' => 'Réunion de concertation'); $templates['Recherche clinique'] = array('listing' => 'Listing'); $templates['Parcours patient'] = array('parcours' => 'Parcours', 'soins' => 'Soins support'); $templates['Traitements'] = array('traitement' => 'Traitement (Texte avec accordéon)'); diff --git a/framework/application/configs/application.ini b/framework/application/configs/application.ini index 4f051eb..1ab3392 100644 --- a/framework/application/configs/application.ini +++ b/framework/application/configs/application.ini @@ -39,6 +39,8 @@ navigation.containers[]=-3; acl.perpage = false acl.roles[] = superadmin acl.roles[] = admin +acl.roles[] = medecin +acl.roles[] = personnel mail.test = APPLICATION_PATH "/../data/email/test" @@ -50,7 +52,7 @@ locales.fr = variant = 0 [medecins : base] -dev=false +dev=true variant = 1 webhost = medecins.ccgm.fr diff --git a/framework/application/views/helpers/Essais.php b/framework/application/views/helpers/Essais.php index 6a50fa5..e12ef81 100644 --- a/framework/application/views/helpers/Essais.php +++ b/framework/application/views/helpers/Essais.php @@ -13,14 +13,22 @@ class CCGM_View_Helper_Essais extends Zend_View_Helper_Abstract { protected function _liste($liste) { $res = '
'; - $res.='

' . $liste->titre . '

'; - $res.=$this->_table($liste->essais); + $res.='

' . $liste['titre'] . '

'; + $res.=$this->_table($liste['essais']); $res.='
'; return $res; } protected function _table($essais) { - + $classes = array(array('class' => 'titre'), array('class' => 'code'), array('class' => 'localisation'), array('class' => 'phase'), array('class' => 'promoteur')); + $head = array(array('Titre de l\'essai', 'Code de l\'essai', 'Localisation', 'Phase', 'Promoteur')); + $datas = array(); + foreach ($essais as $e) { + $row = array($e['titre'], $e['code'], $e['localisation'], $e['phase'], $e['promoteur']); + $datas[] = $row; + } + + return $this->view->table($head, $datas, array(), array(), $classes); } } diff --git a/framework/application/views/scripts/templates/listing.phtml b/framework/application/views/scripts/templates/listing.phtml index bc3df1f..de6c064 100644 --- a/framework/application/views/scripts/templates/listing.phtml +++ b/framework/application/views/scripts/templates/listing.phtml @@ -1,3 +1,4 @@ +headScript()->addScriptAndStyle('listing') ?>