/** * */ public function councilDecisionAction() { if ($this->getRequest()->isXmlHttpRequest()) { $this->_helper->layout()->disableLayout(); } $id = $this->_getParam('id'); $data = array('fk_id_businessplan' => $id, 'council_negative' => $this->_mapper->getDescription($id, 'council_negative')); $businessPlan = $this->_mapper->fetchBusinessPlan($id); $formCouncilDecision = new Fefop_Form_CouncilDecision(); if (!empty($businessPlan->fk_id_fefop_contract)) { $mapperContract = new Fefop_Model_Mapper_Contract(); $contract = $mapperContract->detail($businessPlan->fk_id_fefop_contract); $data['date_contract'] = $this->view->date($contract['date_inserted']); $data['approved'] = 1; foreach ($formCouncilDecision as $element) { $element->setAttrib('disabled', true); } $formCouncilDecision->removeDisplayGroup('toolbar'); } $formCouncilDecision->setAction($this->_helper->url('save-council-decision')); $formCouncilDecision->populate($data); $this->view->form = $formCouncilDecision; }