/** * @param array $default */ public function __construct(array $default = array()) { parent::__construct(); $this->configure(); $this->setRenderer(new \Kdyby\BootstrapFormRenderer\BootstrapRenderer()); if (count($default)) { $this->setDefaults($default); $this->addSubmit('send', 'Edit')->setAttribute('class', 'btn-primary'); } else { $this->addSubmit('send', 'Add')->setAttribute('class', 'btn-primary'); } $this->onSuccess[] = $this->formSubmitted; }
public function __construct() { parent::__construct(); $this->setRenderer(new \Kdyby\BootstrapFormRenderer\BootstrapRenderer()); }
public function __construct() { parent::__construct(); $this->setRenderer(new \Kdyby\BootstrapFormRenderer\BootstrapRenderer()); \Flame\Forms\Controls\BootstrapDatePicker::register(); }