Now that SilverStripe 3 allows custom templating of FormField objects, we can bring a CSS framework such as
Twitter Bootstrap into SilverStripe. The Bootstrap Forms module takes advantage of one of the greatest features of the framework — its forms and buttons.
Make your application look beautiful with Bootstrap Forms!
Hi,
Is it possible to make a custom template for form and still using Bootstrap Forms-module?
I tried with forTemplate-method, but it overwrites .css and .js requirements and other settings. I think I should extend MyForm’s forTemplate method with renderWith, but I couldn’t get it work.
Resolved!
With this I got it working:
public function forTemplate() {
parent::forTemplate();
return $this->renderWith(array($this->class, ‘Form’));
}