Differential D8234 Diff 19594 src/applications/macro/controller/PhabricatorMacroMemeDialogController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/macro/controller/PhabricatorMacroMemeDialogController.php
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | if ($request->isDialogFormPost()) { | ||||
); | ); | ||||
return id(new AphrontAjaxResponse())->setContent($result); | return id(new AphrontAjaxResponse())->setContent($result); | ||||
} | } | ||||
} | } | ||||
$view = id(new PHUIFormLayoutView()) | $view = id(new PHUIFormLayoutView()) | ||||
->appendChild( | ->appendChild( | ||||
id(new AphrontFormTokenizerControl()) | id(new AphrontFormTokenizerControl()) | ||||
->setUser($user) | |||||
->setLabel(pht('Macro')) | ->setLabel(pht('Macro')) | ||||
->setName('macro') | ->setName('macro') | ||||
->setLimit(1) | ->setLimit(1) | ||||
->setDatasource('/typeahead/common/macros/') | ->setDatasource('/typeahead/common/macros/') | ||||
->setError($e_macro)) | ->setError($e_macro)) | ||||
->appendChild( | ->appendChild( | ||||
id(new AphrontFormTextControl()) | id(new AphrontFormTextControl()) | ||||
->setLabel(pht('Above')) | ->setLabel(pht('Above')) | ||||
Show All 19 Lines |