/** * FORM HtmlBlock: Output form. * */ public function outputFormHtmlBlock() { global $lng; $lng->loadLanguageModule("block"); include "Services/Form/classes/class.ilPropertyFormGUI.php"; $form_gui = new ilPropertyFormGUI(); $values = $this->getValuesHtmlBlock(); // Property Title $alert = $this->form_check["HtmlBlock"]["Title"]["error"] != "" ? $this->form_check["HtmlBlock"]["Title"]["error"] : ""; $form_gui->addTextProperty($lng->txt("block_html_block_title"), "block_title", $values["Title"], "", $alert, true, "200"); // Property Content $alert = $this->form_check["HtmlBlock"]["Content"]["error"] != "" ? $this->form_check["HtmlBlock"]["Content"]["error"] : ""; $form_gui->addTextAreaProperty($lng->txt("block_html_block_content"), "block_content", $values["Content"], "", $alert, false, "40", "8", true); // save and cancel commands if (in_array($this->getFormEditMode(), array(IL_FORM_CREATE, IL_FORM_RE_CREATE))) { $form_gui->addCommandButton("saveHtmlBlock", $lng->txt("save")); $form_gui->addCommandButton("cancelSaveHtmlBlock", $lng->txt("cancel")); } else { $form_gui->addCommandButton("updateHtmlBlock", $lng->txt("save")); $form_gui->addCommandButton("cancelUpdateHtmlBlock", $lng->txt("cancel")); } $form_gui->setTitle($lng->txt("block_html_block_head")); $form_gui->setFormAction($this->ctrl->getFormAction($this)); // individual preparation of form $this->prepareFormHtmlBlock($form_gui); return $form_gui->getHTML(); }