mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 18:59:04 +02:00
BaseDashboardForm: Make cancel-button of type button
This commit is contained in:
parent
1f9d0547cd
commit
2162392721
@ -72,15 +72,15 @@ abstract class BaseDashboardForm extends CompatForm
|
||||
/**
|
||||
* Create a cancel button
|
||||
*
|
||||
* @return FormElement
|
||||
* @return HtmlElement
|
||||
*/
|
||||
protected function createCancelButton()
|
||||
{
|
||||
return $this->createElement('submitButton', 'btn_cancel', [
|
||||
return HtmlElement::create('button', [
|
||||
'type' => 'button',
|
||||
'class' => 'modal-cancel',
|
||||
'label' => t('Cancel'),
|
||||
'data-icinga-modal-cancel' => true
|
||||
]);
|
||||
])->setContent(t('Cancel'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user