Example #1
0
 public function formatTable($table, $exclude_fields = false)
 {
     if ($exclude_fields) {
         $table['avatar'] = null;
     }
     $table['avatar_uploader'] = Form::Upload('avatar', $table['avatar'], 'image', false);
     return $table;
 }
Example #2
0
 public function formatFilters()
 {
     $this->_filters['admin'] = Html::scape($this->_filters['admin']);
     $this->_filters['description'] = Html::scape($this->_filters['description']);
     $this->_filters['action'] = Form::Dropdown('action', Arrays::$logAcao, $this->_filters['action'], 'Filtro por Ação');
     $this->_filters['tbl'] = Form::Dropdown('tbl', $this->getDropdownName(), $this->_filters['tbl'], 'Filtro por Seção');
     return $this->_filters;
 }
Example #3
0
 public function formatFilters()
 {
     $dropdown_section = $this->getListArray();
     $this->_filters['title'] = Html::scape($this->_filters['title']);
     $this->_filters['section'] = Form::Dropdown('section', $dropdown_section, $this->_filters['section'], 'Filtro por Seção');
     return $this->_filters;
 }