Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move removal command actions into the downtime controllers
refs #8902
- Loading branch information
Showing
8 changed files
with
131 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
modules/monitoring/application/forms/Command/Object/DeleteDowntimeQuickCommandForm.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
/* Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */ | ||
|
||
namespace Icinga\Module\Monitoring\Forms\Command\Object; | ||
|
||
use Icinga\Module\Monitoring\Command\Object\DeleteDowntimeCommand; | ||
use \Icinga\Module\Monitoring\Forms\Command\CommandForm; | ||
use Icinga\Web\Notification; | ||
|
||
/** | ||
* Form for deleting host or service downtimes | ||
*/ | ||
class DeleteDowntimeQuickCommandForm extends DeleteDowntimeCommandForm | ||
{ | ||
/** | ||
* (non-PHPDoc) | ||
* @see \Icinga\Web\Form::addSubmitButton() For the method documentation. | ||
*/ | ||
public function addSubmitButton() | ||
{ | ||
$this->addElement( | ||
'button', | ||
'btn_submit', | ||
array( | ||
'ignore' => true, | ||
'escape' => false, | ||
'type' => 'submit', | ||
'class' => 'link-like', | ||
'label' => $this->getView()->icon('trash'), | ||
'title' => $this->translate('Delete this downtime'), | ||
'decorators' => array('ViewHelper') | ||
) | ||
); | ||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters