public function addVoltageRegulatorAction()
 {
     $form = new Form_AddVoltageRegulator();
     $ccm_model = new Model_CcmModels();
     if ($this->_request->isPost()) {
         if ($form->isValid($this->_request->getPost())) {
             $cold_chain = new Model_ColdChain();
             //$cold_chain->form_values['warehouse'] = $this->_request->warehouse;
             $cold_chain->form_values = $this->_request->getPost();
             $data = $form->getValues();
             $ccm_model->form_values = $data;
             $ccm_model->form_values['warehouse'] = $this->_request->warehouse;
             $cold_chain->addVoltageRegulator();
             $this->redirect("/cold-chain/add-voltage-regulator?success=1");
         }
     }
     $this->view->form = $form;
     $result = $ccm_model->getVoltageRegulators();
     $this->view->result = $result;
     $base_url = Zend_Registry::get('baseurl');
     $this->view->inlineScript()->appendFile($base_url . '/js/all_level_combos.js');
 }