* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 * @author Icinga Development Team */ // {{{ICINGA_LICENSE_HEADER}}} namespace Monitoring\Form\Command; class Comment 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', 'persistent', array( 'label' => t('Persistent'), 'value' => false ) ); $this->setSubmitLabel(t('Post comment')); parent::create(); } }