public function __construct($parent, $name) { parent::__construct($parent, $name); //$this->getElementPrototype()->class("ajax"); //$editorId = $this->getPresenter()->getUser()->getId(); //$fid = $parent->fid; $this->addMultipleFileUpload('upload', '', 999); $media = $this->lookup('Bubo\\Media'); $this->addHidden('folderId', $media->folderId); //$id = $this->getPresenter()->getParam('id'); //$fid = $this->getPresenter()->getParam('fid'); $this->addSubmit('send', 'Uložit'); // $this->addHidden('editor_id', $editorId); // $this->addHidden('parent', $fid); // $this->addHidden('id', false); $this->onSuccess[] = array($this, 'formSubmited'); $this->getElementPrototype()->class = 'ajax mfu'; $this['send']->getControlPrototype()->class = "submit"; }
public function __construct($parent, $name) { parent::__construct($parent, $name); $this->getElementPrototype()->class("ajax"); $fid = $parent->fid; $identity = $this->presenter->getUser()->getIdentity(); $editorId = $identity ? $identity->id : NULL; // $model = $this->presenter->mceModel; // $id = $this->getPresenter()->getParam('id'); // //$fid = $this->getPresenter()->getParam('fid'); // $data = false; // if($id){ // $data = $model->getFolder($id); // } $this->addText('name', 'Název adresáře')->addRule(Form::FILLED, 'Název adresáře musí být vyplněn '); $this->addSubmit('send', 'Uložit'); $this->addHidden('editor_id', $editorId); $this->addHidden('parent', $fid); $this['name']->getControlPrototype()->class[] = "input"; $this->onSuccess[] = array($this, 'formSubmited'); $this['send']->getControlPrototype()->class = "submit"; }
public function __construct($parent, $name) { parent::__construct($parent, $name); $this->getElementPrototype()->class = 'ajax'; }