/** * Základní inicializace formuláře * * @author Martin Hlaváč * @link http://www.ktstudio.cz * * @return \KT_Form */ protected function initForm() { $form = new KT_Form(); $form->setAttrId($this->getFormId()); $form->setButtonClass("submitButton"); $form->setButtonValue(__("Odeslat dotaz", "KT_CORE_DOMAIN")); $form->addFieldSetByObject($this->getFieldset()); return $this->form = $form; }
/** @return \KT_Form */ protected function initForm() { $form = new KT_Form(); $form->setAttrId($this->getFormId()); $form->setButtonValue(__("Uložit nastavení", "KT_CORE_DOMAIN")); $form->setButtonClass("kt-form-submit button button-primary"); $form->addFieldSetByObject(KT_User_Profile_Config::getUserProfileFieldset($this->getCurrentUser()->getWpUser())); return $this->form = $form; }
/** * Základní inicializace formuláře * * @author Martin Hlaváč * @link http://www.ktstudio.cz * * @return \KT_Form */ protected function initForm() { $form = new KT_Form(); $form->setAttrId(self::FORM_ID); //$form->setButtonClass(""); $form->setButtonValue(__("Odeslat dotaz", KT_DOMAIN)); $form->addFieldSetByObject($this->getFieldset()); return $this->form = $form; }