diff --git a/code/BootstrapFieldList.php b/code/BootstrapFieldList.php index fb1b0a1..12e6848 100644 --- a/code/BootstrapFieldList.php +++ b/code/BootstrapFieldList.php @@ -3,12 +3,14 @@ class BootstrapFieldList extends Extension { + protected $ignores = array (); public function bootstrapify() { foreach($this->owner as $f) { + if(isset($this->ignores[$f->getName()])) continue; // If we have a Tabset, bootstrapify all Tabs @@ -50,6 +52,7 @@ public function bootstrapify() { } + public function bootstrapIgnore($field) { $this->ignores[$field] = true; diff --git a/code/BootstrapForm.php b/code/BootstrapForm.php index be780f7..17a12ae 100755 --- a/code/BootstrapForm.php +++ b/code/BootstrapForm.php @@ -155,7 +155,9 @@ public function forTemplate() { Requirements::javascript(BOOTSTRAP_FORMS_DIR."/javascript/bootstrap_forms.js"); } $this->addExtraClass("form-{$this->formLayout}"); + $this->applyBootstrap(); + return parent::forTemplate(); }