Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/controller/PhabricatorPasteEditController.php
Show First 20 Lines • Show All 180 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 | $form | ||||
->appendChild( | ->appendChild( | ||||
id(new AphrontFormTextAreaControl()) | id(new AphrontFormTextAreaControl()) | ||||
->setLabel(pht('Text')) | ->setLabel(pht('Text')) | ||||
->setError($e_text) | ->setError($e_text) | ||||
->setValue($v_text) | ->setValue($v_text) | ||||
->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL) | ->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL) | ||||
Show All 40 Lines |