* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 * @author Icinga Development Team */ // {{{ICINGA_LICENSE_HEADER}}} namespace Monitoring\Form\Command; use Zend_Form_Element_Hidden; /** * For for command CustomNotification */ class CustomNotification extends AbstractCommand { /** * Interface method to build the form * @see Form::create() */ protected function create() { $this->addElement($this->createAuthorField()); $this->addElement( 'textarea', 'comment', array( 'label' => t('Comment'), 'rows' => 4 ) ); $this->addElement( 'checkbox', 'force', array( 'label' => t('Forced') ) ); $this->addElement( 'checkbox', 'broadcast', array( 'label' => t('Broadcast') ) ); $this->setSubmitLabel(t('Send custom notification')); parent::create(); } }