Ejemplo n.º 1
0
 /**
  * @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;
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->setRenderer(new \Kdyby\BootstrapFormRenderer\BootstrapRenderer());
 }
Ejemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $this->setRenderer(new \Kdyby\BootstrapFormRenderer\BootstrapRenderer());
     \Flame\Forms\Controls\BootstrapDatePicker::register();
 }