AdminModule/presenters/BasePresenter.php
public function createForm()
    {
        $form = new Nette\Application\UI\Form();

        $form->getElementPrototype()->addAttributes(array('class' => 'ajax'));
        $form->setTranslator($this->translator);
        $form->setRenderer(new BootstrapRenderer());

        return $form;
    }
public function createForm()
    {
        $form = new Nette\Application\UI\Form();

        $form->getElementPrototype()->addAttributes(array('class' => 'ajax'));
        $form->setTranslator($this->translator);
        $form->setRenderer(new BootstrapRenderer());

        return $form;
    }
public function createForm ( ) { $ form = new Nette \ Application \ UI \ Form ( ) ; $ form -> getElementPrototype ( ) -> addAttributes ( array ( 'class' => 'ajax' ) ) ; $ form -> setTranslator ( $ this -> translator ) ; $ form -> setRenderer ( new BootstrapRenderer ( ) ) ; return $ form ; }
Creates form and rewrite renderer for bootstrap.
@return UI\Form
Creates form and rewrite renderer for bootstrap .