Exemplo n.º 1
0
 /**
  * @return \Admin\Grid
  */
 protected function createGrid()
 {
     $grid = $this->createPreparedGrid();
     $grid->setModel($this->moduleFacade->all());
     $grid->addColumnText('code', 'Fyzický modul aplikace')->setSortable()->setFilterText();
     $grid->addColumnText('name', 'Název')->setSortable()->setFilterText();
     return $grid;
 }
 /**
  * @return SelectBox
  */
 public function create()
 {
     $items = $this->moduleFacade->all()->order('name')->fetchPairs('code', 'name');
     return new SelectBox('Modul', $items);
 }