AddOptions.php 779 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace ModulesGarden\Servers\ProxmoxCloudVps\Packages\WhmcsService\UI\ConfigurableOption\Buttons;
  3. use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Interfaces\AdminArea;
  4. use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Buttons\ButtonCreate;
  5. use ModulesGarden\Servers\ProxmoxCloudVps\Packages\WhmcsService\UI\ConfigurableOption\Modals\AddOptions as AddOptionModals;
  6. class AddOptions extends ButtonCreate implements AdminArea
  7. {
  8. protected $id = 'addOptionsButton';
  9. protected $name = 'addOptionsButton';
  10. protected $title = 'addOptionButtonsTitle';
  11. public function initContent()
  12. {
  13. $this->replaceClass('lu-btn--primary', 'lu-btn--success');
  14. $modal = new AddOptionModals();
  15. $this->initLoadModalAction($modal);
  16. }
  17. }