ModalConfirmDanger.php 706 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Modals;
  3. /**
  4. * Modal for confirmation of a dangerous action
  5. *
  6. * @author Sławomir Miśkowicz <slawomir@modulesgarden.com>
  7. */
  8. class ModalConfirmDanger extends BaseModal
  9. {
  10. protected $id = 'modalConfirmDanger';
  11. protected $name = 'modalConfirmDanger';
  12. protected $title = 'modalConfirmDanger';
  13. public function __construct($baseId = null)
  14. {
  15. parent::__construct($baseId);
  16. $this->setModalTitleTypeDanger();
  17. }
  18. public function preInitContent()
  19. {
  20. parent::preInitContent();
  21. $this->initActionButtons();
  22. $this->setSubmitButtonClassesDanger();
  23. }
  24. }