public function render() { require_celerity_resource('ponder-comment-table-css'); $is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business'); $questionID = $this->questionID; $target = $this->target; $form = new AphrontFormView(); $form->setUser($this->user)->setAction($this->actionURI)->setWorkflow(true)->addHiddenInput('target', $target)->addHiddenInput('question_id', $questionID)->appendChild(id(new AphrontFormTextAreaControl())->setName('content'))->appendChild(id(new AphrontFormSubmitControl())->setValue($is_serious ? 'Submit' : 'Editorialize')); $view = id(new AphrontMoreView())->setSome(id(new AphrontNullView())->render())->setMore($form->render())->setExpandText('Add Comment'); return $view->render(); }