DeleteMassForm.php 828 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace ModulesGarden\ProxmoxAddon\App\UI\IpLog\Forms;
  3. use ModulesGarden\ProxmoxAddon\App\UI\IpLog\Providers\IpLogProvider;
  4. use ModulesGarden\ProxmoxAddon\Core\UI\Interfaces\AdminArea;
  5. use ModulesGarden\ProxmoxAddon\Core\UI\Widget\Forms\BaseForm;
  6. /**
  7. * Description of CreateForm
  8. *
  9. * @author Pawel Kopec <pawelk@modulesgarden.com>
  10. */
  11. class DeleteMassForm extends BaseForm implements AdminArea
  12. {
  13. public function initContent()
  14. {
  15. $this->initIds('deleteMassForm');
  16. $this->setFormType('deleteMass');
  17. $this->setProvider(new IpLogProvider);
  18. $this->initFields();
  19. }
  20. protected function initFields()
  21. {
  22. $this->setConfirmMessage('confirmDeleteMass', ['title' => null]);
  23. }
  24. protected function getDefaultActions()
  25. {
  26. return ['deleteMass'];
  27. }
  28. }