From: vincent@cubedesigners.com Date: Wed, 4 Dec 2013 11:46:26 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=370098ba06b86f6c1a48a4b1dabae2bafb270d09;p=ccgm.git --- diff --git a/framework/application/Bootstrap.php b/framework/application/Bootstrap.php index 253d7b3..36f8f6b 100644 --- a/framework/application/Bootstrap.php +++ b/framework/application/Bootstrap.php @@ -44,7 +44,8 @@ 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'); + $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)'); $templates['Infos pratiques'] = array('plan' => 'Plan du centre', diff --git a/framework/application/forms/CMS/Listing.php b/framework/application/forms/CMS/Listing.php new file mode 100644 index 0000000..df6ddc1 --- /dev/null +++ b/framework/application/forms/CMS/Listing.php @@ -0,0 +1,13 @@ +setLegend('Essais'); + $this->addSubForm($essais, 'listes'); + } + +} diff --git a/framework/application/forms/CMS/Reunion.php b/framework/application/forms/CMS/Reunion.php new file mode 100644 index 0000000..ea37aea --- /dev/null +++ b/framework/application/forms/CMS/Reunion.php @@ -0,0 +1,7 @@ +setAttrib('rows', 3); + $titre->setAttrib('rows', 3); + $titre->setLabel('Titre'); + $this->addElement($titre); + + $code = new Zend_Form_Element_Text('code'); + $code->setLabel('Code'); + $this->addElement($code); + + $localisation = new Zend_Form_Element_Text('localisation'); + $localisation->setLabel('Localisation'); + $this->addElement($localisation); + + $phase = new Zend_Form_Element_Text('phase'); + $phase->setLabel('Phase'); + $this->addElement($phase); + + $promoteur = new Zend_Form_Element_Text('promoteur'); + $promoteur->setLabel('Promoteur'); + $this->addElement($promoteur); + } + +} diff --git a/framework/application/forms/CMS/Sub/Listing/Essais.php b/framework/application/forms/CMS/Sub/Listing/Essais.php new file mode 100644 index 0000000..d3e0e70 --- /dev/null +++ b/framework/application/forms/CMS/Sub/Listing/Essais.php @@ -0,0 +1,14 @@ +setBaseSubForm($essai); + $this->setBaseLegend('Edition de l\'essai $code'); + $this->setNewLegend('Nouvel essai'); + } + +} diff --git a/framework/application/forms/CMS/Sub/Listing/Liste.php b/framework/application/forms/CMS/Sub/Listing/Liste.php new file mode 100644 index 0000000..2c08b78 --- /dev/null +++ b/framework/application/forms/CMS/Sub/Listing/Liste.php @@ -0,0 +1,17 @@ +setLabel('Titre'); + $this->addElement($titre); + + $essais = new CCGM_Form_CMS_Sub_Listing_Essais(); + $essais->setLegend('Essais'); + $this->addSubForm($essais, 'essais'); + } + +} diff --git a/framework/application/forms/CMS/Sub/Listing/Listes.php b/framework/application/forms/CMS/Sub/Listing/Listes.php new file mode 100644 index 0000000..4b10f8b --- /dev/null +++ b/framework/application/forms/CMS/Sub/Listing/Listes.php @@ -0,0 +1,14 @@ +setBaseSubForm($liste); + $this->setNewLegend('Nouveau groupe d\'essais'); + $this->setBaseLegend('Edition du group $titre'); + } + +} diff --git a/framework/application/layouts/scripts/layout.phtml b/framework/application/layouts/scripts/layout.phtml new file mode 100644 index 0000000..5e9a677 --- /dev/null +++ b/framework/application/layouts/scripts/layout.phtml @@ -0,0 +1,18 @@ +acl()->isAllowed('edition')) { + $this->headScript()->addCommonsAdmin(); +} +$this->headScript()->addTooltip(); +$this->headMeta()->setViewport(1024); +$this->headScript()->addWebFont(array('google' => array('families' => array('Ubuntu:500italic,300,300italic,500,400italic')))); +$this->headScript()->addIEConditionnals(); +$this->headScript()->appendFile('/js/common.js'); +$this->headLink()->appendStylesheet('/less/common.less', 'all'); + + +profile(__FILE__, __LINE__, 'Before rendering body'); +$res = $this->htmlPage($this->render('common/body.phtml')); +profile(__FILE__, __LINE__, 'Body rendered'); +echo $res; +endProfile(); diff --git a/framework/application/views/scripts/templates/listing.phtml b/framework/application/views/scripts/templates/listing.phtml new file mode 100644 index 0000000..fb9e0c3 --- /dev/null +++ b/framework/application/views/scripts/templates/listing.phtml @@ -0,0 +1,8 @@ +