Remove obsolete form classes

This commit is contained in:
Thomas Gelf 2014-02-25 10:05:14 +00:00
parent 946903af37
commit 912b3a6478

View File

@ -363,7 +363,6 @@ class Form extends Zend_Form
array( array(
'name' => 'btn_submit', 'name' => 'btn_submit',
'label' => $this->submitLabel, 'label' => $this->submitLabel,
'class' => 'button btn btn-cta'
) )
); );
$this->addElement($submitButton); $this->addElement($submitButton);
@ -616,9 +615,6 @@ class Form extends Zend_Form
$el->removeDecorator('Label'); $el->removeDecorator('Label');
$el->removeDecorator('DtDdWrapper'); $el->removeDecorator('DtDdWrapper');
$el->addDecorator(new BootstrapForm()); $el->addDecorator(new BootstrapForm());
if ($el->getId() === 'btn_submit' || stripos($el->getAttrib('class'), 'btn') === false) {
$el->setAttrib('class', $el->getAttrib('class') . ' form-control input-sm');
}
} }
return $this; return $this;