public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['quote_active'] = new Leap\View\InputSelect(array("0" => "No", "1" => "Yes"), "quote_active", "quote_active", $this->quote_active);
     $return['quote_msg'] = new Leap\View\InputTextArea("quote_msg", "quote_msg", $this->quote_msg);
     $return['quote_msg_indonesia'] = new Leap\View\InputTextArea("quote_msg_indonesia", "quote_msg_indonesia", $this->quote_msg_indonesia);
     //comment di set di page
     $return['news_comment_allow'] = new Leap\View\InputText("hidden", "news_comment_allow", "news_comment_allow", $this->news_comment_allow);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     $return['pop_msg'] = new \Leap\View\InputText("hidden", "pop_msg", "pop_msg", $this->pop_msg);
     $return['pop_file'] = new \Leap\View\InputFile("pop_file", "pop_file", $this->pop_file);
     $return['pop_donut'] = new \Leap\View\InputFile("pop_donut", "pop_donut", $this->pop_donut);
     $return['news_tag'] = new \Leap\View\InputSelect($this->arrTag, "news_tag", "news_tag", $this->news_tag);
     $return['news_comment_allow'] = new \Leap\View\InputText("hidden", "news_comment_allow", "news_comment_allow", $this->news_comment_allow);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     if (isset($this->video_status_array[$this->video_status])) {
         $var = $this->video_status_array[$this->video_status];
     } else {
         $var = "";
     }
     $return['video_upload'] = new \Leap\View\InputFileVideo("video_upload", "video_upload", $this->video_upload);
     $return['video_status'] = new Leap\View\InputSelect($this->video_status_array, "video_status", "video_status", $this->video_status);
     $return['video_text'] = new Leap\View\InputTextArea("video_text", "video_text", $this->video_text);
     $return['video_upload_preview'] = new Leap\View\InputText("hidden", "video_upload_preview", "video_upload_preview", $this->video_upload);
     return $return;
 }
 public function overwriteForm($return, $returnfull)
 {
     $return = parent::overwriteForm($return, $returnfull);
     if (isset($this->news_status_array[$this->news_status])) {
         $var = $this->news_status_array[$this->news_status];
     } else {
         $var = "";
     }
     $return['news_image'] = new \Leap\View\InputFoto("news_image", "news_image", $this->news_image);
     $return['news_status'] = new Leap\View\InputSelect($this->news_status_array, "news_status", "news_status", $this->news_status);
     $return['news_text'] = new Leap\View\InputTextArea("news_text", "news_text", $this->news_text);
     $p = new Page();
     $p->default_read_coloms = "ID,post_title";
     $arrPage = $p->getWhere("post_status = 'publish'");
     $arrNe = array();
     foreach ($arrPage as $pp) {
         $arrNe[$pp->ID] = $pp->ID . " - " . $pp->post_title;
     }
     $return['news_comment_allow'] = new Leap\View\InputText("hidden", "news_comment_allow", "news_comment_allow", $this->news_comment_allow);
     $return['news_text'] = new Leap\View\InputText("hidden", "news_text", "news_text", $this->news_text);
     $return['news_page_id'] = new Leap\View\InputSelect($arrNe, "news_page_id", "news_page_id", $this->news_page_id);
     return $return;
 }