protected function createComponentDeleteForm()
 {
     $array = $this->fileModel->getAllFiles();
     $form = new AppForm();
     $form->addCheckBoxList('file', 'files:', $array['ids']);
     $form->addSubmit('delete', 'Smazat soubory')->onClick[] = array($this, 'deleteClicked');
     return $form;
 }