public function __construct($options = null) { if (isset($options['isXmlHttpRequest']) && $options['isXmlHttpRequest']) { $this->_disabledDefaultActions = true; } $this->_disabledLangSwitcher = true; if (!empty($options['object'])) { $this->_object = $options['object']; unset($options['object']); } parent::__construct($options); }
public function __construct($options = null) { // $formDataName = 'reportsForm'; $this->_disabledDefaultActions = false; $this->_addSubmitSaveClose = true; $this->_disabledLangSwitcher = true; if (!empty($options['object'])) { $this->_object = $options['object']; unset($options['object']); } parent::__construct($options); $this->setAttrib('id', 'reports'); $this->addDisplayGroup(array('RE_Label'), 'reportsData'); $this->getDisplayGroup('reportsData')->setAttrib('class', 'infosFieldset')->removeDecorator('DtDdWrapper'); }
public function __construct($options = null) { $this->_disabledDefaultActions = false; $this->_disabledLangSwitcher = true; if (!empty($options['object'])) { $this->_object = $options['object']; unset($options['object']); } parent::__construct($options); $this->setAttrib('id', 'volunteersInfo'); $years = new Zend_Form_Element_Text('YP_Year'); $years->setLabel($this->getView()->getCibleText('form_label_YP_Year'))->addFilter('StripTags')->addFilter('StringTrim')->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline'))))->setAttrib('class', 'stdTextInput'); $this->addElement($years); $this->addDisplayGroup(array('VP_Job', 'VP_Notes', 'YP_Year'), 'vData'); $this->getDisplayGroup('vData')->setLegend('Informations')->setAttrib('class', 'infosFieldset')->removeDecorator('DtDdWrapper'); }
public function __construct($options = null) { if (!empty($options['object'])) { $this->_object = $options['object']; unset($options['object']); } // variable parent::__construct($options); $titleEditor = new Cible_Form_Element_Editor('ST_ValueTitle', array('mode' => Cible_Form_Element_Editor::ADVANCED)); $titleEditor->setLabel($this->getView()->getCibleText('form_legend_blockData'))->setAttrib('class', 'largeEditor')->setOrder(9); $label = $titleEditor->getDecorator('label'); $label->setOption('class', $this->_labelCSS); $this->addElement($titleEditor); $textEditor = new Cible_Form_Element_Editor('ST_ValueText', array('mode' => Cible_Form_Element_Editor::ADVANCED)); $textEditor->setLabel($this->getView()->getCibleText('form_legend_blockData'))->setAttrib('class', 'largeEditor')->setOrder(7); $label = $textEditor->getDecorator('label'); $label->setOption('class', $this->_labelCSS); $this->addElement($textEditor); }
public function __construct($options = null) { if (isset($options['isXmlHttpRequest']) && $options['isXmlHttpRequest']) { $this->_disabledDefaultActions = true; } $this->_disabledLangSwitcher = true; if (!empty($options['object'])) { $this->_object = $options['object']; unset($options['object']); } parent::__construct($options); $id = new Zend_Form_Element_Hidden('MR_ID'); $id->removeDecorator('Label'); $id->removeDecorator('DtDdWrapper'); $this->addElement($id); $this->addDisplayGroup(array('MR_AssuMaladie', 'MR_ExpiracyDate'), 'assu'); $assu = $this->getDisplayGroup('assu'); $assu->setLegend('Assurance maladie')->setAttrib('class', 'infosFieldset assu')->removeDecorator('DtDdWrapper'); $assu->setOrder(1); $this->addDisplayGroup(array('MR_HasTravelInsur', 'MR_TravelInduranceName', 'MR_TravelIndurancePhone', 'MR_TravelInduranceNum', 'MR_TravelInduranceExpiracy'), 'travel'); $travel = $this->getDisplayGroup('travel'); $travel->setLegend('Assurance hors Québec')->setAttrib('class', 'infosFieldset travel')->removeDecorator('DtDdWrapper'); $travel->setOrder(2); $this->addDisplayGroup(array('MR_EmergyPhone', 'MR_OtherHouse', 'MR_OtherWork', 'MR_OtherCell'), 'emergency'); $emergency = $this->getDisplayGroup('emergency'); $emergency->setLegend("En cas d'urgence")->setAttrib('class', 'infosFieldset emergency')->removeDecorator('DtDdWrapper'); $emergency->setOrder(3); $this->addDisplayGroup(array('MR_Allergy', 'MR_AllergyOther', 'MR_AllergyMedic', 'MR_AllergyMedicName', 'MR_AllergyMedicQty', 'MR_AllowEmergencyCares'), 'allergy'); $allergy = $this->getDisplayGroup('allergy'); $allergy->setLegend("Allergies")->setAttrib('class', 'infosFieldset allergy')->removeDecorator('DtDdWrapper'); $allergy->setOrder(4); $this->addDisplayGroup(array('MR_Diseases'), 'diseases'); $dieases = $this->getDisplayGroup('diseases'); $dieases->setLegend("Maladies")->setAttrib('class', 'infosFieldset diseases')->removeDecorator('DtDdWrapper'); $dieases->setOrder(5); $this->addDisplayGroup(array('MR_HasGlasses', 'MR_HasLens', 'MR_Fracture', 'MR_Chirurgie', 'MR_Specific', 'MR_Notes'), 'others'); $other = $this->getDisplayGroup('others'); $other->setLegend("Informations complémentaires")->setAttrib('class', 'infosFieldset others clearBoth')->removeDecorator('DtDdWrapper'); $other->setOrder(99); }
public function __construct($options = null) { $formDataName = 'staffForm'; $this->_disabledDefaultActions = false; $this->_disabledLangSwitcher = true; if (!empty($options['object'])) { $this->_object = $options['object']; unset($options['object']); } parent::__construct($options); $this->setAttrib('id', 'staffInfo'); $subForm = new Cible_Form_SubForm(); $subForm->setName($formDataName)->removeDecorator('DtDdWrapper'); $subForm->setLegend('Adresse'); $address = new Cible_View_Helper_FormAddress($subForm); $address->enableFields(array('firstAddress' => false, 'secondAddress' => false, 'cityTxt' => false, 'zipCode' => false, 'state' => false, 'country' => false, 'firstTel' => false, 'secondTel' => false)); $address->formAddress(); $this->addSubForm($subForm, $formDataName); $this->getSubForm($formDataName)->getElement('selectedState')->getDecorator('HtmlTag')->setOption('style', 'margin: 0px;'); $this->addDisplayGroup(array('SP_Notes'), 'staffData'); $this->getDisplayGroup('staffData')->setLegend('Informations')->setAttrib('class', 'infosFieldset')->removeDecorator('DtDdWrapper'); }
public function __construct($options = null) { if (!empty($options['isXmlHttpRequest'])) { $this->_disabledDefaultActions = true; } $this->_disabledLangSwitcher = true; if (!empty($options['object'])) { $this->_object = $options['object']; unset($options['object']); } parent::__construct($options); $subForm = new Cible_Form_SubForm(); $subForm->setName('parentForm')->removeDecorator('DtDdWrapper'); $subForm->setLegend('Adresse'); $address = new Cible_View_Helper_FormAddress($subForm); $address->enableFields(array('firstAddress' => false, 'secondAddress' => false, 'cityTxt' => false, 'zipCode' => false, 'state' => false, 'country' => false, 'firstTel' => false, 'secondTel' => false)); $address->formAddress(); $this->addSubForm($subForm, 'parentForm'); $this->getSubForm('parentForm')->getElement('selectedState')->getDecorator('HtmlTag')->setOption('style', 'margin: 0px;'); $this->addDisplayGroup(array('PP_Role', 'PP_TaxReceipt', 'PP_AssuSocNum', 'PP_PhoneWork', 'PP_EmploiTps', 'PP_Notes'), 'data'); $this->getDisplayGroup('data')->setLegend('Infornations')->setAttrib('class', 'infosFieldsetParent')->removeDecorator('DtDdWrapper'); }
public function __construct($options = null) { $this->_disabledDefaultActions = false; $this->_disabledLangSwitcher = true; if (!empty($options['object'])) { $this->_object = $options['object']; unset($options['object']); } parent::__construct($options); $this->setAttrib('id', 'memberInfo'); $this->addDisplayGroup(array('MP_BirthDateDt', 'MP_BirthDate', 'MP_Age', 'MP_School', 'MP_SchoolYear', 'MP_AssuSocNum', 'MP_Phone', 'MP_Section'), 'identity'); $this->getDisplayGroup('identity')->setLegend('Identification')->setAttrib('class', 'infosFieldset')->removeDecorator('DtDdWrapper'); $this->addDisplayGroup(array('MP_CountryOrig', 'MP_PassportNum', 'MP_PassportExpiracyDateDt', 'MP_PassportExpiracyDate', 'MP_PassportBirthDate', 'MP_PassportFirstName', 'MP_PassportLastName'), 'passport'); $this->getDisplayGroup('passport')->setAttrib('class', 'infosFieldset')->setLegend('Passeport')->removeDecorator('DtDdWrapper'); $this->addDisplayGroup(array('MP_LiveWith', 'MP_AgreePhotos', 'MP_Notes'), 'other'); $this->getDisplayGroup('other')->setAttrib('class', 'infosFieldset')->removeDecorator('DtDdWrapper'); $this->addDisplayGroup(array('MP_Category', 'MP_YearsParticipate', 'MP_IsStaff'), 'otherRight'); $this->getDisplayGroup('otherRight')->setAttrib('class', 'infosFieldset')->removeDecorator('DtDdWrapper'); if (isset($options['baseDir'])) { $url = $options['baseDir'] . 'member/index/print-registration/id/' . $options['dataId'] . '/'; $this->getView()->assign('printPage', $url); } }
public function __construct($options = null) { $this->_disabledDefaultActions = false; $this->_disabledLangSwitcher = true; if (!empty($options['object'])) { $this->_object = $options['object']; unset($options['object']); } parent::__construct($options); $this->setAttrib('id', 'partnersInfo'); $subForm = new Cible_Form_SubForm(); $subForm->setName('partnersForm')->removeDecorator('DtDdWrapper'); $subForm->setLegend('Adresse'); $address = new Cible_View_Helper_FormAddress($subForm); $address->enableFields(array('firstAddress' => false, 'secondAddress' => false, 'cityTxt' => false, 'zipCode' => false, 'state' => false, 'country' => false, 'firstTel' => false, 'secondTel' => false)); $address->formAddress(); $this->addSubForm($subForm, 'partnersForm'); $this->getSubForm('partnersForm')->getElement('selectedState')->getDecorator('HtmlTag')->setOption('style', 'margin: 0px;'); $years = new Zend_Form_Element_Text('YP_Year'); $years->setLabel($this->getView()->getCibleText('form_label_YP_Year'))->addFilter('StripTags')->addFilter('StringTrim')->setDecorators(array('ViewHelper', array('label', array('placement' => 'prepend')), array('Errors', array('placement' => 'append')), array(array('row' => 'HtmlTag'), array('tag' => 'dd', 'class' => 'form_title_inline'))))->setAttrib('class', 'stdTextInput'); $this->addElement($years); $this->addDisplayGroup(array('PP_Function', 'PP_Company', 'PP_Notes', 'YP_Year'), 'partData'); $this->getDisplayGroup('partData')->setLegend('Informations')->setAttrib('class', 'infosFieldset')->removeDecorator('DtDdWrapper'); }