Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected function createComponentEditEntityForm($name)
- {
- $formName = $this->entityName.'Form';
- if (!$formName is_subclass_of Nette\Application\UI\Form) {
- throw new InvalidStateException("Missing form $formName");
- }
- $form = new $formName;
- $form->setTranslator($this->getTranslator());
- $form->addSubmit('send', 'send')
- ->setAttribute('class', 'bGreen buttonS')
- ->onClick[] = $this->doEditEntity;
- return $form;
- }
Advertisement
Add Comment
Please, Sign In to add comment