mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
24 lines
571 B
PHP
24 lines
571 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
/* Icinga DB Web | (c) 2021 Icinga GmbH | GPLv2 */
|
||
|
|
|
||
|
|
namespace Icinga\Module\Icingadb\Forms;
|
||
|
|
|
||
|
|
class SetAsBackendForm extends SetAsBackendConfigForm
|
||
|
|
{
|
||
|
|
public function init()
|
||
|
|
{
|
||
|
|
$this->setName('IcingaModuleIcingadbFormsSetAsBackendForm');
|
||
|
|
$this->setTokenDisabled();
|
||
|
|
// If you change name here, please change in migration.js also.
|
||
|
|
}
|
||
|
|
|
||
|
|
public function createElements(array $formData)
|
||
|
|
{
|
||
|
|
parent::createElements([]);
|
||
|
|
|
||
|
|
$this->removeElement('btn_submit');
|
||
|
|
$this->removeElement('btn_submit_session');
|
||
|
|
}
|
||
|
|
}
|