Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14002011
D13891.id33536.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D13891.id33536.diff
View Options
diff --git a/src/applications/ponder/controller/PonderQuestionEditController.php b/src/applications/ponder/controller/PonderQuestionEditController.php
--- a/src/applications/ponder/controller/PonderQuestionEditController.php
+++ b/src/applications/ponder/controller/PonderQuestionEditController.php
@@ -23,7 +23,9 @@
$question->getPHID(),
PhabricatorProjectObjectHasProjectEdgeType::EDGECONST);
$v_projects = array_reverse($v_projects);
+ $is_new = false;
} else {
+ $is_new = true;
$question = PonderQuestion::initializeNewQuestion($viewer);
$v_projects = array();
}
@@ -124,13 +126,17 @@
->setSpacePHID($v_space)
->setPolicies($policies)
->setValue($v_view)
- ->setCapability(PhabricatorPolicyCapability::CAN_VIEW))
- ->appendChild(
- id(new AphrontFormSelectControl())
- ->setLabel(pht('Status'))
- ->setName('status')
- ->setValue($v_status)
- ->setOptions(PonderQuestionStatus::getQuestionStatusMap()));
+ ->setCapability(PhabricatorPolicyCapability::CAN_VIEW));
+
+
+ if (!$is_new) {
+ $form->appendChild(
+ id(new AphrontFormSelectControl())
+ ->setLabel(pht('Status'))
+ ->setName('status')
+ ->setValue($v_status)
+ ->setOptions(PonderQuestionStatus::getQuestionStatusMap()));
+ }
$form->appendControl(
id(new AphrontFormTokenizerControl())
@@ -142,7 +148,7 @@
$form->appendChild(
id(new AphrontFormSubmitControl())
->addCancelButton($this->getApplicationURI())
- ->setValue(pht('Ask Away!')));
+ ->setValue(pht('Submit')));
$preview = id(new PHUIRemarkupPreviewPanel())
->setHeader(pht('Question Preview'))
diff --git a/src/applications/ponder/controller/PonderQuestionViewController.php b/src/applications/ponder/controller/PonderQuestionViewController.php
--- a/src/applications/ponder/controller/PonderQuestionViewController.php
+++ b/src/applications/ponder/controller/PonderQuestionViewController.php
@@ -171,7 +171,10 @@
$view->invokeWillRenderEvent();
- $view->addSectionHeader(pht('Question'));
+ $view->addSectionHeader(
+ pht('Details'),
+ PHUIPropertyListView::ICON_SUMMARY);
+
$view->addTextContent(
array(
phutil_tag(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 26, 2:14 PM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6738823
Default Alt Text
D13891.id33536.diff (2 KB)
Attached To
Mode
D13891: Clean up misc Ponder details
Attached
Detach File
Event Timeline
Log In to Comment