mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 09:14:08 +02:00
Remove obsolete form classes
This commit is contained in:
parent
946903af37
commit
912b3a6478
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user