addElement('textarea', 'adminAdditionalNote', ['label' => 'Staff Only Notes']); $this->addDisplayGroup(['adminAdditionalNote'], 'noteGroupAdmin'); return $this; } protected function _initButtons() { $this->addElement( 'submit', 'btnSubmit', [ 'label' => 'Create and Process Payment', 'attribs' => ['class' => 'btn btn-primary'], ] ); $this->addElement( 'submit', 'btnCancel', [ 'label' => 'Cancel', 'attribs' => [ 'class' => 'btn', 'onclick' => "window.location.href = '" . htmlspecialchars($this->getCancelUrl()) . "';", 'helper' => 'formInputButton', ], ] ); $this->addDisplayGroup(['btnSubmit', 'btnCancel'], 'submitGroup'); return $this; } }