Beispiel #1
0
 protected function createComponentStudentsGrid($name)
 {
     $grid = new \App\Grids\baseGrid($this, $name);
     $grid->setDefaultPerPage(50);
     $grid->setPrimaryKey("user_id");
     $grid->addColumnText('firstname', 'Jméno')->setSortable()->setFilterText();
     $grid->addColumnText('lastname', 'Příjmení')->setSortable()->setFilterText();
     $grid->addColumnText('catalog_number', 'Číslo')->setSortable();
     $grid->addActionHref("id", "Detail", "Students:id")->setPrimaryKey("user_id");
     return $grid;
 }
Beispiel #2
0
 protected function createComponentGrid($name)
 {
     $grid = new \App\Grids\baseGrid($this, $name);
     $grid->model = $this->model;
     $grid->addColumnText('firstname', 'Jméno')->setSortable()->setFilterText();
     $grid->addColumnText('lastname', 'Příjmení')->setSortable()->setFilterText();
     $grid->addColumnText('gender', 'Pohlaví')->setSortable()->setReplacement($grid::$genderReplacements)->setFilterSelect($grid::$genderFilters);
     $grid->addColumnText('class', 'Třída')->setSortable();
     $grid->addColumnText('catalog_number', 'Katalogové číslo')->setSortable()->setFilterNumber();
     $grid->addColumnEmail('email', 'Email')->setSortable()->setFilterText();
     $grid->addColumnText('phone', 'Telefon')->setSortable()->setFilterText();
     $grid->addFilterText('class', 'Třída')->setColumn("sch_class.shortname");
     $grid->addActionHref("id", "Detail")->setPrimaryKey("user_id");
     $grid->setPrimaryKey("user_id");
     return $grid;
 }
Beispiel #3
0
 protected function createComponentGrid($name)
 {
     $grid = new \App\Grids\baseGrid($this, $name);
     $grid->model = $this->model;
     $grid->addColumnText('title', 'Titul')->setSortable()->setFilterText();
     $grid->addColumnText('firstname', 'Jméno')->setSortable()->setFilterText();
     $grid->addColumnText('lastname', 'Příjmení')->setSortable()->setFilterText();
     $grid->addColumnText('title_after', 'Titul')->setSortable()->setFilterText();
     $grid->addColumnText('gender', 'Pohlaví')->setSortable()->setReplacement($grid::$genderReplacements)->setFilterSelect($grid::$genderFilters);
     $grid->addColumnText('shortname', 'Zkratka')->setSortable()->setFilterText();
     $grid->addColumnEmail('email', 'Email')->setSortable()->setFilterText();
     $grid->addColumnText('work_phone', 'Linka')->setSortable()->setFilterText();
     $grid->addColumnText('phone', 'Telefon')->setSortable()->setFilterText();
     $grid->addColumnText('hours', 'Hodin')->setSortable();
     $grid->addActionHref("id", "Detail")->setPrimaryKey("user_id");
     $grid->setPrimaryKey("user_id");
     return $grid;
 }