Introduce `MigrationForm` class
This commit is contained in:
parent
81c9e5cfc5
commit
2daa1447b7
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
/* Icinga Web 2 | (c) 2023 Icinga GmbH | GPLv2+ */
|
||||
|
||||
namespace Icinga\Forms;
|
||||
|
||||
use ipl\Html\Form;
|
||||
use ipl\Web\Common\CsrfCounterMeasure;
|
||||
use ipl\Web\Common\FormUid;
|
||||
|
||||
class MigrationForm extends Form
|
||||
{
|
||||
use CsrfCounterMeasure;
|
||||
use FormUid;
|
||||
|
||||
protected $defaultAttributes = [
|
||||
'class' => ['icinga-form', 'migration-form', 'icinga-controls'],
|
||||
'name' => 'migration-form'
|
||||
];
|
||||
|
||||
protected function assemble(): void
|
||||
{
|
||||
$this->addHtml($this->createUidElement());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue