예제 #1
0
 private function formEdit(Konzert_Termin $termin)
 {
     $data = array();
     $data['date'] = array(GWF_Form::DATE_FUTURE, $termin->getVar('kt_date'), $this->module->lang('th_date'), '', GWF_Date::LEN_DAY);
     $data['time'] = array(GWF_Form::TIME, $termin->getVar('kt_time'), $this->module->lang('th_time'));
     $data['prog'] = array(GWF_Form::STRING, $termin->getVar('kt_prog'), $this->module->lang('th_prog'));
     $data['city'] = array(GWF_Form::STRING, $termin->getVar('kt_city'), $this->module->lang('th_city'));
     $data['location'] = array(GWF_Form::STRING, $termin->getVar('kt_location'), $this->module->lang('th_location'));
     $data['tickets'] = array(GWF_Form::STRING, $termin->getVar('kt_tickets'), $this->module->lang('th_tickets'));
     $data['enabled'] = array(GWF_Form::CHECKBOX, $termin->isEnabled(), $this->module->lang('th_enabled'));
     $data['edit'] = array(GWF_Form::SUBMIT, $this->module->lang('btn_edit'));
     return new GWF_Form($this, $data);
 }