Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/controller/PonderQuestionEditController.php
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | if ($v_projects) { | ||||
$project_handles = array(); | $project_handles = array(); | ||||
} | } | ||||
$form->appendChild( | $form->appendChild( | ||||
id(new AphrontFormTokenizerControl()) | id(new AphrontFormTokenizerControl()) | ||||
->setLabel(pht('Projects')) | ->setLabel(pht('Projects')) | ||||
->setName('projects') | ->setName('projects') | ||||
->setValue($project_handles) | ->setValue($project_handles) | ||||
->setDatasource('/typeahead/common/projects/')); | ->setDatasource(new PhabricatorProjectDatasource())); | ||||
$form ->appendChild( | $form ->appendChild( | ||||
id(new AphrontFormSubmitControl()) | id(new AphrontFormSubmitControl()) | ||||
->addCancelButton($this->getApplicationURI()) | ->addCancelButton($this->getApplicationURI()) | ||||
->setValue(pht('Ask Away!'))); | ->setValue(pht('Ask Away!'))); | ||||
$preview = id(new PHUIRemarkupPreviewPanel()) | $preview = id(new PHUIRemarkupPreviewPanel()) | ||||
->setHeader(pht('Question Preview')) | ->setHeader(pht('Question Preview')) | ||||
Show All 30 Lines |